Generate loot tables in structures

Started by Orrinpants on Sun, 04/11/2021 - 15:53

Topic category: Help with MCreator software

Last seen on 00:08, 10. May 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Generate loot tables in structures
Sun, 04/11/2021 - 15:53

How do you make a custom loot table spawn in a custom structure?

Last seen on 00:08, 10. May 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
NONE of the related topics…
Sun, 04/11/2021 - 23:47

NONE of the related topics are related.

Last seen on 15:29, 9. May 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Create a custom loot table…
Wed, 04/14/2021 - 23:15

Create a custom loot table first for your mod.

Then head in game and spawn in a command block, place it above the structure chest and type in this: 

/data merge block ~ ~-1 ~ {LootTable:"minecraft:chests/simple_dungeon"} (This gives default dungeon loot, you can replace minecraft:chest/simple_dungeon to your mod's loot table so it should look something like this: modname:itemloottable)

Place a button to activate the command block, and minecraft should tell you if it modified a block. If it does then you have done it successfully and you can check if the loot is randomized by breaking the command block and checking the chest. Keep in mind if you do this, you will need to redo the command because the loot won't be randomized anymore because you opened it.