AtomicStryker / atomicstrykers-minecraft-mods

Repository for my open source Minecraft Mods
https://atomicstryker.github.io/
180 stars 96 forks source link

modded storage and Ruins #491

Closed Nykrdaudr closed 9 months ago

Nykrdaudr commented 9 months ago

Hi again. in 490 you helped me out quite a bit, but im still stuck on one thing... how do i write this out? "chestgenhook" [to get the loot table] + "sevendaystomine:bookshelf" [the name of the block] + "sevendaystomine:bookshelf_common" [the name of the loot table]

AtomicStryker commented 9 months ago

You should ask in minecraftforums or a forge discord, this is not a support hotline. I will help this final time

See an existing chest from some template i pulled: rule1=0,100,{Ruins:{entity:{ForgeData:{LootTable:"minecraft:chests/simple_dungeon"},Items:[],Lock:""}},Properties:{waterlogged:"false",facing:north,type:"single"},Name:"minecraft:trapped_chest"}

Adjust the relevant fields to your case, drop the chest specific ones rule1=0,100,{Ruins:{entity:{ForgeData:{LootTable:"sevendaystomine:bookshelf_common"}}},Name:"sevendaystomine:bookshelf"}

This may work, it may not, you need to use the ingame parser to store one of these bookshelf tile entities so you can see which properties they have. There will very likely be a facing property at the very least.