Can't use loot tables in custom loot json
RedBlockCreator opened this issue ยท 2 comments
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.
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?
@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"
}
]
}
- No need for two loot files. One is sufficient to override
builtin:loot
- Renamed "loot_all.json" to "loot_builtin_override.json" to signify overriding the builtin loot table.
- Removed "each" property because it belongs on
loot items
instead ofloot tables
: https://github.com/Greymerk/minecraft-roguelike/wiki/Loot-Items#basic-loot-item - Added
REWARD
type as it is otherwise an empty chest - Added
TOOLS
type because it seemed forgotten. It's like a sibling toWEAPONS
andARMOUR
.
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!