Loot Tables from other mods
Niduin opened this issue · 5 comments
Are other mods known that have a loottable to expand this mod?
In the moment only mocreatures and sgs_metals are supported for loot.
It would be nice to find loot also from other mods
For Example Megaloot
"loot_rules" : [
{
"type" : "TOOLS",
"loot" : [
{"data" : {"type" : "tool", "level" : 4}, "weight" : 1},
{"data" : {"name" : "megaloot:weaponcase_epic"}, "weight" : 1},
{"data" : {"name" : "megaloot:weaponcase_rare"}, "weight" : 3},
{"data" : {"name" : "megaloot:weaponcase_common"}, "weight" : 4},
{"data" : {"name" : "megaloot:shard_common"}, "weight" : 3},
{"data" : {"name" : "megaloot:shard_epic"}, "weight" : 1},
{"data" : {"name" : "megaloot:shard_rare"}, "weight" : 3}
],
"each" : true,
"quantity" : 1
IS there actually a way to add loot from other mods like via .json file?
If yes how to?
Yes. So if you updated to v1.3.6 all the custom loot tables have now been exposed that you can customize or simply add more chests to.
- If you look at the loot tables in .../mods/treasure2/loot_tables/treasure2/chests/common you could easily just add an item directly to a pool. ex:
...
{
"name": "items",
"rolls": {
"min": 1,
"max": 5
},
"entries": [
{
"type": "loot_table",
"name": "treasure2:loot_tables/treasure2/items/common",
"weight": 1
},
{
"entryName": "weaponcase_epic",
"type": "item",
"name": "megaloot:weaponcase_epic",
"weight": 50
},
]
},
...
or
2) you could add more entries to the ../items/, ../armor/, ../food/, etc loot tables.
or
3) you could just add a new entire file to the ../chests/[rarity] folder(s).
or
4) add a new folder ...mods/treasure2/loot_tables/megaloot/chests/common and add new loot table files there. you would also have to enable foreign mods in the configuration file. this ensures that these loot tables would only be used if that mod exists.
That's a quick run-down.