Structure chests

Started by THe_mag-pie on Mon, 08/19/2019 - 04:59

Topic category: User side tutorials

Last seen on 00:36, 21. Feb 2020
Joined Jun 2018
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
Structure chests
Mon, 08/19/2019 - 04:59

I plan to make some structures in one of my mods, most of which have chests in them, how do I put random items in the chests like in dungeons.

0Upvote this forum topic
Last seen on 20:31, 26. Feb 2020
Joined Sep 2016
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
there is a command that…
Mon, 08/19/2019 - 07:33

there is a command that spawns a chest with random loot

/setblock ~ ~ ~ minecraft:chest 2 replace {LootTable:"chests/simple_dungeon"}

it generates a chest with random loot that you would fin in a simple dungeon, here is also the wiki page where you can find more lot tables

https://minecraft.gamepedia.com/Loot_table#List_of_loot_tables

one last thing , if you want the chest to have random loot in a structure don't open it , if you do the loot won't randomize.

hope i was useful to you

0Upvote this forum topic
Last seen on 00:36, 21. Feb 2020
Joined Jun 2018
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
THX
Tue, 08/20/2019 - 20:09

THX

0Upvote this forum topic
Last seen on 22:27, 25. Feb 2020
Joined Aug 2013
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
How do I use/add the loot…
Sat, 01/04/2020 - 01:04

How do I use/add the loot tables to blocks? I created a loot table. How can I assign a loot table to, lets say a chest?

I tried to do it with a command in a procedure but I am to stupid to get it working ^^´. I use 1.12.2 as selected version.

Or maybe you can add a "assign loot table" procedure block? :P

0Upvote this forum topic
Last seen on 22:27, 25. Feb 2020
Joined Aug 2013
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
LootTable:"chests/simple…
Sat, 01/04/2020 - 11:46

LootTable:"chests/simple_dungeon"  works, but how do I define my custom loot table?

0Upvote this forum topic
Last seen on 22:27, 25. Feb 2020
Joined Aug 2013
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
/setblock ~ ~ ~ minecraft…
Sat, 01/04/2020 - 14:28

/setblock ~ ~ ~ minecraft:chest 2 replace {LootTable:"dungeonmod:testloot"} isn´t working

so do you mean...

/setblock ~ ~ ~ minecraft:chest 2 replace {LootTable:"blocks:testloot"}  ?? :/
 

0Upvote this forum topic
Last seen on 19:25, 27. Feb 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
I am not sure if it will…
Sat, 01/04/2020 - 14:37

I am not sure if it will work in 1.12.2, update to 1.14.4.

0Upvote this forum topic
Last seen on 22:27, 25. Feb 2020
Joined Aug 2013
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
I already got it easy…
Sat, 01/04/2020 - 14:41

I already got it easy working for 1.14.4 with

data merge block ~ ~ ~ {LootTable:"dungeonmod:testloot"}

but in 1.12.2 this command does not exist. So I need a other way ;)

0Upvote this forum topic
Last seen on 19:25, 27. Feb 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
I am not sure how you would…
Sat, 01/04/2020 - 14:43

I am not sure how you would do it in 1.12.2, I suggest you to stick with 1.14.4, 1.12.2 was marked as legacy by Forge developers.

0Upvote this forum topic
Last seen on 22:26, 25. Feb 2020
Joined Dec 2016
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
Works for me if you add the…
Sat, 01/04/2020 - 18:45

Works for me if you add the type of loot it is <example: chests> and then /<name> like this: /setblock ~ ~ ~ minecraft:chest 1 replace {LootTable:"modid:loottype/lootname"}

Replace modid with your mod id, loottype with whatever kind of loot it is, and lootname with the name you put after the slash.

Options for loot type are:

blocks/
chests/
entities/
gameplay/

 

0Upvote this forum topic