some vague bullshit about hopeville

This commit is contained in:
Bob 2024-03-04 22:09:23 +01:00
parent 79b08d8cdc
commit 201ff3cbdd
3 changed files with 380 additions and 352 deletions

View File

@ -21,397 +21,400 @@ import net.minecraft.util.WeightedRandomChestContent;
public class HbmChestContents {
public static WeightedRandomChestContent[] modGeneric = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(Items.bread, 0, 1, 5, 8),
new WeightedRandomChestContent(ModItems.twinkie, 0, 1, 3, 6),
new WeightedRandomChestContent(Items.iron_ingot, 0, 2, 6, 10),
new WeightedRandomChestContent(ModItems.ingot_steel, 0, 2, 5, 7),
new WeightedRandomChestContent(ModItems.ingot_beryllium, 0, 1, 2, 4),
new WeightedRandomChestContent(ModItems.ingot_titanium, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.circuit_targeting_tier1, 0, 1, 1, 5),
new WeightedRandomChestContent(ModItems.gun_revolver, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.ammo_357, Ammo357Magnum.LEAD.ordinal(), 2, 6, 4),
new WeightedRandomChestContent(ModItems.gun_kit_1, 0, 1, 3, 4),
new WeightedRandomChestContent(ModItems.gun_lever_action, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.ammo_20gauge, 0, 2, 6, 3),
new WeightedRandomChestContent(ModItems.casing_9, 0, 4, 10, 3),
new WeightedRandomChestContent(ModItems.casing_50, 0, 4, 10, 3),
new WeightedRandomChestContent(ModItems.cordite, 0, 4, 6, 5),
new WeightedRandomChestContent(ModItems.battery_generic, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.battery_advanced, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.scrap, 0, 1, 3, 10),
new WeightedRandomChestContent(ModItems.dust, 0, 2, 4, 9),
new WeightedRandomChestContent(ModItems.bottle_opener, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.bottle_nuka, 0, 1, 3, 4),
new WeightedRandomChestContent(ModItems.bottle_cherry, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.stealth_boy, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.cap_nuka, 0, 1, 15, 7),
new WeightedRandomChestContent(ModItems.canister_full, Fluids.DIESEL.getID(), 1, 2, 2),
new WeightedRandomChestContent(ModItems.canister_full, Fluids.BIOFUEL.getID(), 1, 2, 3),
new WeightedRandomChestContent(ModItems.gas_mask_m65, 60, 1, 1, 2),
new WeightedRandomChestContent(ModItems.gas_mask_filter, 0, 1, 1, 3) };
weighted(Items.bread, 0, 1, 5, 8),
weighted(ModItems.twinkie, 0, 1, 3, 6),
weighted(Items.iron_ingot, 0, 2, 6, 10),
weighted(ModItems.ingot_steel, 0, 2, 5, 7),
weighted(ModItems.ingot_beryllium, 0, 1, 2, 4),
weighted(ModItems.ingot_titanium, 0, 1, 1, 3),
weighted(ModItems.circuit_targeting_tier1, 0, 1, 1, 5),
weighted(ModItems.gun_revolver, 0, 1, 1, 3),
weighted(ModItems.ammo_357, Ammo357Magnum.LEAD.ordinal(), 2, 6, 4),
weighted(ModItems.gun_kit_1, 0, 1, 3, 4),
weighted(ModItems.gun_lever_action, 0, 1, 1, 1),
weighted(ModItems.ammo_20gauge, 0, 2, 6, 3),
weighted(ModItems.casing_9, 0, 4, 10, 3),
weighted(ModItems.casing_50, 0, 4, 10, 3),
weighted(ModItems.cordite, 0, 4, 6, 5),
weighted(ModItems.battery_generic, 0, 1, 1, 4),
weighted(ModItems.battery_advanced, 0, 1, 1, 2),
weighted(ModItems.scrap, 0, 1, 3, 10),
weighted(ModItems.dust, 0, 2, 4, 9),
weighted(ModItems.bottle_opener, 0, 1, 1, 2),
weighted(ModItems.bottle_nuka, 0, 1, 3, 4),
weighted(ModItems.bottle_cherry, 0, 1, 1, 2),
weighted(ModItems.stealth_boy, 0, 1, 1, 1),
weighted(ModItems.cap_nuka, 0, 1, 15, 7),
weighted(ModItems.canister_full, Fluids.DIESEL.getID(), 1, 2, 2),
weighted(ModItems.canister_full, Fluids.BIOFUEL.getID(), 1, 2, 3),
weighted(ModItems.gas_mask_m65, 60, 1, 1, 2),
weighted(ModItems.gas_mask_filter, 0, 1, 1, 3) };
public static WeightedRandomChestContent[] machineParts = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ModItems.plate_steel, 0, 1, 5, 5),
new WeightedRandomChestContent(ModItems.hull_big_steel, 0, 1, 2, 2),
new WeightedRandomChestContent(ModItems.hull_small_steel, 0, 1, 3, 3),
new WeightedRandomChestContent(ModItems.plate_polymer, 0, 1, 6, 5),
new WeightedRandomChestContent(ModItems.bolt, Mats.MAT_STEEL.id, 4, 16, 3),
new WeightedRandomChestContent(ModItems.bolt, Mats.MAT_TUNGSTEN.id, 4, 16, 3),
new WeightedRandomChestContent(ModItems.board_copper, 0, 1, 2, 4),
new WeightedRandomChestContent(ModItems.coil_tungsten, 0, 1, 2, 5),
new WeightedRandomChestContent(ModItems.motor, 0, 1, 2, 4),
new WeightedRandomChestContent(ModItems.tank_steel, 0, 1, 2, 3),
new WeightedRandomChestContent(ModItems.coil_copper, 0, 1, 3, 4),
new WeightedRandomChestContent(ModItems.coil_copper_torus, 0, 1, 2, 3),
new WeightedRandomChestContent(ModItems.wire_red_copper, 0, 1, 8, 5),
new WeightedRandomChestContent(ModItems.piston_selenium, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.battery_advanced_cell, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.circuit_raw, 0, 1, 3, 5),
new WeightedRandomChestContent(ModItems.circuit_aluminium, 0, 1, 2, 4),
new WeightedRandomChestContent(ModItems.circuit_copper, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.circuit_red_copper, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.blade_titanium, 0, 1, 8, 1)
weighted(ModItems.plate_steel, 0, 1, 5, 5),
weighted(ModItems.hull_big_steel, 0, 1, 2, 2),
weighted(ModItems.hull_small_steel, 0, 1, 3, 3),
weighted(ModItems.plate_polymer, 0, 1, 6, 5),
weighted(ModItems.bolt, Mats.MAT_STEEL.id, 4, 16, 3),
weighted(ModItems.bolt, Mats.MAT_TUNGSTEN.id, 4, 16, 3),
weighted(ModItems.board_copper, 0, 1, 2, 4),
weighted(ModItems.coil_tungsten, 0, 1, 2, 5),
weighted(ModItems.motor, 0, 1, 2, 4),
weighted(ModItems.tank_steel, 0, 1, 2, 3),
weighted(ModItems.coil_copper, 0, 1, 3, 4),
weighted(ModItems.coil_copper_torus, 0, 1, 2, 3),
weighted(ModItems.wire_red_copper, 0, 1, 8, 5),
weighted(ModItems.piston_selenium, 0, 1, 1, 3),
weighted(ModItems.battery_advanced_cell, 0, 1, 1, 3),
weighted(ModItems.circuit_raw, 0, 1, 3, 5),
weighted(ModItems.circuit_aluminium, 0, 1, 2, 4),
weighted(ModItems.circuit_copper, 0, 1, 1, 3),
weighted(ModItems.circuit_red_copper, 0, 1, 1, 2),
weighted(ModItems.blade_titanium, 0, 1, 8, 1)
};
public static WeightedRandomChestContent[] antenna = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ModItems.twinkie, 0, 1, 3, 4),
new WeightedRandomChestContent(ModItems.ingot_steel, 0, 1, 2, 7),
new WeightedRandomChestContent(ModItems.ingot_red_copper, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.ingot_titanium, 0, 1, 3, 5),
new WeightedRandomChestContent(ModItems.wire_red_copper, 0, 2, 3, 7),
new WeightedRandomChestContent(ModItems.circuit_targeting_tier1, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.circuit_copper, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.battery_generic, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.battery_advanced, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.powder_iodine, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.powder_bromine, 0, 1, 1, 1),
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.steel_poles), 0, 1, 4, 8),
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.steel_scaffold), 0, 1, 3, 8),
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.pole_top), 0, 1, 1, 4),
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.pole_satellite_receiver), 0, 1, 1, 7),
new WeightedRandomChestContent(ModItems.scrap, 0, 1, 3, 10),
new WeightedRandomChestContent(ModItems.dust, 0, 2, 4, 9),
new WeightedRandomChestContent(ModItems.bottle_opener, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.bottle_nuka, 0, 1, 3, 4),
new WeightedRandomChestContent(ModItems.bottle_cherry, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.stealth_boy, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.cap_nuka, 0, 1, 15, 7),
new WeightedRandomChestContent(ModItems.bomb_caller, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.gas_mask_filter, 0, 1, 1, 2) };
weighted(ModItems.twinkie, 0, 1, 3, 4),
weighted(ModItems.ingot_steel, 0, 1, 2, 7),
weighted(ModItems.ingot_red_copper, 0, 1, 1, 4),
weighted(ModItems.ingot_titanium, 0, 1, 3, 5),
weighted(ModItems.wire_red_copper, 0, 2, 3, 7),
weighted(ModItems.circuit_targeting_tier1, 0, 1, 1, 4),
weighted(ModItems.circuit_copper, 0, 1, 1, 4),
weighted(ModItems.battery_generic, 0, 1, 1, 4),
weighted(ModItems.battery_advanced, 0, 1, 1, 3),
weighted(ModItems.powder_iodine, 0, 1, 1, 1),
weighted(ModItems.powder_bromine, 0, 1, 1, 1),
weighted(Item.getItemFromBlock(ModBlocks.steel_poles), 0, 1, 4, 8),
weighted(Item.getItemFromBlock(ModBlocks.steel_scaffold), 0, 1, 3, 8),
weighted(Item.getItemFromBlock(ModBlocks.pole_top), 0, 1, 1, 4),
weighted(Item.getItemFromBlock(ModBlocks.pole_satellite_receiver), 0, 1, 1, 7),
weighted(ModItems.scrap, 0, 1, 3, 10),
weighted(ModItems.dust, 0, 2, 4, 9),
weighted(ModItems.bottle_opener, 0, 1, 1, 2),
weighted(ModItems.bottle_nuka, 0, 1, 3, 4),
weighted(ModItems.bottle_cherry, 0, 1, 1, 2),
weighted(ModItems.stealth_boy, 0, 1, 1, 1),
weighted(ModItems.cap_nuka, 0, 1, 15, 7),
weighted(ModItems.bomb_caller, 0, 1, 1, 1),
weighted(ModItems.gas_mask_filter, 0, 1, 1, 2) };
public static WeightedRandomChestContent[] expensive = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ModItems.chlorine_pinwheel, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.circuit_targeting_tier3, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.circuit_gold, 0, 1, 2, 3),
new WeightedRandomChestContent(ModItems.circuit_targeting_tier4, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.gun_kit_1, 0, 1, 3, 6),
new WeightedRandomChestContent(ModItems.gun_kit_2, 0, 1, 2, 3),
new WeightedRandomChestContent(ModItems.gun_rpg, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.ammo_rocket, 0, 1, 4, 5),
new WeightedRandomChestContent(ModItems.gun_fatman, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.ammo_nuke, AmmoFatman.SAFE.ordinal(), 1, 2, 1),
new WeightedRandomChestContent(ModItems.ammo_nuke, AmmoFatman.LOW.ordinal(), 1, 2, 1),
new WeightedRandomChestContent(ModItems.ammo_nuke, AmmoFatman.PUMPKIN.ordinal(), 1, 2, 1),
new WeightedRandomChestContent(ModItems.grenade_nuclear, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.grenade_smart, 0, 1, 3, 3),
new WeightedRandomChestContent(ModItems.grenade_mirv, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.stealth_boy, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.battery_advanced, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.battery_advanced_cell, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.battery_schrabidium, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.syringe_awesome, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.crate_caller, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.fusion_core, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.bottle_nuka, 0, 1, 3, 6),
new WeightedRandomChestContent(ModItems.bottle_quantum, 0, 1, 1, 3),
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.red_barrel), 0, 1, 1, 6),
new WeightedRandomChestContent(ModItems.canister_full, Fluids.DIESEL.getID(), 1, 2, 2),
new WeightedRandomChestContent(ModItems.canister_full, Fluids.BIOFUEL.getID(), 1, 2, 3),
new WeightedRandomChestContent(ModItems.gas_mask_m65, 60, 1, 1, 5),
new WeightedRandomChestContent(ModItems.bomb_caller, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.bomb_caller, 1, 1, 1, 1),
new WeightedRandomChestContent(ModItems.bomb_caller, 2, 1, 1, 1),
new WeightedRandomChestContent(ModItems.gas_mask_filter, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.journal_pip, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.journal_bj, 0, 1, 1, 1) };
weighted(ModItems.chlorine_pinwheel, 0, 1, 1, 1),
weighted(ModItems.circuit_targeting_tier3, 0, 1, 1, 4),
weighted(ModItems.circuit_gold, 0, 1, 2, 3),
weighted(ModItems.circuit_targeting_tier4, 0, 1, 1, 2),
weighted(ModItems.gun_kit_1, 0, 1, 3, 6),
weighted(ModItems.gun_kit_2, 0, 1, 2, 3),
weighted(ModItems.gun_rpg, 0, 1, 1, 4),
weighted(ModItems.ammo_rocket, 0, 1, 4, 5),
weighted(ModItems.gun_fatman, 0, 1, 1, 1),
weighted(ModItems.ammo_nuke, AmmoFatman.SAFE.ordinal(), 1, 2, 1),
weighted(ModItems.ammo_nuke, AmmoFatman.LOW.ordinal(), 1, 2, 1),
weighted(ModItems.ammo_nuke, AmmoFatman.PUMPKIN.ordinal(), 1, 2, 1),
weighted(ModItems.grenade_nuclear, 0, 1, 1, 2),
weighted(ModItems.grenade_smart, 0, 1, 3, 3),
weighted(ModItems.grenade_mirv, 0, 1, 1, 2),
weighted(ModItems.stealth_boy, 0, 1, 1, 2),
weighted(ModItems.battery_advanced, 0, 1, 1, 3),
weighted(ModItems.battery_advanced_cell, 0, 1, 1, 2),
weighted(ModItems.battery_schrabidium, 0, 1, 1, 1),
weighted(ModItems.syringe_awesome, 0, 1, 1, 1),
weighted(ModItems.crate_caller, 0, 1, 1, 3),
weighted(ModItems.fusion_core, 0, 1, 1, 4),
weighted(ModItems.bottle_nuka, 0, 1, 3, 6),
weighted(ModItems.bottle_quantum, 0, 1, 1, 3),
weighted(Item.getItemFromBlock(ModBlocks.red_barrel), 0, 1, 1, 6),
weighted(ModItems.canister_full, Fluids.DIESEL.getID(), 1, 2, 2),
weighted(ModItems.canister_full, Fluids.BIOFUEL.getID(), 1, 2, 3),
weighted(ModItems.gas_mask_m65, 60, 1, 1, 5),
weighted(ModItems.bomb_caller, 0, 1, 1, 2),
weighted(ModItems.bomb_caller, 1, 1, 1, 1),
weighted(ModItems.bomb_caller, 2, 1, 1, 1),
weighted(ModItems.gas_mask_filter, 0, 1, 1, 4),
weighted(ModItems.journal_pip, 0, 1, 1, 1),
weighted(ModItems.journal_bj, 0, 1, 1, 1) };
public static WeightedRandomChestContent[] nukeTrash = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ModItems.nugget_u238, 0, 3, 12, 5),
new WeightedRandomChestContent(ModItems.nugget_pu240, 0, 3, 8, 5),
new WeightedRandomChestContent(ModItems.nugget_neptunium, 0, 1, 4, 3),
new WeightedRandomChestContent(ModItems.rod, BreedingRodType.U238.ordinal(), 1, 1, 3),
new WeightedRandomChestContent(ModItems.rod_dual, BreedingRodType.U238.ordinal(), 1, 1, 3),
new WeightedRandomChestContent(ModItems.rod_quad, BreedingRodType.U238.ordinal(), 1, 1, 3),
new WeightedRandomChestContent(ModItems.bottle_quantum, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.gas_mask_m65, 60, 1, 1, 5),
new WeightedRandomChestContent(ModItems.hazmat_kit, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.gas_mask_filter, 0, 1, 1, 5),
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.yellow_barrel), 0, 1, 1, 2) };
weighted(ModItems.nugget_u238, 0, 3, 12, 5),
weighted(ModItems.nugget_pu240, 0, 3, 8, 5),
weighted(ModItems.nugget_neptunium, 0, 1, 4, 3),
weighted(ModItems.rod, BreedingRodType.U238.ordinal(), 1, 1, 3),
weighted(ModItems.rod_dual, BreedingRodType.U238.ordinal(), 1, 1, 3),
weighted(ModItems.rod_quad, BreedingRodType.U238.ordinal(), 1, 1, 3),
weighted(ModItems.bottle_quantum, 0, 1, 1, 1),
weighted(ModItems.gas_mask_m65, 60, 1, 1, 5),
weighted(ModItems.hazmat_kit, 0, 1, 1, 1),
weighted(ModItems.gas_mask_filter, 0, 1, 1, 5),
weighted(Item.getItemFromBlock(ModBlocks.yellow_barrel), 0, 1, 1, 2) };
public static WeightedRandomChestContent[] nuclearFuel = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ModItems.billet_uranium, 0, 1, 4, 4),
new WeightedRandomChestContent(ModItems.billet_th232, 0, 1, 3, 3),
new WeightedRandomChestContent(ModItems.billet_uranium_fuel, 0, 1, 3, 5),
new WeightedRandomChestContent(ModItems.billet_mox_fuel, 0, 1, 3, 5),
new WeightedRandomChestContent(ModItems.billet_thorium_fuel, 0, 1, 3, 3),
new WeightedRandomChestContent(ModItems.billet_ra226be, 0, 1, 2, 2),
new WeightedRandomChestContent(ModItems.billet_beryllium, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.nugget_u233, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.nugget_uranium_fuel, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.rod_zirnox_empty, 0, 1, 3, 3),
new WeightedRandomChestContent(ModItems.ingot_graphite, 0, 1, 4, 3),
new WeightedRandomChestContent(ModItems.pile_rod_uranium, 0, 2, 5, 3),
new WeightedRandomChestContent(ModItems.pile_rod_source, 0, 1, 2, 2),
new WeightedRandomChestContent(ModItems.reacher, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.screwdriver, 0, 1, 1, 2),
weighted(ModItems.billet_uranium, 0, 1, 4, 4),
weighted(ModItems.billet_th232, 0, 1, 3, 3),
weighted(ModItems.billet_uranium_fuel, 0, 1, 3, 5),
weighted(ModItems.billet_mox_fuel, 0, 1, 3, 5),
weighted(ModItems.billet_thorium_fuel, 0, 1, 3, 3),
weighted(ModItems.billet_ra226be, 0, 1, 2, 2),
weighted(ModItems.billet_beryllium, 0, 1, 1, 1),
weighted(ModItems.nugget_u233, 0, 1, 1, 1),
weighted(ModItems.nugget_uranium_fuel, 0, 1, 1, 1),
weighted(ModItems.rod_zirnox_empty, 0, 1, 3, 3),
weighted(ModItems.ingot_graphite, 0, 1, 4, 3),
weighted(ModItems.pile_rod_uranium, 0, 2, 5, 3),
weighted(ModItems.pile_rod_source, 0, 1, 2, 2),
weighted(ModItems.reacher, 0, 1, 1, 3),
weighted(ModItems.screwdriver, 0, 1, 1, 2),
};
public static WeightedRandomChestContent[] nuclear = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ModItems.nugget_u235, 0, 3, 12, 5),
new WeightedRandomChestContent(ModItems.nugget_pu238, 0, 3, 12, 5),
new WeightedRandomChestContent(ModItems.nugget_ra226, 0, 3, 6, 5),
new WeightedRandomChestContent(ModItems.rod, BreedingRodType.U235.ordinal(), 1, 1, 3),
new WeightedRandomChestContent(ModItems.rod_dual, BreedingRodType.U235.ordinal(), 1, 1, 3),
new WeightedRandomChestContent(ModItems.rod_quad, BreedingRodType.U235.ordinal(), 1, 1, 3),
new WeightedRandomChestContent(ModItems.rod_zirnox, EnumZirnoxType.URANIUM_FUEL.ordinal(), 1, 1, 4),
new WeightedRandomChestContent(ModItems.rod_zirnox, EnumZirnoxType.MOX_FUEL.ordinal(), 1, 1, 4),
new WeightedRandomChestContent(ModItems.rod_zirnox, EnumZirnoxType.LITHIUM.ordinal(), 1, 1, 3),
new WeightedRandomChestContent(ModItems.rod_zirnox, EnumZirnoxType.THORIUM_FUEL.ordinal(), 1, 1, 3),
new WeightedRandomChestContent(ModItems.rod_dual, BreedingRodType.THF.ordinal(), 1, 1, 3),
new WeightedRandomChestContent(ModItems.rod_zirnox_tritium, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.rod_zirnox, EnumZirnoxType.U233_FUEL.ordinal(), 1, 1, 1),
new WeightedRandomChestContent(ModItems.rod_zirnox, EnumZirnoxType.U235_FUEL.ordinal(), 1, 1, 1),
new WeightedRandomChestContent(ModItems.pellet_rtg, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.powder_thorium, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.powder_neptunium, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.powder_strontium, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.powder_cobalt, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.bottle_quantum, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.gas_mask_m65, 60, 1, 1, 5),
new WeightedRandomChestContent(ModItems.hazmat_kit, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.gas_mask_filter, 0, 1, 1, 5),
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.yellow_barrel), 0, 1, 3, 3) };
weighted(ModItems.nugget_u235, 0, 3, 12, 5),
weighted(ModItems.nugget_pu238, 0, 3, 12, 5),
weighted(ModItems.nugget_ra226, 0, 3, 6, 5),
weighted(ModItems.rod, BreedingRodType.U235.ordinal(), 1, 1, 3),
weighted(ModItems.rod_dual, BreedingRodType.U235.ordinal(), 1, 1, 3),
weighted(ModItems.rod_quad, BreedingRodType.U235.ordinal(), 1, 1, 3),
weighted(ModItems.rod_zirnox, EnumZirnoxType.URANIUM_FUEL.ordinal(), 1, 1, 4),
weighted(ModItems.rod_zirnox, EnumZirnoxType.MOX_FUEL.ordinal(), 1, 1, 4),
weighted(ModItems.rod_zirnox, EnumZirnoxType.LITHIUM.ordinal(), 1, 1, 3),
weighted(ModItems.rod_zirnox, EnumZirnoxType.THORIUM_FUEL.ordinal(), 1, 1, 3),
weighted(ModItems.rod_dual, BreedingRodType.THF.ordinal(), 1, 1, 3),
weighted(ModItems.rod_zirnox_tritium, 0, 1, 1, 1),
weighted(ModItems.rod_zirnox, EnumZirnoxType.U233_FUEL.ordinal(), 1, 1, 1),
weighted(ModItems.rod_zirnox, EnumZirnoxType.U235_FUEL.ordinal(), 1, 1, 1),
weighted(ModItems.pellet_rtg, 0, 1, 1, 3),
weighted(ModItems.powder_thorium, 0, 1, 1, 1),
weighted(ModItems.powder_neptunium, 0, 1, 1, 1),
weighted(ModItems.powder_strontium, 0, 1, 1, 1),
weighted(ModItems.powder_cobalt, 0, 1, 1, 1),
weighted(ModItems.bottle_quantum, 0, 1, 1, 1),
weighted(ModItems.gas_mask_m65, 60, 1, 1, 5),
weighted(ModItems.hazmat_kit, 0, 1, 1, 2),
weighted(ModItems.gas_mask_filter, 0, 1, 1, 5),
weighted(Item.getItemFromBlock(ModBlocks.yellow_barrel), 0, 1, 3, 3) };
public static WeightedRandomChestContent[] vertibird = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ModItems.t45_helmet, 0, 1, 1, 15),
new WeightedRandomChestContent(ModItems.t45_plate, 0, 1, 1, 15),
new WeightedRandomChestContent(ModItems.t45_legs, 0, 1, 1, 15),
new WeightedRandomChestContent(ModItems.t45_boots, 0, 1, 1, 15),
new WeightedRandomChestContent(ModItems.t45_kit, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.fusion_core, 0, 1, 1, 10),
new WeightedRandomChestContent(ModItems.gun_revolver, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.ammo_357, Ammo357Magnum.LEAD.ordinal(), 1, 24, 4),
new WeightedRandomChestContent(ModItems.gun_kit_1, 0, 2, 3, 4),
new WeightedRandomChestContent(ModItems.gun_rpg, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.ammo_rocket, 0, 1, 6, 3),
new WeightedRandomChestContent(ModItems.rod, BreedingRodType.U235.ordinal(), 1, 1, 2),
new WeightedRandomChestContent(ModItems.billet_uranium_fuel, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.ingot_uranium_fuel, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.ammo_nuke, AmmoFatman.SAFE.ordinal(), 1, 2, 1),
new WeightedRandomChestContent(ModItems.gun_fatman, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.bottle_nuka, 0, 1, 3, 6),
new WeightedRandomChestContent(ModItems.bottle_quantum, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.stealth_boy, 0, 1, 1, 7),
new WeightedRandomChestContent(ModItems.crate_caller, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.gas_mask_m65, 0, 1, 1, 5),
new WeightedRandomChestContent(ModItems.gas_mask_filter, 0, 1, 1, 5),
new WeightedRandomChestContent(ModItems.grenade_nuclear, 0, 1, 2, 2),
new WeightedRandomChestContent(ModItems.bomb_caller, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.bomb_caller, 1, 1, 1, 1),
new WeightedRandomChestContent(ModItems.bomb_caller, 2, 1, 1, 2) };
weighted(ModItems.t45_helmet, 0, 1, 1, 15),
weighted(ModItems.t45_plate, 0, 1, 1, 15),
weighted(ModItems.t45_legs, 0, 1, 1, 15),
weighted(ModItems.t45_boots, 0, 1, 1, 15),
weighted(ModItems.t45_kit, 0, 1, 1, 3),
weighted(ModItems.fusion_core, 0, 1, 1, 10),
weighted(ModItems.gun_revolver, 0, 1, 1, 4),
weighted(ModItems.ammo_357, Ammo357Magnum.LEAD.ordinal(), 1, 24, 4),
weighted(ModItems.gun_kit_1, 0, 2, 3, 4),
weighted(ModItems.gun_rpg, 0, 1, 1, 3),
weighted(ModItems.ammo_rocket, 0, 1, 6, 3),
weighted(ModItems.rod, BreedingRodType.U235.ordinal(), 1, 1, 2),
weighted(ModItems.billet_uranium_fuel, 0, 1, 1, 2),
weighted(ModItems.ingot_uranium_fuel, 0, 1, 1, 2),
weighted(ModItems.ammo_nuke, AmmoFatman.SAFE.ordinal(), 1, 2, 1),
weighted(ModItems.gun_fatman, 0, 1, 1, 1),
weighted(ModItems.bottle_nuka, 0, 1, 3, 6),
weighted(ModItems.bottle_quantum, 0, 1, 1, 3),
weighted(ModItems.stealth_boy, 0, 1, 1, 7),
weighted(ModItems.crate_caller, 0, 1, 1, 3),
weighted(ModItems.gas_mask_m65, 0, 1, 1, 5),
weighted(ModItems.gas_mask_filter, 0, 1, 1, 5),
weighted(ModItems.grenade_nuclear, 0, 1, 2, 2),
weighted(ModItems.bomb_caller, 0, 1, 1, 1),
weighted(ModItems.bomb_caller, 1, 1, 1, 1),
weighted(ModItems.bomb_caller, 2, 1, 1, 2) };
public static WeightedRandomChestContent[] missile = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ModItems.missile_generic, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.missile_incendiary, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.gas_mask_m65, 0, 1, 1, 5),
new WeightedRandomChestContent(ModItems.battery_advanced, 0, 1, 1, 5),
new WeightedRandomChestContent(ModItems.designator, 0, 1, 1, 5),
new WeightedRandomChestContent(ModItems.crate_caller, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.thruster_small, 0, 1, 1, 5),
new WeightedRandomChestContent(ModItems.thruster_medium, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.fuel_tank_small, 0, 1, 1, 5),
new WeightedRandomChestContent(ModItems.fuel_tank_medium, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.bomb_caller, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.bomb_caller, 3, 1, 1, 1),
new WeightedRandomChestContent(ModItems.bottle_nuka, 0, 1, 3, 10) };
weighted(ModItems.missile_generic, 0, 1, 1, 4),
weighted(ModItems.missile_incendiary, 0, 1, 1, 4),
weighted(ModItems.gas_mask_m65, 0, 1, 1, 5),
weighted(ModItems.battery_advanced, 0, 1, 1, 5),
weighted(ModItems.designator, 0, 1, 1, 5),
weighted(ModItems.crate_caller, 0, 1, 1, 1),
weighted(ModItems.thruster_small, 0, 1, 1, 5),
weighted(ModItems.thruster_medium, 0, 1, 1, 4),
weighted(ModItems.fuel_tank_small, 0, 1, 1, 5),
weighted(ModItems.fuel_tank_medium, 0, 1, 1, 4),
weighted(ModItems.bomb_caller, 0, 1, 1, 1),
weighted(ModItems.bomb_caller, 3, 1, 1, 1),
weighted(ModItems.bottle_nuka, 0, 1, 3, 10) };
public static WeightedRandomChestContent[] spaceship = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ModItems.battery_advanced, 0, 1, 1, 5),
new WeightedRandomChestContent(ModItems.ingot_advanced_alloy, 0, 2, 16, 5),
new WeightedRandomChestContent(ModItems.wire_advanced_alloy, 0, 8, 32, 5),
new WeightedRandomChestContent(ModItems.coil_advanced_alloy, 0, 2, 16, 5),
new WeightedRandomChestContent(ModItems.cell_deuterium, 0, 1, 8, 5),
new WeightedRandomChestContent(ModItems.cell_tritium, 0, 1, 8, 5),
new WeightedRandomChestContent(ModItems.cell_antimatter, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.powder_neodymium, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.powder_niobium, 0, 1, 1, 1),
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.fusion_conductor), 0, 2, 4, 5),
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.fusion_heater), 0, 1, 3, 5),
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.pwr_fuel), 0, 1, 2, 5),
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.block_tungsten), 0, 3, 8, 5),
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.red_wire_coated), 0, 4, 8, 5),
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.red_cable), 0, 8, 16, 5) };
weighted(ModItems.battery_advanced, 0, 1, 1, 5),
weighted(ModItems.ingot_advanced_alloy, 0, 2, 16, 5),
weighted(ModItems.wire_advanced_alloy, 0, 8, 32, 5),
weighted(ModItems.coil_advanced_alloy, 0, 2, 16, 5),
weighted(ModItems.cell_deuterium, 0, 1, 8, 5),
weighted(ModItems.cell_tritium, 0, 1, 8, 5),
weighted(ModItems.cell_antimatter, 0, 1, 1, 1),
weighted(ModItems.powder_neodymium, 0, 1, 1, 1),
weighted(ModItems.powder_niobium, 0, 1, 1, 1),
weighted(Item.getItemFromBlock(ModBlocks.fusion_conductor), 0, 2, 4, 5),
weighted(Item.getItemFromBlock(ModBlocks.fusion_heater), 0, 1, 3, 5),
weighted(Item.getItemFromBlock(ModBlocks.pwr_fuel), 0, 1, 2, 5),
weighted(Item.getItemFromBlock(ModBlocks.block_tungsten), 0, 3, 8, 5),
weighted(Item.getItemFromBlock(ModBlocks.red_wire_coated), 0, 4, 8, 5),
weighted(Item.getItemFromBlock(ModBlocks.red_cable), 0, 8, 16, 5) };
public static WeightedRandomChestContent[] powder = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ModItems.powder_neptunium, 0, 1, 32, 1),
new WeightedRandomChestContent(ModItems.powder_iodine, 0, 1, 32, 1),
new WeightedRandomChestContent(ModItems.powder_thorium, 0, 1, 32, 1),
new WeightedRandomChestContent(ModItems.powder_astatine, 0, 1, 32, 1),
new WeightedRandomChestContent(ModItems.powder_neodymium, 0, 1, 32, 1),
new WeightedRandomChestContent(ModItems.powder_caesium, 0, 1, 32, 1),
new WeightedRandomChestContent(ModItems.powder_strontium, 0, 1, 32, 1),
new WeightedRandomChestContent(ModItems.powder_cobalt, 0, 1, 32, 1),
new WeightedRandomChestContent(ModItems.powder_bromine, 0, 1, 32, 1),
new WeightedRandomChestContent(ModItems.powder_niobium, 0, 1, 32, 1),
new WeightedRandomChestContent(ModItems.powder_tennessine, 0, 1, 32, 1),
new WeightedRandomChestContent(ModItems.powder_cerium, 0, 1, 32, 1) };
weighted(ModItems.powder_neptunium, 0, 1, 32, 1),
weighted(ModItems.powder_iodine, 0, 1, 32, 1),
weighted(ModItems.powder_thorium, 0, 1, 32, 1),
weighted(ModItems.powder_astatine, 0, 1, 32, 1),
weighted(ModItems.powder_neodymium, 0, 1, 32, 1),
weighted(ModItems.powder_caesium, 0, 1, 32, 1),
weighted(ModItems.powder_strontium, 0, 1, 32, 1),
weighted(ModItems.powder_cobalt, 0, 1, 32, 1),
weighted(ModItems.powder_bromine, 0, 1, 32, 1),
weighted(ModItems.powder_niobium, 0, 1, 32, 1),
weighted(ModItems.powder_tennessine, 0, 1, 32, 1),
weighted(ModItems.powder_cerium, 0, 1, 32, 1) };
public static WeightedRandomChestContent[] vault1 = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(Items.gold_ingot, 0, 3, 14, 1),
new WeightedRandomChestContent(ModItems.gun_uac_pistol, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.pin, 0, 8, 8, 1),
new WeightedRandomChestContent(ModItems.gun_calamity, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.bottle_quantum, 0, 1, 3, 1),
new WeightedRandomChestContent(ModItems.ingot_advanced_alloy, 0, 4, 12, 1),
new WeightedRandomChestContent(ModItems.ammo_50bmg, 0, 24, 48, 1),
new WeightedRandomChestContent(ModItems.ammo_45, 0, 48, 64, 2),
new WeightedRandomChestContent(ModItems.circuit_red_copper, 0, 6, 12, 1),
new WeightedRandomChestContent(ModItems.gas_mask_m65, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.grenade_if_he, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.grenade_if_incendiary, 0, 1, 1, 1),
new WeightedRandomChestContent(Items.diamond, 0, 1, 2, 1) };
weighted(Items.gold_ingot, 0, 3, 14, 1),
weighted(ModItems.gun_uac_pistol, 0, 1, 1, 2),
weighted(ModItems.pin, 0, 8, 8, 1),
weighted(ModItems.gun_calamity, 0, 1, 1, 1),
weighted(ModItems.bottle_quantum, 0, 1, 3, 1),
weighted(ModItems.ingot_advanced_alloy, 0, 4, 12, 1),
weighted(ModItems.ammo_50bmg, 0, 24, 48, 1),
weighted(ModItems.ammo_45, 0, 48, 64, 2),
weighted(ModItems.circuit_red_copper, 0, 6, 12, 1),
weighted(ModItems.gas_mask_m65, 0, 1, 1, 1),
weighted(ModItems.grenade_if_he, 0, 1, 1, 1),
weighted(ModItems.grenade_if_incendiary, 0, 1, 1, 1),
weighted(Items.diamond, 0, 1, 2, 1) };
public static WeightedRandomChestContent[] vault2 = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ModItems.ingot_desh, 0, 2, 6, 1),
new WeightedRandomChestContent(ModItems.battery_advanced_cell_4, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.powder_desh_mix, 0, 1, 5, 1),
new WeightedRandomChestContent(Items.diamond, 0, 3, 6, 1),
new WeightedRandomChestContent(ModItems.ammo_nuke, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.ammo_container, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.grenade_nuclear, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.grenade_smart, 0, 1, 6, 1),
new WeightedRandomChestContent(ModItems.powder_yellowcake, 0, 16, 24, 1),
new WeightedRandomChestContent(ModItems.gun_uzi, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.gun_uzi_silencer, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.clip_uzi, 0, 1, 3, 1),
new WeightedRandomChestContent(ModItems.circuit_red_copper, 0, 12, 16, 1),
new WeightedRandomChestContent(ModItems.circuit_gold, 0, 2, 6, 1) };
weighted(ModItems.ingot_desh, 0, 2, 6, 1),
weighted(ModItems.battery_advanced_cell_4, 0, 1, 1, 1),
weighted(ModItems.powder_desh_mix, 0, 1, 5, 1),
weighted(Items.diamond, 0, 3, 6, 1),
weighted(ModItems.ammo_nuke, 0, 1, 1, 1),
weighted(ModItems.ammo_container, 0, 1, 1, 1),
weighted(ModItems.grenade_nuclear, 0, 1, 1, 1),
weighted(ModItems.grenade_smart, 0, 1, 6, 1),
weighted(ModItems.powder_yellowcake, 0, 16, 24, 1),
weighted(ModItems.gun_uzi, 0, 1, 1, 1),
weighted(ModItems.gun_uzi_silencer, 0, 1, 1, 1),
weighted(ModItems.clip_uzi, 0, 1, 3, 1),
weighted(ModItems.circuit_red_copper, 0, 12, 16, 1),
weighted(ModItems.circuit_gold, 0, 2, 6, 1) };
public static WeightedRandomChestContent[] vault3 = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ModItems.ingot_desh, 0, 6, 16, 1),
new WeightedRandomChestContent(ModItems.battery_lithium, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.powder_power, 0, 1, 5, 1),
new WeightedRandomChestContent(ModItems.sat_chip, 0, 1, 1, 1),
new WeightedRandomChestContent(Items.diamond, 0, 5, 9, 1),
new WeightedRandomChestContent(ModItems.warhead_nuclear, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.ammo_nuke, 0, 1, 3, 1),
new WeightedRandomChestContent(ModItems.ammo_container, 0, 1, 4, 1),
new WeightedRandomChestContent(ModItems.grenade_nuclear, 0, 1, 2, 1),
new WeightedRandomChestContent(ModItems.grenade_mirv, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.powder_yellowcake, 0, 26, 42, 1),
new WeightedRandomChestContent(ModItems.ingot_u235, 0, 3, 6, 1),
new WeightedRandomChestContent(ModItems.gun_fatman, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.gun_revolver_pip, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.clip_revolver_pip, 0, 2, 4, 1),
new WeightedRandomChestContent(ModItems.circuit_red_copper, 0, 18, 32, 1),
new WeightedRandomChestContent(ModItems.circuit_gold, 0, 6, 12, 1) };
weighted(ModItems.ingot_desh, 0, 6, 16, 1),
weighted(ModItems.battery_lithium, 0, 1, 1, 1),
weighted(ModItems.powder_power, 0, 1, 5, 1),
weighted(ModItems.sat_chip, 0, 1, 1, 1),
weighted(Items.diamond, 0, 5, 9, 1),
weighted(ModItems.warhead_nuclear, 0, 1, 1, 1),
weighted(ModItems.ammo_nuke, 0, 1, 3, 1),
weighted(ModItems.ammo_container, 0, 1, 4, 1),
weighted(ModItems.grenade_nuclear, 0, 1, 2, 1),
weighted(ModItems.grenade_mirv, 0, 1, 1, 1),
weighted(ModItems.powder_yellowcake, 0, 26, 42, 1),
weighted(ModItems.ingot_u235, 0, 3, 6, 1),
weighted(ModItems.gun_fatman, 0, 1, 1, 1),
weighted(ModItems.gun_revolver_pip, 0, 1, 1, 1),
weighted(ModItems.clip_revolver_pip, 0, 2, 4, 1),
weighted(ModItems.circuit_red_copper, 0, 18, 32, 1),
weighted(ModItems.circuit_gold, 0, 6, 12, 1) };
public static WeightedRandomChestContent[] vault4 = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ModItems.ammo_container, 0, 3, 6, 1),
new WeightedRandomChestContent(ModItems.clip_fatman, 0, 2, 3, 1),
new WeightedRandomChestContent(ModItems.ammo_nuke, AmmoFatman.MIRV.ordinal(), 2, 3, 1),
new WeightedRandomChestContent(ModItems.gun_mirv, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.gun_fatman, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.gun_proto, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.gun_b92, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.ingot_combine_steel, 0, 16, 28, 1),
new WeightedRandomChestContent(ModItems.man_core, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.boy_kit, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.nuke_starter_kit, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.weaponized_starblaster_cell, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.warhead_mirv, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.battery_schrabidium_cell, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.powder_nitan_mix, 0, 16, 32, 1) };
weighted(ModItems.ammo_container, 0, 3, 6, 1),
weighted(ModItems.clip_fatman, 0, 2, 3, 1),
weighted(ModItems.ammo_nuke, AmmoFatman.MIRV.ordinal(), 2, 3, 1),
weighted(ModItems.gun_mirv, 0, 1, 1, 1),
weighted(ModItems.gun_fatman, 0, 1, 1, 1),
weighted(ModItems.gun_proto, 0, 1, 1, 1),
weighted(ModItems.gun_b92, 0, 1, 1, 1),
weighted(ModItems.ingot_combine_steel, 0, 16, 28, 1),
weighted(ModItems.man_core, 0, 1, 1, 1),
weighted(ModItems.boy_kit, 0, 1, 1, 1),
weighted(ModItems.nuke_starter_kit, 0, 1, 1, 1),
weighted(ModItems.weaponized_starblaster_cell, 0, 1, 1, 1),
weighted(ModItems.warhead_mirv, 0, 1, 1, 1),
weighted(ModItems.battery_schrabidium_cell, 0, 1, 1, 1),
weighted(ModItems.powder_nitan_mix, 0, 16, 32, 1) };
public static WeightedRandomChestContent[] officeTrash = new WeightedRandomChestContent[] {
//Meta, Min amount, Max amount, Weight
new WeightedRandomChestContent(Items.paper, 0, 1, 12, 10),
new WeightedRandomChestContent(Items.book, 0, 1, 3, 4),
new WeightedRandomChestContent(ModItems.twinkie, 0, 1, 2, 6),
new WeightedRandomChestContent(ModItems.coffee, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.flame_politics, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.ring_pull, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.can_empty, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.can_creature, 0, 1, 2, 2),
new WeightedRandomChestContent(ModItems.can_smart, 0, 1, 3, 2),
new WeightedRandomChestContent(ModItems.can_mrsugar, 0, 1, 2, 2),
new WeightedRandomChestContent(ModItems.cap_nuka, 0, 1, 16, 2),
new WeightedRandomChestContent(ModItems.book_guide, 3, 1, 1, 1),
new WeightedRandomChestContent(Item.getItemFromBlock(ModBlocks.deco_computer), 0, 1, 1, 1)};
weighted(Items.paper, 0, 1, 12, 10),
weighted(Items.book, 0, 1, 3, 4),
weighted(ModItems.twinkie, 0, 1, 2, 6),
weighted(ModItems.coffee, 0, 1, 1, 4),
weighted(ModItems.flame_politics, 0, 1, 1, 2),
weighted(ModItems.ring_pull, 0, 1, 1, 4),
weighted(ModItems.can_empty, 0, 1, 1, 2),
weighted(ModItems.can_creature, 0, 1, 2, 2),
weighted(ModItems.can_smart, 0, 1, 3, 2),
weighted(ModItems.can_mrsugar, 0, 1, 2, 2),
weighted(ModItems.cap_nuka, 0, 1, 16, 2),
weighted(ModItems.book_guide, 3, 1, 1, 1),
weighted(Item.getItemFromBlock(ModBlocks.deco_computer), 0, 1, 1, 1)};
public static WeightedRandomChestContent[] filingCabinet = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(Items.paper, 0, 1, 12, 240),
new WeightedRandomChestContent(Items.book, 0, 1, 3, 90),
new WeightedRandomChestContent(Items.map, 0, 1, 1, 50),
new WeightedRandomChestContent(Items.writable_book, 0, 1, 1, 30),
new WeightedRandomChestContent(ModItems.cigarette, 0, 1, 16, 20),
new WeightedRandomChestContent(ModItems.toothpicks, 0, 1, 16, 10),
new WeightedRandomChestContent(ModItems.dust, 0, 1, 1, 40),
new WeightedRandomChestContent(ModItems.dust_tiny, 0, 1, 3, 75),
new WeightedRandomChestContent(ModItems.ink, 0, 1, 1, 1), //make that mf rare; 1:555 weight
weighted(Items.paper, 0, 1, 12, 240),
weighted(Items.book, 0, 1, 3, 90),
weighted(Items.map, 0, 1, 1, 50),
weighted(Items.writable_book, 0, 1, 1, 30),
weighted(ModItems.cigarette, 0, 1, 16, 20),
weighted(ModItems.toothpicks, 0, 1, 16, 10),
weighted(ModItems.dust, 0, 1, 1, 40),
weighted(ModItems.dust_tiny, 0, 1, 3, 75),
weighted(ModItems.ink, 0, 1, 1, 1), //make that mf rare; 1:555 weight
};
public static WeightedRandomChestContent[] solidFuel = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ModItems.solid_fuel, 0, 1, 5, 1),
new WeightedRandomChestContent(ModItems.solid_fuel_presto, 0, 1, 2, 2),
new WeightedRandomChestContent(ModItems.ball_dynamite, 0, 1, 4, 2),
new WeightedRandomChestContent(Items.redstone, 0, 1, 3, 1),
new WeightedRandomChestContent(ModItems.niter, 0, 1, 3, 1)
weighted(ModItems.solid_fuel, 0, 1, 5, 1),
weighted(ModItems.solid_fuel_presto, 0, 1, 2, 2),
weighted(ModItems.ball_dynamite, 0, 1, 4, 2),
weighted(Items.redstone, 0, 1, 3, 1),
weighted(ModItems.niter, 0, 1, 3, 1)
};
public static WeightedRandomChestContent[] labVault = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ItemBlowtorch.getEmptyTool(ModItems.blowtorch), 1, 1, 4),
new WeightedRandomChestContent(ModItems.chemistry_set, 0, 1, 1, 15),
new WeightedRandomChestContent(ModItems.screwdriver, 0, 1, 1, 10),
new WeightedRandomChestContent(ModItems.nugget_mercury, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.morning_glory, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.filter_coal, 0, 1, 1, 5),
new WeightedRandomChestContent(ModItems.dust, 0, 1, 3, 25),
new WeightedRandomChestContent(Items.paper, 0, 1, 2, 15),
new WeightedRandomChestContent(ModItems.cell_empty, 0, 1, 1, 5),
new WeightedRandomChestContent(Items.glass_bottle, 0, 1, 1, 5),
new WeightedRandomChestContent(ModItems.powder_iodine, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.powder_bromine, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.powder_cobalt, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.powder_neodymium, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.powder_boron, 0, 1, 1, 1),
weighted(ItemBlowtorch.getEmptyTool(ModItems.blowtorch), 1, 1, 4),
weighted(ModItems.chemistry_set, 0, 1, 1, 15),
weighted(ModItems.screwdriver, 0, 1, 1, 10),
weighted(ModItems.nugget_mercury, 0, 1, 1, 3),
weighted(ModItems.morning_glory, 0, 1, 1, 1),
weighted(ModItems.filter_coal, 0, 1, 1, 5),
weighted(ModItems.dust, 0, 1, 3, 25),
weighted(Items.paper, 0, 1, 2, 15),
weighted(ModItems.cell_empty, 0, 1, 1, 5),
weighted(Items.glass_bottle, 0, 1, 1, 5),
weighted(ModItems.powder_iodine, 0, 1, 1, 1),
weighted(ModItems.powder_bromine, 0, 1, 1, 1),
weighted(ModItems.powder_cobalt, 0, 1, 1, 1),
weighted(ModItems.powder_neodymium, 0, 1, 1, 1),
weighted(ModItems.powder_boron, 0, 1, 1, 1),
};
public static WeightedRandomChestContent[] lockersVault = new WeightedRandomChestContent[] {
new WeightedRandomChestContent(ModItems.robes_helmet, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.robes_plate, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.robes_legs, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.robes_boots, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.jackt, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.jackt2, 0, 1, 1, 1),
new WeightedRandomChestContent(ModItems.gas_mask_m65, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.gas_mask_mono, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.goggles, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.gas_mask_filter, 0, 1, 1, 4),
new WeightedRandomChestContent(ModItems.flame_opinion, 0, 1, 3, 5),
new WeightedRandomChestContent(ModItems.flame_conspiracy, 0, 1, 3, 5),
new WeightedRandomChestContent(ModItems.flame_politics, 0, 1, 3, 5),
new WeightedRandomChestContent(ModItems.cigarette, 0, 1, 8, 5),
new WeightedRandomChestContent(ModItems.canteen_13, 0, 1, 1, 2),
new WeightedRandomChestContent(ModItems.armor_polish, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.gun_kit_1, 0, 1, 1, 3),
new WeightedRandomChestContent(ModItems.rag, 0, 1, 3, 5),
new WeightedRandomChestContent(Items.paper, 0, 1, 6, 7),
new WeightedRandomChestContent(Items.clock, 0, 1, 1, 3),
new WeightedRandomChestContent(Items.book, 0, 1, 5, 10),
new WeightedRandomChestContent(Items.experience_bottle, 0, 1, 3, 1),
weighted(ModItems.robes_helmet, 0, 1, 1, 1),
weighted(ModItems.robes_plate, 0, 1, 1, 1),
weighted(ModItems.robes_legs, 0, 1, 1, 1),
weighted(ModItems.robes_boots, 0, 1, 1, 1),
weighted(ModItems.jackt, 0, 1, 1, 1),
weighted(ModItems.jackt2, 0, 1, 1, 1),
weighted(ModItems.gas_mask_m65, 0, 1, 1, 2),
weighted(ModItems.gas_mask_mono, 0, 1, 1, 2),
weighted(ModItems.goggles, 0, 1, 1, 2),
weighted(ModItems.gas_mask_filter, 0, 1, 1, 4),
weighted(ModItems.flame_opinion, 0, 1, 3, 5),
weighted(ModItems.flame_conspiracy, 0, 1, 3, 5),
weighted(ModItems.flame_politics, 0, 1, 3, 5),
weighted(ModItems.cigarette, 0, 1, 8, 5),
weighted(ModItems.canteen_13, 0, 1, 1, 2),
weighted(ModItems.armor_polish, 0, 1, 1, 3),
weighted(ModItems.gun_kit_1, 0, 1, 1, 3),
weighted(ModItems.rag, 0, 1, 3, 5),
weighted(Items.paper, 0, 1, 6, 7),
weighted(Items.clock, 0, 1, 1, 3),
weighted(Items.book, 0, 1, 5, 10),
weighted(Items.experience_bottle, 0, 1, 3, 1),
};
public static WeightedRandomChestContent weighted(Item item, int meta, int min, int max, int weight) { return new WeightedRandomChestContent(item, meta, min, max, weight); }
public static WeightedRandomChestContent weighted(ItemStack item, int min, int max, int weight) { return new WeightedRandomChestContent(item, min, max, weight); }
/** ITEMBOOKLORE SHIT */
//one downside of all this huge flexibility, make a wrapper if it's too annoying
public static ItemStack generateOfficeBook(Random rand) { //TODO rework this lore in general

View File

@ -330,13 +330,13 @@ public class HbmWorldGen implements IWorldGenerator {
}
}
if(WorldConfig.siloStructure > 0 && rand.nextInt(WorldConfig.siloStructure) == 0) {
/*if(WorldConfig.siloStructure > 0 && rand.nextInt(WorldConfig.siloStructure) == 0) {
int x = i + rand.nextInt(16);
int z = j + rand.nextInt(16);
int y = world.getHeightValue(x, z);
new Silo().generate(world, rand, x, y, z);
}
}*/
if(WorldConfig.factoryStructure > 0 && rand.nextInt(WorldConfig.factoryStructure) == 0) {
int x = i + rand.nextInt(16);

View File

@ -2,13 +2,19 @@ package com.hbm.world.gen.component;
import java.util.Random;
import com.hbm.blocks.BlockDummyable;
import com.hbm.blocks.ModBlocks;
import com.hbm.items.ModItems;
import com.hbm.lib.HbmChestContents;
import com.hbm.tileentity.bomb.TileEntityLandmine;
import com.hbm.tileentity.bomb.TileEntityLaunchPadRusted;
import com.hbm.tileentity.network.TileEntityRadioTorchBase;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.WeightedRandomChestContent;
import net.minecraft.world.World;
import net.minecraft.world.gen.structure.StructureBoundingBox;
import net.minecraftforge.common.util.ForgeDirection;
@ -761,11 +767,11 @@ public class SiloComponent extends Component {
fillWithMetadataBlocks(world, box, 17, 2, 12, 17, 4, 12, ModBlocks.ladder_steel, decoN);
fillWithMetadataBlocks(world, box, 21, 2, 16, 21, 4, 16, ModBlocks.ladder_steel, decoS);
//Launch Pad
placeCore(world, box, ModBlocks.launch_pad, ForgeDirection.SOUTH, 19, 1, 14);
fillSpace(world, box, 19, 1, 14, new int[] {0, 0, 1, 1, 1, 1}, ModBlocks.launch_pad, ForgeDirection.SOUTH);
placeCoreLaunchpad(world, box, ModBlocks.launch_pad_rusted, ForgeDirection.SOUTH, 19, 1, 14);
fillSpace(world, box, 19, 1, 14, new int[] {0, 0, 1, 1, 1, 1}, ModBlocks.launch_pad_rusted, ForgeDirection.SOUTH);
for(int i = 0; i <= 2; i += 2)
for(int k = 0; k <= 2; k += 2)
makeExtra(world, box, ModBlocks.launch_pad, 18 + i, 1, 13 + k);
makeExtra(world, box, ModBlocks.launch_pad_rusted, 18 + i, 1, 13 + k);
placeBlockAtCurrentPosition(world, ModBlocks.radio_torch_receiver, 3, 19, 0, 14, box);
setRTTYFreq(world, box, 19, 0, 14);
@ -1199,7 +1205,7 @@ public class SiloComponent extends Component {
placeBlockAtCurrentPosition(world, ModBlocks.hev_battery, 0, 30, 2, 11, box);
//Containers
generateLockableContents(world, box, rand, ModBlocks.safe, decoE, 31, 5, 13, HbmChestContents.vault2, 4, 0.1D);
generateLockableContents(world, box, rand, ModBlocks.safe, decoE, 31, 5, 13, launchKey, 1, 0.1D);
generateInvContents(world, box, rand, ModBlocks.crate_steel, 2, 31, 5, 14, HbmChestContents.nukeTrash, 5);
generateInvContents(world, box, rand, ModBlocks.safe, decoE, 31, 5, 15, HbmChestContents.filingCabinet, 5);
@ -1209,6 +1215,8 @@ public class SiloComponent extends Component {
return true;
}
public static WeightedRandomChestContent[] launchKey = new WeightedRandomChestContent[] { new WeightedRandomChestContent(ModItems.launch_key, 0, 1, 1, 1) };
protected void setRTTYFreq(World world, StructureBoundingBox box, int featureX, int featureY, int featureZ) {
int posX = this.getXWithOffset(featureX, featureZ);
@ -1344,5 +1352,22 @@ public class SiloComponent extends Component {
}
}
}
protected void placeCoreLaunchpad(World world, StructureBoundingBox box, Block block, ForgeDirection dir, int x, int y, int z) {
int posX = getXWithOffset(x, z);
int posZ = getZWithOffset(x, z);
int posY = getYWithOffset(y);
if(!box.isVecInside(posX, posY, posZ)) return;
if(dir == null)
dir = ForgeDirection.NORTH;
dir = getDirection(dir.getOpposite());
world.setBlock(posX, posY, posZ, block, dir.ordinal() + BlockDummyable.offset, 2);
TileEntity launchpad = world.getTileEntity(posX, posY, posZ);
if(launchpad instanceof TileEntityLaunchPadRusted) {
((TileEntityLaunchPadRusted) launchpad).missileLoaded = true;
}
}
}