Skip to main content

Custom item model presets

As of version 5.0.0 you can add custom item model presets for the TARDIS exterior.

Custom model presets are defined in plugins/TARDIS/custom_models.yml:

/plugins/TARDIS/custom_models.yml
# a list of the custom models you want to use
models:
# model name
Type 40:
# the item that is placed on the armour stand
item: CLAY_BALL
Bad Wolf:
item: WOLF_SPAWN_EGG

Custom model data values

The plugin uses standardised values for each state of the TARDIS visuals - open/closed door + 2 stages of materialisation (coloured/clear). You must use these values when setting up your resource pack entries! See the examples below (these are also included in the TARDIS-Resource-Pack, and as comments in custom_models.yml).

StateCustom model data
door closed1001
door open1002
transparent coloured1003
transparent clear1004

Custom model states

Example model overrides

This would go in assets/minecraft/models/item/clay_ball.json:

{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "minecraft:item/clay_ball"
},
"overrides": [
{"predicate": {"custom_model_data": 1001}, "model": "tardis:block/police_box/type_40_closed"},
{"predicate": {"custom_model_data": 1002}, "model": "tardis:block/police_box/type_40_open"},
{"predicate": {"custom_model_data": 1003}, "model": "tardis:block/police_box/type_40_stained"},
{"predicate": {"custom_model_data": 1004}, "model": "tardis:block/police_box/type_40_glass"}
]
}

This would go in assets/minecraft/models/item/wolf_spawn_egg.json:

{
"parent": "minecraft:item/template_spawn_egg",
"overrides": [
{"predicate": {"custom_model_data": 1001}, "model": "tardis:block/police_box/bad_wolf_closed"},
{"predicate": {"custom_model_data": 1002}, "model": "tardis:block/police_box/bad_wolf_open"},
{"predicate": {"custom_model_data": 1003}, "model": "tardis:block/police_box/bad_wolf_stained"},
{"predicate": {"custom_model_data": 1004}, "model": "tardis:block/police_box/bad_wolf_glass"}
]
}