Generate loot tables in structures

Started by Orrinpants on

Topic category: Help with MCreator software

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Generate loot tables in structures

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

Joined Oct 2020
Points:

User statistics:

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

NONE of the related topics are related.

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there any way to make it…
Thu, 02/20/2025 - 11:55

Is there any way to make it naturally generate with this loot?

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Arcane5050 after using the…
Fri, 03/28/2025 - 14:17

@Arcane5050 after using the command on the chests, save the structure they are in with a structure block. retrieve the structure files from the world folder and import them to mcreator. then just create a structure in mcreator to make it naturally generate