#block damage models
1 messages · Page 1 of 1 (latest)
okay
now add a predicate
Models are three-dimensional shapes used in Minecraft which are used to display objects encountered in the game.
The models pertaining to the vast majority of blocks and items can be configured, as well as those of a small selection of entities. Models are stored as JSON files in a resource pack in the assets/<namespace>/models folder.
you add an overrides list which is of objects
you basically make models for each predicate match
your predicate will be "damage"
i know
damage is also a decimal
when there was a wooden hoe, I divided the short third argument in the itemstack by 60
well blockmodels are for placed blocks
item models are for held items & held blocks
an item just means held in this context
a block is a placed thing
"parent": "block/cube_all",
"textures": {
"all": "block/texture_board"
},
"overrides": [
{ "predicate": { "damaged": 0, "damage": 0.0166666667 }, "model": "rpg/cutting_board" }
]
}```
assets/minecraft/models/block/dirt.json
?
do I also need to make it as an item?
you need to make another model for that
every predicate references another model
when that predicate is true, that referenced model will be swapped out in place of the original.
I can't figure out how to do this, can you send an example of a resource pack?
but resource packs usually replace blocks