import loottweaker.vanilla.loot.LootTables;
import loottweaker.vanilla.loot.LootTable;
import loottweaker.vanilla.loot.LootPool;
import loottweaker.vanilla.loot.Conditions;
import loottweaker.vanilla.loot.Functions;

// all tables to be edited
val desertPyramid = LootTables.getTable("minecraft:chests/desert_pyramid");
val iglooChest = LootTables.getTable("minecraft:chests/igloo_chest");
val jungleTemple = LootTables.getTable("minecraft:chests/jungle_temple");
val simpleDungeon = LootTables.getTable("minecraft:chests/simple_dungeon");
val strongholdCrossing = LootTables.getTable("minecraft:chests/stronghold_crossing");

// add Lifeblood Crystal pools to all necessary tables
val desertPyramidRaxpackCrystalPool = desertPyramid.addPool("desertPyramidRaxpackCrystalPool", 1, 1, 0, 0);
val iglooChestRaxpackCrystalPool = iglooChest.addPool("iglooChestRaxpackCrystalPool", 1, 1, 0, 0);
val jungleTempleRaxpackCrystalPool = jungleTemple.addPool("jungleTempleRaxpackCrystalPool", 1, 1, 0, 0);
val simpleDungeonRaxpackCrystalPool = simpleDungeon.addPool("simpleDungeonRaxpackCrystalPool", 1, 1, 0, 0);
val strongholdCrossingRaxpackCrystalPool = strongholdCrossing.addPool("strongholdCrossingRaxpackCrystalPool", 1, 1, 0, 0);

// add Lifeblood Crystal to the Crystal pools
desertPyramidRaxpackCrystalPool.addItemEntry(<toughasnails:lifeblood_crystal>, 20, 0);
iglooChestRaxpackCrystalPool.addItemEntry(<toughasnails:lifeblood_crystal>, 20, 0);
jungleTempleRaxpackCrystalPool.addItemEntry(<toughasnails:lifeblood_crystal>, 20, 0);
simpleDungeonRaxpackCrystalPool.addItemEntry(<toughasnails:lifeblood_crystal>, 20, 0);
strongholdCrossingRaxpackCrystalPool.addItemEntry(<toughasnails:lifeblood_crystal>, 20, 0);