#Name: LootTables.zs #Author: Feed the Beast import loottweaker.vanilla.loot.LootTables; import loottweaker.vanilla.loot.LootTable; import loottweaker.vanilla.loot.LootPool; import loottweaker.vanilla.loot.Functions; import loottweaker.vanilla.loot.Conditions; print("Initializing 'LootTables.zs'..."); #common lootcrate val common = LootTables.getTable("ftbquests:lootcrates/common"); val commonReward = common.addPool("commonReward", 1, 1, 0, 0); commonReward.addItemEntry(, 1); commonReward.addItemEntry( * 16, 1); commonReward.addItemEntry( * 16, 1); commonReward.addItemEntry( * 16, 1); commonReward.addItemEntry( * 16, 1); #uncommon lootcrate val uncommon = LootTables.getTable("ftbquests:lootcrates/uncommon"); val uncommonReward = uncommon.addPool("uncommonReward", 1, 2, 0, 0); uncommonReward.addItemEntry(, 1); uncommonReward.addItemEntry(.withTag({exmode: 0, forceDropItems: 0 as byte, range: 0, blockstate: {Name: "minecraft:air"}}), 1); uncommonReward.addItemEntry(, 1); uncommonReward.addItemEntry(, 1); uncommonReward.addItemEntry( * 4, 1); uncommonReward.addItemEntry(.withTag({chiseldata: {}}), 1); uncommonReward.addItemEntry(, 1); uncommonReward.addItemEntry( * 8, 1); uncommonReward.addItemEntry( * 8, 1); uncommonReward.addItemEntry( * 4, 1); #rare lootcrate val rare = LootTables.getTable("ftbquests:lootcrates/rare"); val rareReward = rare.addPool("rareReward", 1, 1, 0, 0); rareReward.addItemEntry(, 1); rareReward.addItemEntry(, 1); rareReward.addItemEntry( * 2, 1); rareReward.addItemEntry(, 1); rareReward.addItemEntry(, 1); rareReward.addItemEntry(, 1); rareReward.addItemEntry(, 1); rareReward.addItemEntry(, 1); rareReward.addItemEntry(, 1); rareReward.addItemEntry( * 8, 1); #epic lootcrate val epic = LootTables.getTable("ftbquests:lootcrates/epic"); val epicReward = epic.addPool("epicReward", 1, 1, 0, 0); epicReward.addItemEntry(, 1); epicReward.addItemEntry(, 1); epicReward.addItemEntry( * 16, 1); epicReward.addItemEntry( * 16, 1); epicReward.addItemEntry(.withTag({Energy: 0}), 1); epicReward.addItemEntry(, 1); epicReward.addItemEntry(.withTag({}) * 4, 1); epicReward.addItemEntry(.withTag({}) * 4, 1); epicReward.addItemEntry( * 4, 1); epicReward.addItemEntry( * 4, 1); #legendary lootcrate val legendary = LootTables.getTable("ftbquests:lootcrates/legendary"); val legendaryReward = legendary.addPool("legendaryReward", 1, 1, 0, 0); legendaryReward.addItemEntry(, 1); legendaryReward.addItemEntry(.withTag({}), 1); legendaryReward.addItemEntry(, 1); legendaryReward.addItemEntry(, 1); legendaryReward.addItemEntry(, 1); legendaryReward.addItemEntry(, 1); legendaryReward.addItemEntry(, 1); legendaryReward.addItemEntry( * 8, 1); legendaryReward.addItemEntry(.withTag({ChickenType: {id: "morechickens:iridiumchicken"}}) * 2, 1); legendaryReward.addItemEntry(.withTag({ChickenType: {id: "morechickens:demonmetalchicken"}}) * 2, 1); print("Initialized 'LootTables.zs'");