Skip to content

End Siege

Chris edited this page Jun 27, 2023 · 13 revisions

Chest Data

Example File

{ 
  "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

File Breakdown:

  1. type: This denotes the data this file will hold. For chest data, this field should be unstable:chest_data.

  2. location: This denotes what chest these items will pertain to. This field can be NORTH, SOUTH, EAST, or WEST.

  3. 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).***


Entity Data

Example File

{
  "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

File Breakdown:

  1. type: This denotes the data this file will hold. For entity data, this field should be unstable:entity_data.

  2. entities: JSON Array containing registry names of entities.

  3. 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.

  4. equipment: JSON Array of JSON Objects containing items to give to the entity.

    a. slot: Should be either HEAD, CHEST, LEGS, FEET, MAINHAND, or OFFHAND.

    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.

Clone this wiki locally