Skip to content

Custom Items

Ryandw11 edited this page Jun 29, 2020 · 1 revision

In custom structures you can use custom items inside of loot tables.

Creating a Custom Item

In order to use custom items in a structure you must create it.

  1. Hold the item you want in your primary hand.
  2. Run /cstructure additem {key}

{key} is what the item will go by in the loot table file.

Adding a Custom Item to a Loot Table

To add a custom item to a loot table just add the following:

  item3:
    Type: 'CUSTOM'
    Key: 'test'
    Amount: 5
    Weight: 20

item3 can be anything (just like normal loot table items.)
Type tells the loot table that item3 is a custom item.
Key is the custom item key you defined when running the additem command in-game.
Weight and Amount works just like a normal loot table item.

Disclaimer: Due to the way Spigot handles saving items, custom items may not work from version to version. (For example: If you update your server to 1.16, Custom Items from 1.15 may not work.)

Clone this wiki locally