Making a datapack(?) to enable Rings of Ascension to spawn in modded structures
brokeAK opened this issue ยท 2 comments
Hello! I use many modded structures in my game, and would like to know how to make the Rings of Ascension spawn in those modded structures' chests.
Honestly, I don't know much about making datapacks. At first I figured I could edit the loot_modifiers file, and add the chests from modded structures there, but well... I'm not really sure what exactly to write for those modded structures. I also figure that I may need to change the loot tables for those mods, and well, I haven't really gotten that far since I am not so sure what I'm doing.
If any assistance could be provided, that would be much appreciated.
Thanks!
You'll have to use a DataPack to change the loot modifiers and add the modded loot tables to it.
Here is an example DataPack that contains all the loot modifiers files:
ringmodifiers.zip
You just need to edit the file for the ring you want to modify, and add the modded loot table to it.
The modded loot table name will be modid:path/to/loot/table
You can open the mod's .jar with WinRAR to see the path to the loot table.
For example, I want the Ring of Experience to be able to spawn in the Cyclops Cave from Ice and Fire.
Opening the Ice and Fire .jar with WinRAR, I can find the loot table for the Cyclops Cave in data/iceandfire/loot_tables/chest/cyclops_cave
The path will be everything after the loot_tables
folder. So the loot table to insert in the loot modifier file will be iceandfire:chest/cyclops_cave
My final experience.json
file will look like this:
{
"type": "ringsofascension:rings_modifier",
"conditions": [
{
"condition": "random_chance",
"chance": 0.1
}
],
"loot_tables": [
"minecraft:chests/spawn_bonus_chest",
"minecraft:chests/simple_dungeon",
"minecraft:chests/buried_treasure",
"minecraft:chests/ruined_portal",
"iceandfire:chest/cyclops_cave"
],
"ring": "ringsofascension:ring_experience"
}
Cyclops DataPack Example:
experience_cyclops.zip