Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

Custom Loot Tables

dfsek edited this page Nov 9, 2020 · 13 revisions

NOTE: THIS IS A PREMIUM-ONLY FEATURE!

As of Premium version 3.0.0, the loot table of any structure can be changed.

  • To create a loot table, use this generator. A tutorial on how to set up the loot table is available on their website. Please note, the following functions are respected: Set Count, Set Damage, and Enchant With Levels. Conditions are not respected, as the tables are for chests, not mobs. Do not prefix item names with minecraft:! (ex. stone is a valid item name, minecraft:stone is not.
    If using the Set Damage function, the damage should be in percentage form, not decimal! (ex. 30, not 0.3)
  • Download your loot table, and create a folder in plugins/BetterEnd called loot.
  • Name your loot table <ID of structure>.json, and place it inside the folder. (A list of structures and their IDs can be found below)
Structure Name Structure ID
Abandoned House wood_house, spruce_house, cobble_house
End House end_house
End Stronghold stronghold
Shulker Nest shulker_nest
Gold Dungeon gold_dungeon
End Ship end_ship
End Tower end_tower
  • If you would like to modify a default loot table, they can be downloaded here.
  • If you used the Enchant With Levels function, you can disable certain enchants using the disabled_enchants key. Example:
"functions": [
  {
  "function": "enchant_with_levels",
    "levels": {
      "min": 20,
      "max": 39
    },
    "disabled_enchants": ["VANISHING_CURSE", "BINDING_CURSE", "MENDING"]
  }
]