Textures are an important section in Minecraft and can be both overwritten and new textures can be added from Fonts or Models, the main path is
Copy π¦resource_pack.zip
βββ πassets
βββ πminecraft
βββ πtextures
βββ πblock
β βββ π¨amethyst_cluster.png
βββ πcolormap
βββ πeffect
βββ πentity
βββ πenvironment
βββ πfont
βββ πgui
βββ πitem
β βββ π¨axolotl_bucket.png
βββ πmap
βββ πmisc
βββ πmob_effect
βββ πpainting
βββ πparticle
βββ πtrims
MCMeta & Animated Textures
To make animated textures you need to multiply the size of the texture vertically, for example to add only one frame instead of 16x16
it is now 16x32
and has no limit, and so on with each frame you want to add.
The font type, in this case, is bit-map for image-based chars. If true, Minecraft generates additional frames between frames with a frame time greater than 1 between them
The height of the sprite, in pixels. This is also unused in vanilla, but can be used by resource packs to have frames that are not perfect squares. Defaults to the image's height if "width" is defined, and the smaller of the image's dimensions if it's not
Sets the default time for each frame in increments of one game tick. Defaults to
Contains a list of frames. Defaults to displaying all the frames from top to bottom.
Command Block Animated Example
command_block_back.png.mcmeta
Copy {
"animation": {
"interpolate": true,
"frametime": 10
}
}
Fire Animated Example
fire_0.png.mcmeta
Copy {
"animation": {
"frames": [
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
]
}
}
An example of a flash animation
reflection_animated_texture.png.pmcmeta
Copy {
"animation": {
"frametime": 2.5,
"width": 100,
"height": 100,
"interpolate": true,
"frames": [
{
"index": 0,"time": 70
},
0,
{
"index": 1,"time": 1
},
1,
{
"index": 2,"time": 1
},
2,
{
"index": 3,"time": 1
},
3,
{
"index": 4,"time": 1
},
4,
{
"index": 5,"time": 1
},
5,
{
"index": 6,"time": 1
},
6,
{
"index": 7,"time": 1
}
]
}
}
Minecraft allows to add new tooltips through the tooltip_style component, for example you need to create two textures with a prefix similar to <name>_background
and <name>_frame
Copy π¦resource_pack.zip
βββ πassets
βββ πminecraft
βββ πtextures
βββ πgui
βββ πsprites
βββ πtooltip
βββ π¨awesome_background.png
βββ πawesome_background.png.mcmeta
βββ π¨awesome_frame.png
βββ πawesome_frame.png.mcmeta
Existing types of scaling
the sprite is repeated across the desired space, starting from the top-left.
the sprite is sliced into 4 corners , 4 edges , and 1 center slice , which is tiled across the desired space.
More scaling options
The width of the sprite, in pixels.
The height of the sprite, in pixels.
An array of chThe size in pixels that the border slices should cover on-screen
the stretch_inner
option means whether the texture will be stretched or not, to avoid mixels or something like that deactivate it
awesome_background.png.mcmeta
Copy {
"gui": {
"scaling": {
"type": "nine_slice",
"width": 100,
"height": 100,
"border": 9
}
}
}
awesome_frame.png.mcmeta
Copy {
"gui": {
"scaling": {
"type": "nine_slice",
"width": 100,
"height": 100,
"border": 10,
"stretch_inner": true
}
}
}
/give @p diamond[tooltip_style='minecraft:awesome'] 1
GUI Routes
Copy π¦resource_pack.zip
βββ πassets
βββ πminecraft
βββ πtextures
βββ πgui
βββ πadvancements
β βββ πbackgrounds
β β βββ π¨<textures>
β βββ π¨<textures>
βββ πcontainer
β βββ πcreative_inventory
β β βββ π¨<textures>
β βββ π¨<textures>
βββ πhanging_signs
β βββ π¨<textures>
βββ πpresets
β βββ π¨<textures>
βββ πrealms
β βββ π¨<textures>
βββ πsprites
β βββ πadvancements
β β βββ π¨<textures>
β βββ πboss_bar
β β βββ π¨<textures>
β βββ πcontainer
β β βββ πanvil
β β β βββ π¨<textures>
β β βββ πbeacon
β β β βββ π¨<textures>
β β βββ πblast_furnace
β β β βββ π¨<textures>
β β βββ πbrewing_stand
β β β βββ π¨<textures>
β β βββ πbundle
β β β βββ π¨<textures>
β β βββ πcartography_table
β β β βββ π¨<textures>
β β βββ πcrafter
β β β βββ π¨<textures>
β β βββ πcreative_inventory
β β β βββ π¨<textures>
β β βββ πenchanting_table
β β β βββ π¨<textures>
β β βββ πfurnace
β β β βββ π¨<textures>
β β βββ πgrindstone
β β β βββ π¨<textures>
β β βββ πhorse
β β β βββ π¨<textures>
β β βββ πinventory
β β β βββ π¨<textures>
β β βββ πloom
β β β βββ π¨<textures>
β β βββ πslot
β β β βββ π¨<textures>
β β βββ πsmithing
β β β βββ π¨<textures>
β β βββ πsmoker
β β β βββ π¨<textures>
β β βββ πstonecutter
β β β βββ π¨<textures>
β β βββ πvillager
β β β βββ π¨<textures>
β β βββ π¨<textures>
β βββ πgamemode_switcher
β β βββ π¨<textures>
β βββ πhud
β β βββ πheart
β β β βββ π¨<textures>
β β βββ π¨<textures>
β βββ πicon
β β βββ π¨<textures>
β βββ πnotification
β β βββ π¨<textures>
β βββ πpending_invite
β β βββ π¨<textures>
β βββ πplayer_list
β β βββ π¨<textures>
β βββ πpopup
β β βββ π¨<textures>
β βββ πrealm_status
β β βββ π¨<textures>
β βββ πrecipe_book
β β βββ π¨<textures>
β βββ πserver_list
β β βββ π¨<textures>
β βββ πsocial_interactions
β β βββ π¨<textures>
β βββ πspectator
β β βββ π¨<textures>
β βββ πstatistics
β β βββ π¨<textures>
β βββ πtoast
β β βββ π¨<textures>
β βββ πtooltip
β β βββ π¨<textures>
β βββ πtransferable_list
β β βββ π¨<textures>
β βββ πwidget
β β βββ π¨<textures>
β βββ πworld_list
β βββ π¨<textures>
βββ πtitle
β βββ πbackground
β β βββ π¨<textures>
β βββ π¨<textures>
βββ π¨<textures>