Items, blocks, or entities will load when you have the dependent pack installed. This can be used when you want to add support for other addons. For example pack 1 adds new types of blocks but you want to make it where if you have pack 2 it will then register the blocks in pack 1
Code example;
{
"format_version": "1.16.100",
"minecraft:item": { // Would work for blocks, items and entities.
"description": {
"identifier": "...",
"register": [ // Must have all the following packs to register this item in-game. If not defined it will always register.
{
"required": false, // opt false by default. if true it will not load the pack.
"description": "This item will register when this pack is installed." // opt No real use, just to keep track of what the pack is.
"uuid": "dd9471a8-7a98-4935-9c37-da292475abac" // The uuid of the pack
"version": [1, 0, 0] // opt The version of the pack, if not defined it will except any version.
},
]
},
"components": {...}
}
}
It could also include MoLang queries for per block property registering
query.register('dd9471a8-7a98-4935-9c37-da292475abac')
Please sign in to leave a comment.
2 Comments