Save time with these free and easy to use utilities available for your convenience.
json
and PNG
somewhere convienent.json
and png
into your pack. In this example below I'm using very simple namespaces, however, feel free to implement however you'd like. Simply add the json
into the models directory and the png
into the textures directory. A full guide on implementing custom items can be found here.
📁assets
└── 📁minecraft
└── 📁models
└── 📁custom
└── 📑wooden_chair.json
📁assets
└── 📁minecraft
└── 📁textures
└── 📁custom
└── 📑wooden_chair.png
{
"parent":"item/generated",
"textures":{
"layer0":"item/paper"
},
"overrides":[{
"predicate":{
"custom_model_data": 1 }, "model":"custom/wooden_chair"
}]
}
/give @p item_frame{EntityTag:{Invisible:1b}}
/give @p paper{CustomModelData:1}
You will need to create a new .yml
file in 'MythicMobs/Packs/Custom/Items/' and you can use the following template on the right for each new furniture model you have. Make sure your material ID and model values match what you have when you setup your model predicate (step 2).Type | Must always be furniture for furniture models. |
Drops | The item that will be dropped when a player breaks the furniture. |
Barriers | Where barriers will be placed to form a hitbox. |
Seats | Where "seats" will be added, allowing players to sit. |
Lights | Where light sources will be added; useful for torches, lamps, etc |
Furniture Skills | Where you can add mechanics for certain events, such as when the furniture is placed, broken, damaged, etc. More mechanics can be found here. |
wood_chair:
Id: PAPER
Model: 1
Display: 'Wood Chair'
Type: FURNITURE
Furniture:
Material: PAPER
Model: 1
Drops:
- wood_chair
Barriers:
- 0,0,0
Seats:
- 0,0,0
Lights:
- 0,0,0 15
FurnitureSkills:
- sound{s=entity.chicken.egg} @self ~onBlockPlace
- sound{s=entity.zombie.attack_wooden_door} @self ~onBlockBreak
- sound{s=entity.zombie.attack_wooden_door} @self ~onDamaged
/mm i get <furniture_name>
Check out these other neat guides!