Skip to content

Instantly share code, notes, and snippets.

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+ ?
@ambiennt
ambiennt / image_to_rgba.py
Created May 24, 2023 07:06
Converts a .png image to a binary file (.bin) with just the RGBA values. Useful in conjunction with https://github.com/ocornut/imgui/blob/master/misc/fonts/binary_to_compressed_c.cpp
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
@ambiennt
ambiennt / run_raw_appx_downloader.md
Last active November 6, 2025 15:32
A simple, beginner-friendly tutorial for how to use MCMrARM's MCBE for Windows downloader script from the command line

How to Run the Raw Version Downloader PHP Script (Windows):

  • 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-development and php.ini-production, but make a copy of either of those and rename it to php.ini)
  • You can enable the extension by going in your new php.ini file 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