-
Notifications
You must be signed in to change notification settings - Fork 35
Coaster Models
Models for Brewin' and Chewin's coaster are entirely resource pack driven. This means you'll only need to supply a block model, and then that will be loaded in-game when the associated item is placed on the coaster.
Coaster Model definitions are located in the assets/<namespace>/brewinandchewin/coaster directory of your resource pack, and are JSON files. You are free to look at any existing defintions within the mod here.
Warning
JSON does not support comments, make sure to remove any comments that are found here from your resource pack's JSON if you want a working example.
The main two fields within coaster model files are item and models. You will need both of these fields for a valid definition.
{
"item": "minecraft:potion",
"models": [
{
"model": "brewinandchewin:block/coaster_potion_bottle" // The first model to render when rendering this item's path.
},
{
"model": "brewinandchewin:block/coaster_potion_contents", // The second model to render when rendering this item's path.
"texture_modifiers": [ // Texture modifiers allow you to change certain things about the rendering of the model they are attached to...
{
"type": "brewinandchewin:potion_tint" // Such as tinting based on potion NBT.
}
]
}
]
}brewinandchewin:grass_tint - Tints the texture based on the placement position's grass color.
brewinandchewin:glint - Causes the layer to be rendered as an enchantment glint. (Please note that you'll need to render something below the glint)
brewinandchewin:potion_tint - Tints the texture based on the item's potion color in NBT.
{ "item": "minecraft:carrot", // An item ID that this coaster model is associated with. "models": "brewinandchewin:block/coaster_carrot" // Accepts either an array of model paths to be displayed together, or a single model path string. }