Question. Who would I use this to integrate DungeonZ?
ChippyLa opened this issue ยท 3 comments
DungeonZ has the capability to have it's dungeon's chest's loot tables modified. The modpack we made using many loot mods like MC Dungeons Artifacts and Simply swords. Your mod works perfectly for When Dungeons Arise, but we are wonder how we could have DungeonZ's chests integrated too. Is your mod capable of that? This is version 1.20.1 As they are now, they are the simple low dungeon default minecraft loot. And we were hopping to get loot to work with it the integrated loot, if it can be integrated, too, but we highly doubt it will.
My mod actually allows you to work with any loottable, even non-chest ones.
Basically you create a copy of the inbuilt datapack like this one for example:
https://github.com/someaddons/LootIntegrations/blob/1.20.1/src/main/resources/data/lootintegrations/loot/dungeonloot_easy.json
Note that it requires those exact folderpaths(starting with data/ as the top level folder), also rename the file to a different name, else it overwrites the default.
The first line ""loot_table": "lootintegrations:chests/easy"," is the loottable from which you want to draw items from.
The list with "integrated_loot_tables" are the list of loottables which the items are inserted into (the number is how many items are put in)
To add integration to another mod you need to find that mods loottable ID's used, if you want to add stuff to chests you can go into the lootintegrations config and enable the config which allows you to get the loottable ID from chests into the chat when you open them the first time
So I have the DungeonZ .json what handles loot table selection, and I should make it use the loot integration mod loot table ids instead of it's original? I have that part of it here. I replace, for example, "minecraft:chests/village/village_temple" with "lootintegrations:chests/easy"? Also, are you saying you mod takes all the possible loot from a bunch of loot tables, and spits out an amalgamation loot table under easy, normal, hard etc. etc. based on the tables listed in those categories? I ask this because because even with the modded items being available in chests outside of the DungeonZ dungeon, as soon as you open a chest with the same loot table ID, inside a DungeonZ dungeon, modded items are no where do be found, but that may just be a DungeonZ issue
{
"dungeon_type": "mine_dungeon",
"difficulty": {
"inting": {
"mob_modificator": 0.9,
"loot_table_ids": [
"minecraft:chests/village/village_temple"
],
"boss_modificator": 1.0,
"boss_loot_table_id": "minecraft:chests/village/village_weaponsmith"
},
"easy": {
"mob_modificator": 2.0,
"loot_table_ids": [
"minecraft:chests/desert_pyramid"
],
"boss_modificator": 4.0,
"boss_loot_table_id": "minecraft:chests/woodland_mansion"
},
"normal": {
"mob_modificator": 4.0,
"loot_table_ids": [
"minecraft:chests/end_city_treasure"
],
"boss_modificator": 7.0,
"boss_loot_table_id": "minecraft:chests/bastion_treasure"
}
},