- Get the appx downloader script by MCMrARM here
- Get version list link with UUIDs here (the UUIDs are the big character sequence at the start of each each line)
- Get the latest PHP package here (alternatively, you may find your own link for a different/most recent php version)
- Make sure you have a php distributable downloaded and that the curl extension is enabled in your php.ini (you will probably see
php.ini-developmentandphp.ini-production, but make a copy of either of those and rename it tophp.ini) - You can enable the extension by going in your new
php.inifile and removing the;from;extension=curl - Open Windows command prompt (or your own terminal of choice), cd to the directory of your script
- Run `php-cgi -f raw_a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import json | |
| import shutil | |
| from pathlib import Path | |
| BASE_DIRS = [ | |
| Path(os.getenv("LOCALAPPDATA")) / "Packages" / "Microsoft.MinecraftUWP_8wekyb3d8bbwe" / "LocalCache" / "minecraftpe" / "packcache" / "resource", # UWP | |
| Path(os.getenv("LOCALAPPDATA")) / "Temp" / "minecraftpe" / "packcache" / "resource", # GDK | |
| Path(os.getenv("LOCALAPPDATA")) / "Temp" / "Minecraft Bedrock" / "minecraftpe" / "packcache" / "resource", # GDK, 26.0+ ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import Image | |
| import struct | |
| # Open the image and convert it to RGBA format | |
| image = Image.open("input.png").convert("RGBA") | |
| # Get the pixel data from the image | |
| pixel_data = image.load() | |
| # Create a binary file to store the RGBA values |