![]() ![]() ![]() The namespace that Minecraft use is minecraft. This is to reduce issues if someone adds two packs to your game which both add an ectoplasm item the namespace reduces the chance of the identifier being the same. The namespace is unique to your addon and you will use it throughout the project. For a vanilla minecraft egg it's identifier is minecraft:egg. ![]() We do this by defining an identifier for our item.Īn identifier is a name unique to this item. In order for the game to apply the correct components to the correct item, we need to be able to tell the game which item is ours. To do this we use the component "minecraft:max_stack_size" and set its value to 16. All components have a value attached to it which we can edit to get the behaviour we want.įor our ectoplasm, we will set it to have a stack size of 16, similar to eggs. For example the component "minecraft:foil" determines whether the item should have an enchanted foil to it, so setting it to true will apply it. Components/ ```json "minecraft:food": "minecraft:foil": true, "minecraft:max_stack_size": 16 ``` CopyĬomponents contain information which tells the game what our item should do. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |