Greymerk / minecraft-roguelike

This is a mod for minecraft that adds randomly generated dungeon complexes.
GNU General Public License v3.0
129 stars 53 forks source link

Can't use loot tables in custom loot json #211

Closed RedBlockCreator closed 4 months ago

RedBlockCreator commented 4 years ago

Following the tut and overriding all default loot tables with the minecraft:chests/simple_dungeon or any other loot table simply doesn't work, and it keeps pulling from the builtin no matter what I do. I have followed the demo.

loot_all.json { "name": "test:loot_all", "loot_rules": [ { "level" : [0, 1, 2, 3, 4], "type" : [ "STARTER", "FOOD", "POTIONS", "MUSIC", "SUPPLIES", "SMITH", "BREWING", "WEAPONS", "ARMOUR", "ENCHANTING" ], "table": "minecraft:chests/simple_dungeon", "each" : true } ] }

loot.json { "name" : "builtin:loot", "inherit" : [ "test:loot_all" ] }

I have tried every variation i can think of and I and a couple other people at this point are simply at a loss.

Oblivionized commented 4 years ago

I'm also having this issue, super frustrating! I really want it to work though, maybe if we went back a few builds then it would work again?

srwaggon commented 4 years ago

@RedBlockCreator @Oblivionized

If you want to use vanilla loot tables to insert modded loot, maybe just try this fork of Roguelike Dungeons instead, as it uses minecraft:chests/simple_dungeon by default out of the box, and has some bug fixes.

https://www.curseforge.com/minecraft/mc-mods/roguelike-dungeons-fnar-edition

Alternatively, check out my configuration as a reference example: https://github.com/srwaggon/fnarpack_server/blob/master/config/roguelike_dungeons/settings/loot/loot_tables.json

Please note that I am however using the Fnar edition fork, so some configurations will look slightly different. This shouldn't be the case in loot or loot tables.

Finally, I've tried to clean up the configurations you pasted:

loot_builtin_override.json

{
  "name": "builtin:loot",
  "loot_rules": [
    {
      "level" : [0, 1, 2, 3, 4],
      "type" : [
        "STARTER", "FOOD", "POTIONS", "MUSIC", "SUPPLIES", "SMITH", "BREWING", "WEAPONS", "ARMOUR", "ENCHANTING", "REWARD", "TOOLS"
      ],
      "table": "minecraft:chests/simple_dungeon"
    }
  ]
}

You can also add the ORE type. All of the types are listed here: https://github.com/Greymerk/minecraft-roguelike/wiki/Loot-Rules#treasure-chest-types


Please let me know if this helped you, and close out the issue if so!