* Add PatchManager - Allows you to patch terrain.png and items.png on the fly.

This can be used for modding, since you don't need to share copyrighted Mojang assets alongside your texture patches.
This commit is contained in:
iProgramInCpp
2023-08-09 22:13:04 +03:00
parent a7f56c5581
commit df47842c5e
14 changed files with 311 additions and 8 deletions

View File

@@ -0,0 +1,28 @@
#Texture patch data for Minecraft PE. The # at the start denotes a comment, removing it makes it a command.
# Commands you can use:
# - terrain|x|y|filename -- Patches terrain.png
# - items|x|y|filename -- Patches gui/items.png
# - vegetation_tint|bool -- Enables default vegetation tint. (grass and leaves)
# - metal_block_sides|int -- Makes metal blocks have separate side textures, and allows specification of their Y offset. -1 to disable.
# * The filename parameter will be a PNG file that can be found relative to this directory. For example, '../quiver.png' will load it from assets/, 'chain.png' will load it from assets/patches/.
# * The X and Y destination coordinates will be multiplied by 16.
# * The texture doesn't have to be 16x16, all of it will be patched on to terrain.png.
# Below is an example of what you can do:
#terrain|0|0|c_grass_top.png
#terrain|4|3|c_leaves_tra.png
#terrain|5|3|c_leaves_opa.png
#terrain|7|0|c_bricks.png
#terrain|12|0|c_rose.png
#terrain|6|11|c_iron.png
#terrain|7|11|c_gold.png
#terrain|8|11|c_emerald.png
#items|7|0|c_i_coal.png
#items|7|1|c_i_iron.png
#items|7|2|c_i_gold.png
#items|7|3|c_i_emerald.png
#vegetation_tint|false
#metal_block_sides|10