Inject TR loot into chests

This commit is contained in:
drcrazy 2019-07-31 16:17:59 +03:00
parent 35c6c12b72
commit 66a6577dde
14 changed files with 131 additions and 1652 deletions

View file

@ -74,12 +74,10 @@ public class TechReborn implements ModInitializer {
ModRegistry.setupShit();
RecipeCrafter.soundHanlder = new ModSounds.SoundHandler();
ModLoot.init();
proxy.preInit();
// Registers Chest Loot
ModLoot.init();
// MinecraftForge.EVENT_BUS.register(new ModLoot());
// Client only init, needs to be done before parts system
proxy.init();

View file

@ -24,64 +24,141 @@
package techreborn.init;
import net.minecraft.util.Identifier;
import techreborn.TechReborn;
import net.fabricmc.fabric.api.loot.v1.FabricLootPoolBuilder;
import net.fabricmc.fabric.api.loot.v1.event.LootTableLoadingCallback;
import net.minecraft.item.ItemConvertible;
import net.minecraft.world.loot.LootPool;
import net.minecraft.world.loot.UniformLootTableRange;
import net.minecraft.world.loot.entry.ItemEntry;
import net.minecraft.world.loot.entry.LootEntry;
import net.minecraft.world.loot.function.SetCountLootFunction;
import techreborn.config.ConfigTechReborn;
import java.util.ArrayList;
import java.util.List;
import techreborn.init.TRContent.Ingots;
import techreborn.init.TRContent.Parts;
public class ModLoot {
public static List<Identifier> lootTables = new ArrayList<Identifier>();
public static void init() {
if (ConfigTechReborn.enableOverworldLoot) {
lootTables.add(new Identifier(TechReborn.MOD_ID, "chests/abandoned_mineshaft"));
lootTables.add(new Identifier(TechReborn.MOD_ID, "chests/desert_pyramid"));
lootTables.add(new Identifier(TechReborn.MOD_ID, "chests/igloo_chest"));
lootTables.add(new Identifier(TechReborn.MOD_ID, "chests/jungle_temple"));
lootTables.add(new Identifier(TechReborn.MOD_ID, "chests/simple_dungeon"));
lootTables.add(new Identifier(TechReborn.MOD_ID, "chests/stronghold_corridor"));
lootTables.add(new Identifier(TechReborn.MOD_ID, "chests/stronghold_crossing"));
lootTables.add(new Identifier(TechReborn.MOD_ID, "chests/stronghold_library"));
lootTables.add(new Identifier(TechReborn.MOD_ID, "chests/village_blacksmith"));
lootTables.add(new Identifier(TechReborn.MOD_ID, "chests/woodland_mansion"));
}
if (ConfigTechReborn.enableNetherLoot) {
lootTables.add(new Identifier(TechReborn.MOD_ID, "chests/nether_bridge"));
}
if (ConfigTechReborn.enableEndLoot) {
lootTables.add(new Identifier(TechReborn.MOD_ID, "chests/end_city_treasure"));
}
for (Identifier lootTable : lootTables) {
//LootTables.registerLootTable(lootTable);
}
LootEntry copperIngot = makeEntry(Ingots.COPPER);
LootEntry tinIngot = makeEntry(Ingots.TIN);
LootEntry leadIngot = makeEntry(Ingots.LEAD);
LootEntry silverIngot = makeEntry(Ingots.SILVER);
LootEntry refinedronIngot = makeEntry(Ingots.REFINED_IRON);
LootEntry advancedalloyIngot = makeEntry(Ingots.ADVANCED_ALLOY);
LootEntry basicFrame = makeEntry(TRContent.MachineBlocks.BASIC.frame.asItem());
LootEntry basicCircuit = makeEntry(Parts.ELECTRONIC_CIRCUIT);
LootEntry aluminumIngot = makeEntry(Ingots.ALUMINUM);
LootEntry electrumIngot = makeEntry(Ingots.ELECTRUM);
LootEntry invarIngot = makeEntry(Ingots.INVAR);
LootEntry nickelIngot = makeEntry(Ingots.NICKEL);
LootEntry steelIngot = makeEntry(Ingots.STEEL);
LootEntry zincIngot = makeEntry(Ingots.ZINC);
LootEntry advancedFrame = makeEntry(TRContent.MachineBlocks.ADVANCED.frame.asItem());
LootEntry advancedCircuit = makeEntry(Parts.ADVANCED_CIRCUIT);
LootEntry dataStorageChip = makeEntry(Parts.DATA_STORAGE_CHIP);
LootEntry chromeIngot = makeEntry(Ingots.CHROME);
LootEntry iridiumIngot = makeEntry(Ingots.IRIDIUM);
LootEntry platinumIngot = makeEntry(Ingots.PLATINUM);
LootEntry titaniumIngot = makeEntry(Ingots.TITANIUM);
LootEntry tungstenIngot = makeEntry(Ingots.TUNGSTEN);
LootEntry tungstensteelIngot = makeEntry(Ingots.TUNGSTENSTEEL);
LootEntry industrialFrame = makeEntry(TRContent.MachineBlocks.INDUSTRIAL.frame.asItem());
LootEntry industrialCircuit = makeEntry(Parts.INDUSTRIAL_CIRCUIT);
LootEntry energyFlowChip = makeEntry(Parts.ENERGY_FLOW_CHIP);
LootPool poolBasic = FabricLootPoolBuilder.builder().withEntry(copperIngot).withEntry(tinIngot)
.withEntry(leadIngot).withEntry(silverIngot).withEntry(refinedronIngot).withEntry(advancedalloyIngot)
.withEntry(basicFrame).withEntry(basicCircuit).withRolls(UniformLootTableRange.between(1.0f, 2.0f))
.build();
LootPool poolAdvanced = FabricLootPoolBuilder.builder().withEntry(aluminumIngot).withEntry(electrumIngot)
.withEntry(invarIngot).withEntry(nickelIngot).withEntry(steelIngot).withEntry(zincIngot)
.withEntry(advancedFrame).withEntry(advancedCircuit).withEntry(dataStorageChip).withRolls(UniformLootTableRange.between(1.0f, 3.0f))
.build();
LootPool poolIndustrial = FabricLootPoolBuilder.builder().withEntry(chromeIngot).withEntry(iridiumIngot)
.withEntry(platinumIngot).withEntry(titaniumIngot).withEntry(tungstenIngot).withEntry(tungstensteelIngot)
.withEntry(industrialFrame).withEntry(industrialCircuit).withEntry(energyFlowChip).withRolls(UniformLootTableRange.between(1.0f, 3.0f))
.build();
LootTableLoadingCallback.EVENT.register((resourceManager, lootManager, ident, supplier, setter) -> {
String stringId = ident.toString();
if (!stringId.startsWith("minecraft:chests")) {
return;
}
if (ConfigTechReborn.enableOverworldLoot) {
switch (stringId) {
case "minecraft:chests/abandoned_mineshaft":
supplier.withPool(poolBasic);
break;
case "minecraft:chests/desert_pyramid":
supplier.withPool(poolBasic);
break;
case "minecraft:chests/igloo_chest":
supplier.withPool(poolBasic);
break;
case "minecraft:chests/jungle_temple":
supplier.withPool(poolBasic);
break;
case "minecraft:chests/simple_dungeon":
supplier.withPool(poolBasic);
break;
case "minecraft:chests/village/village_weaponsmith":
supplier.withPool(poolBasic);
break;
case "minecraft:chests/village/village_armorer":
supplier.withPool(poolBasic);
break;
case "minecraft:chests/village/village_toolsmith":
supplier.withPool(poolBasic);
break;
case "minecraft:chests/stronghold_corridor":
supplier.withPool(poolAdvanced);
break;
case "minecraft:chests/stronghold_crossing":
supplier.withPool(poolAdvanced);
break;
case "minecraft:chests/stronghold_library":
supplier.withPool(poolAdvanced);
break;
case "minecraft:chests/woodland_mansion":
supplier.withPool(poolIndustrial);
break;
}
}
if (ConfigTechReborn.enableNetherLoot) {
if (stringId.equals("minecraft:chests/nether_bridge")) {
supplier.withPool(poolAdvanced);
}
}
if (ConfigTechReborn.enableEndLoot) {
if (stringId.equals("minecraft:chests/end_city_treasure")) {
supplier.withPool(poolIndustrial);
}
}
});
}
// @SubscribeEvent
// public void lootLoad(LootTableLoadEvent event) {
// if (!event.getName().getNamespace().equals("minecraft")) {
// return;
// }
// for (Identifier lootTable : lootTables) {
// if (event.getName().getNamespace().equals(lootTable.getPath())) {
// event.getTable().addPool(getLootPool(lootTable));
// TechReborn.LOGGER.debug("Loot pool injected into " + lootTable.getPath());
// }
// }
// }
//
// /**
// * Generates loot pool to be injected into vanilla loot pools
// *
// * @param lootTable ResourceLocation Loot table to inject
// * @return LootPool Loot pool to inject
// */
// private LootPool getLootPool(Identifier lootTable) {
// LootEntry entry = new LootTableEntry(lootTable, 1, 0, new LootCondition[0], "lootEntry_" + lootTable.toString());
// LootPool pool = new LootPool(new LootEntry[] { entry }, new LootCondition[0], new UniformLootTableRange(1), new UniformLootTableRange(0, 1), "lootPool_" + lootTable.toString());
// return pool;
// }
/**
* Makes loot entry from item provided
*
* @param item Item to include into LootEntry
* @return LootEntry for item provided
*/
private static LootEntry makeEntry(ItemConvertible item) {
return ItemEntry.builder(item).setWeight(5)
.withFunction(SetCountLootFunction.builder(UniformLootTableRange.between(1.0f, 2.0f))).build();
}
}

View file

@ -1,131 +0,0 @@
{
"pools": [
{
"name": "techreborn",
"rolls": 1,
"entries": [
{
"type": "item",
"name": "techreborn:bronze_ingot",
"entryName": "bronze_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:copper_ingot",
"entryName": "copper_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:lead_ingot",
"entryName": "lead_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:silver_ingot",
"entryName": "silver_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:tin_ingot",
"entryName": "tin_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:refined_iron_ingot",
"entryName": "refined_iron_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:advanced_alloy_ingot",
"entryName": "advanced_alloy_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:basic_machine_frame",
"entryName": "basic_frame",
"weight": 5
},
{
"type": "item",
"name": "techreborn:electronic_circuit",
"entryName": "basic_circuit",
"weight": 5
},
{
"type": "empty",
"weight": 50
}
]
}
]
}

View file

@ -1,131 +0,0 @@
{
"pools": [
{
"name": "techreborn",
"rolls": 1,
"entries": [
{
"type": "item",
"name": "techreborn:bronze_ingot",
"entryName": "bronze_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:copper_ingot",
"entryName": "copper_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:lead_ingot",
"entryName": "lead_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:silver_ingot",
"entryName": "silver_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:tin_ingot",
"entryName": "tin_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:refined_iron_ingot",
"entryName": "refined_iron_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:advanced_alloy_ingot",
"entryName": "advanced_alloy_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:basic_machine_frame",
"entryName": "basic_frame",
"weight": 5
},
{
"type": "item",
"name": "techreborn:electronic_circuit",
"entryName": "basic_circuit",
"weight": 5
},
{
"type": "empty",
"weight": 50
}
]
}
]
}

View file

@ -1,125 +0,0 @@
{
"pools": [
{
"name": "techreborn",
"rolls": {
"min": 1,
"max": 3
},
"entries": [
{
"type": "item",
"name": "techreborn:chrome_ingot",
"entryName": "chrome_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:iridium_ingot",
"entryName": "iridium_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:platinum_ingot",
"entryName": "platinum_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:titanium_ingot",
"entryName": "titanium_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:tungsten_ingot",
"entryName": "tungsten_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:tungstensteel_ingot",
"entryName": "tungstensteel_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:industrial_machine_frame",
"entryName": "tier3_machine_block",
"weight": 30
},
{
"type": "item",
"name": "techreborn:industrial_circuit",
"entryName": "tier3_electronic_circuit",
"weight": 30
},
{
"type": "item",
"name": "techreborn:energy_flow_chip",
"entryName": "tier2_data_circuit",
"weight": 15
},
{
"type": "empty",
"weight": 20
}
]
}
]
}

View file

@ -1,131 +0,0 @@
{
"pools": [
{
"name": "techreborn",
"rolls": 1,
"entries": [
{
"type": "item",
"name": "techreborn:bronze_ingot",
"entryName": "bronze_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:copper_ingot",
"entryName": "copper_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:lead_ingot",
"entryName": "lead_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:silver_ingot",
"entryName": "silver_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:tin_ingot",
"entryName": "tin_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:refined_iron_ingot",
"entryName": "refined_iron_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:advanced_alloy_ingot",
"entryName": "advanced_alloy_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:basic_machine_frame",
"entryName": "basic_frame",
"weight": 5
},
{
"type": "item",
"name": "techreborn:electronic_circuit",
"entryName": "basic_circuit",
"weight": 5
},
{
"type": "empty",
"weight": 50
}
]
}
]
}

View file

@ -1,131 +0,0 @@
{
"pools": [
{
"name": "techreborn",
"rolls": 1,
"entries": [
{
"type": "item",
"name": "techreborn:bronze_ingot",
"entryName": "bronze_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:copper_ingot",
"entryName": "copper_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:lead_ingot",
"entryName": "lead_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:silver_ingot",
"entryName": "silver_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:tin_ingot",
"entryName": "tin_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:refined_iron_ingot",
"entryName": "refined_iron_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:advanced_alloy_ingot",
"entryName": "advanced_alloy_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:basic_machine_frame",
"entryName": "basic_frame",
"weight": 5
},
{
"type": "item",
"name": "techreborn:electronic_circuit",
"entryName": "basic_circuit",
"weight": 5
},
{
"type": "empty",
"weight": 50
}
]
}
]
}

View file

@ -1,140 +0,0 @@
{
"pools": [
{
"name": "techreborn",
"rolls": {
"min": 1,
"max": 3
},
"entries": [
{
"type": "item",
"name": "techreborn:aluminum_ingot",
"entryName": "aluminium_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:brass_ingot",
"entryName": "brass_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:electrum_ingot",
"entryName": "electrum_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:invar_ingot",
"entryName": "invar_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:nickel_ingot",
"entryName": "nickel_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:steel_ingot",
"entryName": "steel_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:zinc_ingot",
"entryName": "zinc_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:advanced_machine_frame",
"entryName": "tier2_machine_block",
"weight": 30
},
{
"type": "item",
"name": "techreborn:advanced_circuit",
"entryName": "tier2_electronic_circuit",
"weight": 15
},
{
"type": "item",
"name": "techreborn:data_storage_chip",
"entryName": "tier1_data_circuit",
"weight": 15
},
{
"type": "empty",
"weight": 20
}
]
}
]
}

View file

@ -1,131 +0,0 @@
{
"pools": [
{
"name": "techreborn",
"rolls": 1,
"entries": [
{
"type": "item",
"name": "techreborn:bronze_ingot",
"entryName": "bronze_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:copper_ingot",
"entryName": "copper_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:lead_ingot",
"entryName": "lead_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:silver_ingot",
"entryName": "silver_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:tin_ingot",
"entryName": "tin_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:refined_iron_ingot",
"entryName": "refined_iron_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:advanced_alloy_ingot",
"entryName": "advanced_alloy_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:basic_machine_frame",
"entryName": "basic_frame",
"weight": 5
},
{
"type": "item",
"name": "techreborn:electronic_circuit",
"entryName": "basic_circuit",
"weight": 5
},
{
"type": "empty",
"weight": 50
}
]
}
]
}

View file

@ -1,140 +0,0 @@
{
"pools": [
{
"name": "techreborn",
"rolls": {
"min": 1,
"max": 3
},
"entries": [
{
"type": "item",
"name": "techreborn:aluminum_ingot",
"entryName": "aluminium_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:brass_ingot",
"entryName": "brass_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:electrum_ingot",
"entryName": "electrum_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:invar_ingot",
"entryName": "invar_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:nickel_ingot",
"entryName": "nickel_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:steel_ingot",
"entryName": "steel_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:zinc_ingot",
"entryName": "zinc_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:advanced_machine_frame",
"entryName": "tier2_machine_block",
"weight": 30
},
{
"type": "item",
"name": "techreborn:advanced_circuit",
"entryName": "tier2_electronic_circuit",
"weight": 15
},
{
"type": "item",
"name": "techreborn:data_storage_chip",
"entryName": "tier1_data_circuit",
"weight": 15
},
{
"type": "empty",
"weight": 20
}
]
}
]
}

View file

@ -1,140 +0,0 @@
{
"pools": [
{
"name": "techreborn",
"rolls": {
"min": 1,
"max": 3
},
"entries": [
{
"type": "item",
"name": "techreborn:aluminum_ingot",
"entryName": "aluminium_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:brass_ingot",
"entryName": "brass_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:electrum_ingot",
"entryName": "electrum_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:invar_ingot",
"entryName": "invar_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:nickel_ingot",
"entryName": "nickel_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:steel_ingot",
"entryName": "steel_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:zinc_ingot",
"entryName": "zinc_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:advanced_machine_frame",
"entryName": "tier2_machine_block",
"weight": 30
},
{
"type": "item",
"name": "techreborn:advanced_circuit",
"entryName": "tier2_electronic_circuit",
"weight": 15
},
{
"type": "item",
"name": "techreborn:data_storage_chip",
"entryName": "tier1_data_circuit",
"weight": 15
},
{
"type": "empty",
"weight": 20
}
]
}
]
}

View file

@ -1,140 +0,0 @@
{
"pools": [
{
"name": "techreborn",
"rolls": {
"min": 1,
"max": 3
},
"entries": [
{
"type": "item",
"name": "techreborn:aluminum_ingot",
"entryName": "aluminium_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:brass_ingot",
"entryName": "brass_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:electrum_ingot",
"entryName": "electrum_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:invar_ingot",
"entryName": "invar_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:nickel_ingot",
"entryName": "nickel_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:steel_ingot",
"entryName": "steel_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:zinc_ingot",
"entryName": "zinc_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:advanced_machine_frame",
"entryName": "tier2_machine_block",
"weight": 30
},
{
"type": "item",
"name": "techreborn:advanced_circuit",
"entryName": "tier2_electronic_circuit",
"weight": 15
},
{
"type": "item",
"name": "techreborn:data_storage_chip",
"entryName": "tier1_data_circuit",
"weight": 15
},
{
"type": "empty",
"weight": 20
}
]
}
]
}

View file

@ -1,131 +0,0 @@
{
"pools": [
{
"name": "techreborn",
"rolls": 1,
"entries": [
{
"type": "item",
"name": "techreborn:bronze_ingot",
"entryName": "bronze_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:copper_ingot",
"entryName": "copper_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:lead_ingot",
"entryName": "lead_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:silver_ingot",
"entryName": "silver_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:tin_ingot",
"entryName": "tin_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:refined_iron_ingot",
"entryName": "refined_iron_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:advanced_alloy_ingot",
"entryName": "advanced_alloy_ingot",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:basic_machine_frame",
"entryName": "basic_frame",
"weight": 5
},
{
"type": "item",
"name": "techreborn:electronic_circuit",
"entryName": "basic_circuit",
"weight": 5
},
{
"type": "empty",
"weight": 50
}
]
}
]
}

View file

@ -1,125 +0,0 @@
{
"pools": [
{
"name": "techreborn",
"rolls": {
"min": 1,
"max": 3
},
"entries": [
{
"type": "item",
"name": "techreborn:chrome_ingot",
"entryName": "chrome_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:iridium_ingot",
"entryName": "iridium_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:platinum_ingot",
"entryName": "platinum_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:titanium_ingot",
"entryName": "titanium_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:tungsten_ingot",
"entryName": "tungsten_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:tungstensteel_ingot",
"entryName": "tungstensteel_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "techreborn:industrial_machine_frame",
"entryName": "tier3_machine_block",
"weight": 30
},
{
"type": "item",
"name": "techreborn:industrial_circuit",
"entryName": "tier3_electronic_circuit",
"weight": 30
},
{
"type": "item",
"name": "techreborn:energy_flow_chip",
"entryName": "tier2_data_circuit",
"weight": 15
},
{
"type": "empty",
"weight": 20
}
]
}
]
}