-
Notifications
You must be signed in to change notification settings - Fork 1
End Siege
{
"type": "unstable:chest_data",
"location": "NORTH",
"contents": [
{
"item": "minecraft:diamond"
},
{
"tag": "minecraft:dirt"
},
{
"item": "minecraft:potion",
"nbt": "{Potion:\"minecraft:long_leaping\"}"
},
{
"item": "minecraft:stone_axe",
"nbt": "{Enchantments:[{id:\"minecraft:unbreaking\",lvl:3}]}"
}
]
}
Should be placed in this location: <datapack root>\data\unstable\end_siege\chest_data\<file name>.json
-
type: This denotes the data this file will hold. For chest data, this field should beunstable:chest_data. -
location: This denotes what chest these items will pertain to. This field can beNORTH,SOUTH,EAST, orWEST. -
contents: This is a JSON array denoting what items belong in this chest.*a.
item: JSON array of JSON objects containing the registry names of the items desired.**b. [OPTIONAL]
nbt: Only required if you want an item with nbt (like enchantments or durability).***
{
"type": "unstable:entity_data",
"entities": [
"minecraft:zombie"
],
"effects": [
{
"mobEffect": "minecraft:speed",
"amplifier": 5,
"duration": 6000,
"ambient": true,
"visible": true
}
],
"equipment": [
{
"slot": "CHEST",
"item": "minecraft:golden_chestplate",
"nbt": "{Damage:0}"
},
{
"slot": "MAINHAND",
"item": "minecraft:stone_axe",
"nbt": "{Damage:0,Enchantments:[{id:\"minecraft:sharpness\",lvl:5s}]}"
}
]
}
Should be placed in this location: <datapack root>\data\unstable\end_siege\entity_data\<file name>.json
-
type: This denotes the data this file will hold. For entity data, this field should beunstable:entity_data. -
entities: JSON Array containing registry names of entities. -
effects: JSON Array of JSON Objects containing potion effects to apply to the entity.a.
mobEffect: Registry name of the effect to give to the entity.b.
amplifier: Amplifier of the effect.c.
duration: Duration (in ticks) the effect should last for.d.
ambient: Whether or not the effect should have ambient particles.e.
visible: Whether or not the effect particles should be visible. -
equipment: JSON Array of JSON Objects containing items to give to the entity.a.
slot: Should be eitherHEAD,CHEST,LEGS,FEET,MAINHAND, orOFFHAND.b.
item: Registry name of the item to give to the entity.c. [OPTIONAL]
nbt: Any nbt data you want the item to have.***
* The maximum number of items allowed in this array is 27.
** Can be swappped for tag if using an item tag.
*** This can be retrieved by running /data get entity @p SelectedItem while holding the item.