it all
@ -331,6 +331,7 @@ public class ModBlocks {
|
||||
public static Block sand_boron;
|
||||
public static Block sand_uranium;
|
||||
public static Block sand_polonium;
|
||||
public static Block glass_boron;
|
||||
public static Block glass_uranium;
|
||||
public static Block glass_trinitite;
|
||||
public static Block glass_polonium;
|
||||
@ -1119,12 +1120,12 @@ public class ModBlocks {
|
||||
cluster_depth_tungsten = new BlockOre(Material.rock).setBlockName("cluster_depth_tungsten").setCreativeTab(MainRegistry.blockTab).setBlockUnbreakable().setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":cluster_depth_tungsten");
|
||||
|
||||
ore_australium = new BlockGeneric(Material.rock).setBlockName("ore_australium").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_australium");
|
||||
ore_weidanium = new BlockGeneric(Material.rock).setBlockName("ore_weidanium").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_weidanium");
|
||||
ore_reiium = new BlockGeneric(Material.rock).setBlockName("ore_reiium").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_reiium");
|
||||
ore_unobtainium = new BlockGeneric(Material.rock).setBlockName("ore_unobtainium").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_unobtainium");
|
||||
ore_daffergon = new BlockGeneric(Material.rock).setBlockName("ore_daffergon").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_daffergon");
|
||||
ore_verticium = new BlockGeneric(Material.rock).setBlockName("ore_verticium").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_verticium");
|
||||
ore_rare = new BlockOre(Material.rock).setBlockName("ore_rare").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_rare");
|
||||
ore_weidanium = new BlockGeneric(Material.rock).setBlockName("ore_weidanium").setCreativeTab(null).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_weidanium");
|
||||
ore_reiium = new BlockGeneric(Material.rock).setBlockName("ore_reiium").setCreativeTab(null).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_reiium");
|
||||
ore_unobtainium = new BlockGeneric(Material.rock).setBlockName("ore_unobtainium").setCreativeTab(null).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_unobtainium");
|
||||
ore_daffergon = new BlockGeneric(Material.rock).setBlockName("ore_daffergon").setCreativeTab(null).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_daffergon");
|
||||
ore_verticium = new BlockGeneric(Material.rock).setBlockName("ore_verticium").setCreativeTab(null).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_verticium");
|
||||
ore_rare = new BlockOre(Material.rock).setBlockName("ore_rare").setCreativeTab(null).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_rare");
|
||||
ore_cinnebar = new BlockOre(Material.rock).setBlockName("ore_cinnebar").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_cinnebar");
|
||||
|
||||
ore_oil = new BlockOre(Material.rock).setBlockName("ore_oil").setCreativeTab(MainRegistry.blockTab).setHardness(5.0F).setResistance(10.0F).setBlockTextureName(RefStrings.MODID + ":ore_oil");
|
||||
@ -1332,13 +1333,14 @@ public class ModBlocks {
|
||||
|
||||
broadcaster_pc = new PinkCloudBroadcaster(Material.iron).setBlockName("broadcaster_pc").setCreativeTab(MainRegistry.machineTab).setHardness(5.0F).setResistance(15.0F).setBlockTextureName(RefStrings.MODID + ":broadcaster_pc");
|
||||
geiger = new GeigerCounter(Material.iron).setBlockName("geiger").setCreativeTab(MainRegistry.machineTab).setHardness(15.0F).setResistance(0.25F).setBlockTextureName(RefStrings.MODID + ":geiger");
|
||||
hev_battery = new HEVBattery(Material.iron).setBlockName("hev_battery").setCreativeTab(MainRegistry.machineTab).setLightLevel(5F/15F).setHardness(0.5F).setResistance(0.25F).setBlockTextureName(RefStrings.MODID + ":hev_battery");
|
||||
hev_battery = new HEVBattery(Material.iron).setBlockName("hev_battery").setCreativeTab(MainRegistry.machineTab).setLightLevel(10F/15F).setHardness(0.5F).setResistance(0.25F).setBlockTextureName(RefStrings.MODID + ":hev_battery");
|
||||
|
||||
fence_metal = new BlockMetalFence(Material.iron).setBlockName("fence_metal").setCreativeTab(MainRegistry.machineTab).setHardness(15.0F).setResistance(0.25F).setBlockTextureName(RefStrings.MODID + ":fence_metal");
|
||||
|
||||
sand_boron = new BlockFalling(Material.sand).setBlockName("sand_boron").setStepSound(Block.soundTypeSand).setCreativeTab(MainRegistry.machineTab).setHardness(0.5F).setBlockTextureName(RefStrings.MODID + ":sand_boron");
|
||||
sand_uranium = new BlockFalling(Material.sand).setBlockName("sand_uranium").setStepSound(Block.soundTypeSand).setCreativeTab(MainRegistry.machineTab).setHardness(0.5F).setBlockTextureName(RefStrings.MODID + ":sand_uranium");
|
||||
sand_polonium = new BlockFalling(Material.sand).setBlockName("sand_polonium").setStepSound(Block.soundTypeSand).setCreativeTab(MainRegistry.machineTab).setHardness(0.5F).setBlockTextureName(RefStrings.MODID + ":sand_polonium");
|
||||
glass_boron = new BlockNTMGlass(0, RefStrings.MODID + ":glass_boron", Material.glass).setBlockName("glass_boron").setStepSound(Block.soundTypeGlass).setCreativeTab(MainRegistry.machineTab).setHardness(0.3F);
|
||||
glass_uranium = new BlockNTMGlass(1, RefStrings.MODID + ":glass_uranium", Material.glass).setBlockName("glass_uranium").setLightLevel(5F/15F).setStepSound(Block.soundTypeGlass).setCreativeTab(MainRegistry.machineTab).setHardness(0.3F);
|
||||
glass_trinitite = new BlockNTMGlass(1, RefStrings.MODID + ":glass_trinitite", Material.glass).setBlockName("glass_trinitite").setLightLevel(5F/15F).setStepSound(Block.soundTypeGlass).setCreativeTab(MainRegistry.machineTab).setHardness(0.3F);
|
||||
glass_polonium = new BlockNTMGlass(1, RefStrings.MODID + ":glass_polonium", Material.glass).setBlockName("glass_polonium").setLightLevel(5F/15F).setStepSound(Block.soundTypeGlass).setCreativeTab(MainRegistry.machineTab).setHardness(0.3F);
|
||||
@ -2308,6 +2310,7 @@ public class ModBlocks {
|
||||
GameRegistry.registerBlock(sand_boron, sand_boron.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(sand_uranium, sand_uranium.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(sand_polonium, sand_polonium.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(glass_boron, glass_boron.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(glass_uranium, glass_uranium.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(glass_trinitite, glass_trinitite.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(glass_polonium, glass_polonium.getUnlocalizedName());
|
||||
|
||||
@ -48,6 +48,9 @@ public class MineralRecipes {
|
||||
|
||||
RecipesCommon.add9To1(ModItems.ingot_dineutronium, ModBlocks.block_dineutronium);
|
||||
RecipesCommon.add1To9(ModBlocks.block_dineutronium, ModItems.ingot_dineutronium);
|
||||
|
||||
RecipesCommon.add9To1(ModItems.powder_xe135_tiny, ModItems.powder_xe135);
|
||||
RecipesCommon.add1To9(ModItems.powder_xe135, ModItems.powder_xe135_tiny);
|
||||
|
||||
RecipesCommon.add9To1(ModItems.nuclear_waste_long_tiny, ModItems.nuclear_waste_long);
|
||||
RecipesCommon.add1To9(ModItems.nuclear_waste_long, ModItems.nuclear_waste_long_tiny);
|
||||
@ -90,6 +93,9 @@ public class MineralRecipes {
|
||||
RecipesCommon.addBillet(ModItems.billet_neptunium_fuel, ModItems.nugget_neptunium_fuel);
|
||||
RecipesCommon.addBillet(ModItems.billet_mox_fuel, ModItems.nugget_mox_fuel);
|
||||
RecipesCommon.addBillet(ModItems.billet_schrabidium_fuel, ModItems.nugget_schrabidium_fuel);
|
||||
RecipesCommon.addBillet(ModItems.billet_australium, ModItems.nugget_australium);
|
||||
RecipesCommon.addBillet(ModItems.billet_australium_greater, ModItems.nugget_australium_greater);
|
||||
RecipesCommon.addBillet(ModItems.billet_australium_lesser, ModItems.nugget_australium_lesser);
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.billet_thorium_fuel, 3), new Object[] { ModItems.billet_th232, ModItems.billet_th232, ModItems.billet_u233 });
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.billet_thorium_fuel, 1), new Object[] { "nuggetThorium232", "nuggetThorium232", "nuggetThorium232", "nuggetThorium232", "nuggetUranium233", "nuggetUranium233" }));
|
||||
@ -134,6 +140,8 @@ public class MineralRecipes {
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.ingot_solinium, 2), new Object[] { ModItems.billet_solinium, ModItems.billet_solinium, ModItems.billet_solinium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.ingot_schrabidium_fuel, 2), new Object[] { ModItems.billet_schrabidium_fuel, ModItems.billet_schrabidium_fuel, ModItems.billet_schrabidium_fuel });
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.billet_balefire_gold, 1), new Object[] { ModItems.billet_au198, ModItems.cell_antimatter, ModItems.pellet_charged });
|
||||
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.pellet_rtg), new Object[] { ModItems.billet_pu238, ModItems.billet_pu238, ModItems.billet_pu238, "plateIron" }));
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.pellet_rtg_weak), new Object[] { ModItems.billet_u238, ModItems.billet_u238, ModItems.billet_pu238, "plateIron" }));
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.pellet_rtg_polonium), new Object[] { ModItems.billet_polonium, ModItems.billet_polonium, ModItems.billet_polonium, "plateIron" }));
|
||||
@ -161,11 +169,6 @@ public class MineralRecipes {
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.block_magnetized_tungsten), 1), new Object[] { "###", "###", "###", '#', ModItems.ingot_magnetized_tungsten });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.block_combine_steel), 1), new Object[] { "###", "###", "###", '#', ModItems.ingot_combine_steel });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.block_australium), 1), new Object[] { "###", "###", "###", '#', ModItems.ingot_australium });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.block_weidanium), 1), new Object[] { "###", "###", "###", '#', ModItems.ingot_weidanium });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.block_reiium), 1), new Object[] { "###", "###", "###", '#', ModItems.ingot_reiium });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.block_unobtainium), 1), new Object[] { "###", "###", "###", '#', ModItems.ingot_unobtainium });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.block_daffergon), 1), new Object[] { "###", "###", "###", '#', ModItems.ingot_daffergon });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.block_verticium), 1), new Object[] { "###", "###", "###", '#', ModItems.ingot_verticium });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.block_desh), 1), new Object[] { "###", "###", "###", '#', ModItems.ingot_desh });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.block_dura_steel), 1), new Object[] { "###", "###", "###", '#', ModItems.ingot_dura_steel });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.block_meteor_cobble), 1), new Object[] { "##", "##", '#', ModItems.fragment_meteorite });
|
||||
@ -216,11 +219,6 @@ public class MineralRecipes {
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_magnetized_tungsten, 9), new Object[] { "#", '#', Item.getItemFromBlock(ModBlocks.block_magnetized_tungsten) });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_combine_steel, 9), new Object[] { "#", '#', Item.getItemFromBlock(ModBlocks.block_combine_steel) });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_australium, 9), new Object[] { "#", '#', Item.getItemFromBlock(ModBlocks.block_australium) });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_weidanium, 9), new Object[] { "#", '#', Item.getItemFromBlock(ModBlocks.block_weidanium) });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_reiium, 9), new Object[] { "#", '#', Item.getItemFromBlock(ModBlocks.block_reiium) });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_unobtainium, 9), new Object[] { "#", '#', Item.getItemFromBlock(ModBlocks.block_unobtainium) });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_daffergon, 9), new Object[] { "#", '#', Item.getItemFromBlock(ModBlocks.block_daffergon) });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_verticium, 9), new Object[] { "#", '#', Item.getItemFromBlock(ModBlocks.block_verticium) });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_desh, 9), new Object[] { "#", '#', Item.getItemFromBlock(ModBlocks.block_desh) });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_dura_steel, 9), new Object[] { "#", '#', Item.getItemFromBlock(ModBlocks.block_dura_steel) });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.powder_yellowcake, 9), new Object[] { "#", '#', Item.getItemFromBlock(ModBlocks.block_yellowcake) });
|
||||
@ -292,16 +290,6 @@ public class MineralRecipes {
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.nugget_les, 9), new Object[] { "#", '#', ModItems.ingot_les });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_australium, 1), new Object[] { "###", "###", "###", '#', ModItems.nugget_australium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.nugget_australium, 9), new Object[] { "#", '#', ModItems.ingot_australium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_weidanium, 1), new Object[] { "###", "###", "###", '#', ModItems.nugget_weidanium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.nugget_weidanium, 9), new Object[] { "#", '#', ModItems.ingot_weidanium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_reiium, 1), new Object[] { "###", "###", "###", '#', ModItems.nugget_reiium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.nugget_reiium, 9), new Object[] { "#", '#', ModItems.ingot_reiium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_unobtainium, 1), new Object[] { "###", "###", "###", '#', ModItems.nugget_unobtainium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.nugget_unobtainium, 9), new Object[] { "#", '#', ModItems.ingot_unobtainium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_daffergon, 1), new Object[] { "###", "###", "###", '#', ModItems.nugget_daffergon });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.nugget_daffergon, 9), new Object[] { "#", '#', ModItems.ingot_daffergon });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ingot_verticium, 1), new Object[] { "###", "###", "###", '#', ModItems.nugget_verticium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.nugget_verticium, 9), new Object[] { "#", '#', ModItems.ingot_verticium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.powder_steel, 1), new Object[] { "###", "###", "###", '#', ModItems.powder_steel_tiny });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.powder_steel_tiny, 9), new Object[] { "#", '#', ModItems.powder_steel });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.powder_lithium, 1), new Object[] { "###", "###", "###", '#', ModItems.powder_lithium_tiny });
|
||||
|
||||
@ -38,11 +38,6 @@ public class RodRecipes {
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_schrabidium_fuel, 1), new Object[] { ModItems.rod_empty, ModItems.nugget_schrabidium_fuel, ModItems.nugget_schrabidium_fuel, ModItems.nugget_schrabidium_fuel, ModItems.nugget_schrabidium_fuel, ModItems.nugget_schrabidium_fuel, ModItems.nugget_schrabidium_fuel });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_euphemium, 1), new Object[] { ModItems.rod_empty, ModItems.nugget_euphemium, ModItems.nugget_euphemium, ModItems.nugget_euphemium, ModItems.nugget_euphemium, ModItems.nugget_euphemium, ModItems.nugget_euphemium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_australium, 1), new Object[] { ModItems.rod_empty, ModItems.nugget_australium, ModItems.nugget_australium, ModItems.nugget_australium, ModItems.nugget_australium, ModItems.nugget_australium, ModItems.nugget_australium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_weidanium, 1), new Object[] { ModItems.rod_empty, ModItems.nugget_weidanium, ModItems.nugget_weidanium, ModItems.nugget_weidanium, ModItems.nugget_weidanium, ModItems.nugget_weidanium, ModItems.nugget_weidanium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_reiium, 1), new Object[] { ModItems.rod_empty, ModItems.nugget_reiium, ModItems.nugget_reiium, ModItems.nugget_reiium, ModItems.nugget_reiium, ModItems.nugget_reiium, ModItems.nugget_reiium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_unobtainium, 1), new Object[] { ModItems.rod_empty, ModItems.nugget_unobtainium, ModItems.nugget_unobtainium, ModItems.nugget_unobtainium, ModItems.nugget_unobtainium, ModItems.nugget_unobtainium, ModItems.nugget_unobtainium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_daffergon, 1), new Object[] { ModItems.rod_empty, ModItems.nugget_daffergon, ModItems.nugget_daffergon, ModItems.nugget_daffergon, ModItems.nugget_daffergon, ModItems.nugget_daffergon, ModItems.nugget_daffergon });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_verticium, 1), new Object[] { ModItems.rod_empty, ModItems.nugget_verticium, ModItems.nugget_verticium, ModItems.nugget_verticium, ModItems.nugget_verticium, ModItems.nugget_verticium, ModItems.nugget_verticium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rod_balefire, 1), new Object[] { ModItems.rod_empty, ModItems.egg_balefire_shard });
|
||||
|
||||
//...with billets
|
||||
@ -174,6 +169,7 @@ public class RodRecipes {
|
||||
RecipesCommon.addRBMKRod(ModItems.billet_australium_greater, ModItems.rbmk_fuel_heaus);
|
||||
RecipesCommon.addRBMKRod(ModItems.egg_balefire_shard, ModItems.rbmk_fuel_balefire);
|
||||
RecipesCommon.addRBMKRod(ModItems.billet_schrabidium_fuel, ModItems.rbmk_fuel_mes);
|
||||
RecipesCommon.addRBMKRod(ModItems.billet_balefire_gold, ModItems.rbmk_fuel_balefire_gold);
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rbmk_fuel_drx, 1), new Object[] { ModItems.rbmk_fuel_balefire, ModItems.particle_digamma });
|
||||
|
||||
//Water rods
|
||||
@ -184,11 +180,6 @@ public class RodRecipes {
|
||||
//Rod recycling
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.nugget_lead, 6), new Object[] { ModItems.rod_lead });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.nugget_australium, 6), new Object[] { ModItems.rod_australium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.nugget_weidanium, 6), new Object[] { ModItems.rod_weidanium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.nugget_reiium, 6), new Object[] { ModItems.rod_reiium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.nugget_unobtainium, 6), new Object[] { ModItems.rod_unobtainium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.nugget_daffergon, 6), new Object[] { ModItems.rod_daffergon });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.nugget_verticium, 6), new Object[] { ModItems.rod_verticium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.nugget_euphemium, 6), new Object[] { ModItems.rod_euphemium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.egg_balefire_shard, 1), new Object[] { ModItems.rod_balefire });
|
||||
|
||||
|
||||
@ -115,14 +115,14 @@ public class WeaponRecipes {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_mp, 1), new Object[] { "EEE", "SSM", "III", 'E', ModItems.ingot_euphemium, 'S', "plateSteel", 'I', "ingotSteel", 'M', ModItems.mechanism_rifle_2 }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_emp, 1), new Object[] { "CPG", "CMF", "CPI", 'C', ModItems.coil_copper, 'P', "plateLead", 'G', ModItems.circuit_gold, 'M', ModItems.magnetron, 'I', "ingotTungsten", 'F', ModItems.mechanism_special }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_emp_ammo, 8), new Object[] { "IGI", "IPI", "IPI", 'G', "plateGold", 'I', "plateIron", 'P', ModItems.powder_power }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_jack, 1), new Object[] { "WW ", "TSD", " TT", 'W', "ingotWeidanium", 'T', ModItems.toothpicks, 'S', ModItems.gun_uboinik, 'D', ModItems.ducttape }));
|
||||
//GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_jack, 1), new Object[] { "WW ", "TSD", " TT", 'W', "ingotWeidanium", 'T', ModItems.toothpicks, 'S', ModItems.gun_uboinik, 'D', ModItems.ducttape }));
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.gun_jack_ammo, 1), new Object[] { ModItems.ammo_12gauge, ModItems.ammo_12gauge, ModItems.ammo_12gauge, ModItems.ammo_12gauge });
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_euthanasia, 1), new Object[] { "TDT", "AAS", " T ", 'A', "ingotAustralium", 'T', ModItems.toothpicks, 'S', ModItems.gun_mp40, 'D', ModItems.ducttape }));
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ModItems.gun_euthanasia_ammo, 12), new Object[] { "P", "S", "N", 'P', ModItems.powder_poison, 'N', ModItems.niter, 'S', ModItems.syringe_metal_empty });
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_spark, 1), new Object[] { "TTD", "AAS", " T", 'A', "ingotDaffergon", 'T', ModItems.toothpicks, 'S', ModItems.gun_rpg, 'D', ModItems.ducttape }));
|
||||
//GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_spark, 1), new Object[] { "TTD", "AAS", " T", 'A', "ingotDaffergon", 'T', ModItems.toothpicks, 'S', ModItems.gun_rpg, 'D', ModItems.ducttape }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_spark_ammo, 4), new Object[] { "PCP", "DDD", "PCP", 'P', "plateLead", 'C', ModItems.coil_gold, 'D', ModItems.powder_power }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_skystinger, 1), new Object[] { "TTT", "AAS", " D ", 'A', "ingotUnobtainium", 'T', ModItems.toothpicks, 'S', ModItems.gun_stinger, 'D', ModItems.ducttape }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_hp, 1), new Object[] { "TDT", "ASA", " T ", 'A', "ingotReiium", 'T', ModItems.toothpicks, 'S', ModItems.gun_xvl1456, 'D', ModItems.ducttape }));
|
||||
//GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_skystinger, 1), new Object[] { "TTT", "AAS", " D ", 'A', "ingotUnobtainium", 'T', ModItems.toothpicks, 'S', ModItems.gun_stinger, 'D', ModItems.ducttape }));
|
||||
//GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_hp, 1), new Object[] { "TDT", "ASA", " T ", 'A', "ingotReiium", 'T', ModItems.toothpicks, 'S', ModItems.gun_xvl1456, 'D', ModItems.ducttape }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_hp_ammo, 8), new Object[] { " R ", "BSK", " Y ", 'S', "plateSteel", 'K', new ItemStack(Items.dye, 1, 0), 'R', new ItemStack(Items.dye, 1, 1), 'B', new ItemStack(Items.dye, 1, 4), 'Y', new ItemStack(Items.dye, 1, 11) }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_defabricator_ammo, 16), new Object[] { "PCP", "DDD", "PCP", 'P', "plateSteel", 'C', ModItems.coil_copper, 'D', "dustLithium" }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_lever_action, 1), new Object[] { "PPI", "SWD", 'P', "plateIron", 'I', ModItems.mechanism_rifle_1, 'S', Items.stick, 'D', "plankWood", 'W', ModItems.wire_aluminium }));
|
||||
@ -146,6 +146,7 @@ public class WeaponRecipes {
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.gun_lacunae, 1), new Object[] { "TIT", "ILI", "PRP", 'T', ModItems.syringe_taint, 'I', ModItems.ingot_starmetal, 'L', ModItems.gun_minigun, 'P', ModItems.pellet_rtg, 'R', ModBlocks.machine_rtg_grey });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.gun_mymy, 1), new Object[] { "PP ", " WP", 'P', ModItems.plate_polymer, 'W', ModItems.wire_aluminium });
|
||||
//GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_darter, 1), new Object[] { "SST", " P", 'S', "plateSteel", 'T', ModItems.gas_empty, 'P', ModItems.ingot_polymer }));
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.gun_fireext, 1), new Object[] { "HB", " T", 'H', ModItems.hull_small_steel, 'B', ModItems.bolt_tungsten, 'T', ModItems.tank_steel });
|
||||
|
||||
//Legacy ammo recycling
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.ammo_44, 1), new Object[] { ModItems.gun_revolver_nopip_ammo });
|
||||
@ -361,6 +362,11 @@ public class WeaponRecipes {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.ammo_fuel_gas, 1), new Object[] { "PDP", "BDB", "PDP", 'P', "plateSteel", 'B', ModItems.bolt_tungsten, 'D', ModItems.pellet_gas }));
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ammo_fuel_vaporizer, 1), new Object[] { "PSP", "SNS", "PSP", 'P', ModItems.ingot_phosphorus, 'S', ModItems.crystal_sulfur, 'N', ModItems.ammo_fuel_napalm });
|
||||
|
||||
//Fire Extingusisher Tanks
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.ammo_fireext, 1), new Object[] { " P ", "BDB", " P ", 'P', "plateSteel", 'B', ModItems.bolt_tungsten, 'D', new ItemStack(ModItems.fluid_tank_full, 1, FluidType.WATER.ordinal()) }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.ammo_fireext_foam, 1), new Object[] { " N ", "NFN", " N ", 'N', "dustSaltpeter", 'F', ModItems.ammo_fireext }));
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ammo_fireext_sand, 1), new Object[] { "NNN", "NFN", "NNN", 'N', ModBlocks.sand_boron, 'F', ModItems.ammo_fireext });
|
||||
|
||||
//Casings
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.casing_357, 1), new Object[] { " P ", " ", "P P", 'P', "plateCopper" }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.casing_44, 1), new Object[] { "P", " ", "P", 'P', "plateCopper" }));
|
||||
|
||||
@ -0,0 +1,106 @@
|
||||
package com.hbm.crafting.handlers;
|
||||
|
||||
import com.hbm.items.machine.ItemRBMKRod;
|
||||
|
||||
import net.minecraft.inventory.InventoryCrafting;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class RBMKFuelCraftingHandler implements IRecipe {
|
||||
|
||||
/**
|
||||
* The only rules for matching is that the item is fuel (meta and NBT don't matter) and that it's the only stack in the grid
|
||||
*/
|
||||
@Override
|
||||
public boolean matches(InventoryCrafting inventory, World world) {
|
||||
|
||||
if(!hasExactlyOneStack(inventory))
|
||||
return false;
|
||||
|
||||
ItemStack stack = getFirstStack(inventory);
|
||||
|
||||
return stack.getItem() instanceof ItemRBMKRod && ((ItemRBMKRod)stack.getItem()).pellet != null &&
|
||||
ItemRBMKRod.getHullHeat(stack) < 50 && ItemRBMKRod.getCoreHeat(stack) < 50;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRecipeSize() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getCraftingResult(InventoryCrafting inventory) {
|
||||
|
||||
if(!hasExactlyOneStack(inventory))
|
||||
return null;
|
||||
|
||||
ItemStack stack = getFirstStack(inventory);
|
||||
|
||||
if(stack.getItem() instanceof ItemRBMKRod) {
|
||||
|
||||
ItemRBMKRod rod = (ItemRBMKRod)stack.getItem();
|
||||
|
||||
if(rod.pellet == null)
|
||||
return null;
|
||||
|
||||
if(ItemRBMKRod.getEnrichment(stack) > 0.99D)
|
||||
return null;
|
||||
|
||||
if(ItemRBMKRod.getHullHeat(stack) < 50 && ItemRBMKRod.getCoreHeat(stack) < 50) {
|
||||
ItemStack result = new ItemStack(rod.pellet, 8);
|
||||
int enrichment = 4 - MathHelper.clamp_int((int)Math.ceil(ItemRBMKRod.getEnrichment(stack) * 5 - 1), 0, 4);
|
||||
int meta = enrichment + (ItemRBMKRod.getPoisonLevel(stack) >= 0.5D ? 5 : 0);
|
||||
result.setItemDamage(meta);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getRecipeOutput() {
|
||||
return null;
|
||||
}
|
||||
|
||||
private boolean hasExactlyOneStack(InventoryCrafting inventory) {
|
||||
|
||||
boolean hasOne = false;
|
||||
|
||||
for(int i = 0; i < 3; ++i) {
|
||||
for(int j = 0; j < 3; ++j) {
|
||||
|
||||
ItemStack stack = inventory.getStackInRowAndColumn(j, i);
|
||||
|
||||
if(stack != null) {
|
||||
|
||||
if(!hasOne)
|
||||
hasOne = true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return hasOne;
|
||||
}
|
||||
|
||||
private ItemStack getFirstStack(InventoryCrafting inventory) {
|
||||
|
||||
for(int i = 0; i < 3; ++i) {
|
||||
for(int j = 0; j < 3; ++j) {
|
||||
|
||||
ItemStack stack = inventory.getStackInRowAndColumn(j, i);
|
||||
|
||||
if(stack != null) {
|
||||
return stack;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
387
src/main/java/com/hbm/entity/mob/EntityUFO.java
Normal file
@ -0,0 +1,387 @@
|
||||
package com.hbm.entity.mob;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.hbm.entity.projectile.EntityBulletBase;
|
||||
import com.hbm.explosion.ExplosionNukeSmall;
|
||||
import com.hbm.handler.BulletConfigSyncingUtil;
|
||||
import com.hbm.lib.ModDamageSource;
|
||||
import com.hbm.packet.AuxParticlePacketNT;
|
||||
import com.hbm.packet.PacketDispatcher;
|
||||
import com.hbm.util.ContaminationUtil;
|
||||
import com.hbm.util.ContaminationUtil.ContaminationType;
|
||||
import com.hbm.util.ContaminationUtil.HazardType;
|
||||
|
||||
import api.hbm.entity.IRadiationImmune;
|
||||
import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityFlying;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.boss.IBossDisplayData;
|
||||
import net.minecraft.entity.monster.IMob;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.EnumDifficulty;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class EntityUFO extends EntityFlying implements IMob, IBossDisplayData, IRadiationImmune {
|
||||
|
||||
public int courseChangeCooldown;
|
||||
public int scanCooldown;
|
||||
/*public double waypointX;
|
||||
public double waypointY;
|
||||
public double waypointZ;*/
|
||||
public int hurtCooldown;
|
||||
public int beamTimer;
|
||||
private Entity target;
|
||||
private List<Entity> secondaries = new ArrayList();
|
||||
|
||||
public EntityUFO(World p_i1587_1_) {
|
||||
super(p_i1587_1_);
|
||||
this.setSize(15F, 4F);
|
||||
this.isImmuneToFire = true;
|
||||
this.experienceValue = 500;
|
||||
this.ignoreFrustumCheck = true;
|
||||
this.deathTime = -30;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean attackEntityFrom(DamageSource source, float amount) {
|
||||
|
||||
if(hurtCooldown > 0)
|
||||
return false;
|
||||
|
||||
boolean hit = super.attackEntityFrom(source, amount);
|
||||
|
||||
if(hit)
|
||||
hurtCooldown = 8;
|
||||
|
||||
return hit;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void applyEntityAttributes() {
|
||||
super.applyEntityAttributes();
|
||||
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(20000.0D);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void updateEntityActionState() {
|
||||
|
||||
if(!this.worldObj.isRemote) {
|
||||
|
||||
if(this.worldObj.difficultySetting == EnumDifficulty.PEACEFUL) {
|
||||
this.setDead();
|
||||
return;
|
||||
}
|
||||
|
||||
if(this.hurtCooldown > 0) {
|
||||
this.hurtCooldown--;
|
||||
}
|
||||
}
|
||||
|
||||
if(this.courseChangeCooldown > 0) {
|
||||
this.courseChangeCooldown--;
|
||||
}
|
||||
if(this.scanCooldown > 0) {
|
||||
this.scanCooldown--;
|
||||
}
|
||||
|
||||
if(this.target != null && !this.target.isEntityAlive()) {
|
||||
this.target = null;
|
||||
}
|
||||
|
||||
if(this.target == null && this.scanCooldown <= 0) {
|
||||
List<Entity> entities = worldObj.getEntitiesWithinAABB(Entity.class, this.boundingBox.expand(100, 50, 100));
|
||||
this.secondaries.clear();
|
||||
|
||||
for(Entity entity : entities) {
|
||||
|
||||
if(!entity.isEntityAlive() || !canAttackClass(entity.getClass()))
|
||||
continue;
|
||||
|
||||
if(entity instanceof EntityPlayer) {
|
||||
|
||||
if(this.target == null) {
|
||||
this.target = entity;
|
||||
} else {
|
||||
if(this.getDistanceSqToEntity(entity) < this.getDistanceSqToEntity(this.target)) {
|
||||
this.target = entity;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(entity instanceof EntityLivingBase && this.getDistanceSqToEntity(entity) < 50 * 50 && this.canEntityBeSeen(entity) && entity != this.target) {
|
||||
this.secondaries.add(entity);
|
||||
}
|
||||
}
|
||||
|
||||
this.scanCooldown = 50;
|
||||
}
|
||||
|
||||
if(this.target != null && this.courseChangeCooldown <= 0) {
|
||||
|
||||
Vec3 vec = Vec3.createVectorHelper(this.posX - this.target.posX, 0, this.posZ - this.target.posZ);
|
||||
|
||||
if(rand.nextInt(3) > 0)
|
||||
vec.rotateAroundY((float)Math.PI * 2 * rand.nextFloat());
|
||||
|
||||
double length = vec.lengthVector();
|
||||
double overshoot = 35;
|
||||
|
||||
int wX = (int)Math.floor(this.target.posX - vec.xCoord / length * overshoot);
|
||||
int wZ = (int)Math.floor(this.target.posZ - vec.zCoord / length * overshoot);
|
||||
|
||||
this.setWaypoint(wX, Math.max(this.worldObj.getHeightValue(wX, wZ) + 20 + rand.nextInt(15), (int) this.target.posY + 15), wZ);
|
||||
|
||||
this.courseChangeCooldown = 40 + rand.nextInt(20);
|
||||
}
|
||||
|
||||
if(!worldObj.isRemote) {
|
||||
|
||||
if(beamTimer <= 0 && this.getBeam()) {
|
||||
this.setBeam(false);
|
||||
}
|
||||
|
||||
double dist = Math.abs(this.target.posX - this.posX) + Math.abs(this.target.posZ - this.posZ);
|
||||
if(dist < 25)
|
||||
this.beamTimer = 30;
|
||||
|
||||
if(beamTimer > 0) {
|
||||
this.beamTimer--;
|
||||
|
||||
if(!this.getBeam())
|
||||
this.setBeam(true);
|
||||
|
||||
int ix = (int)Math.floor(this.posX);
|
||||
int iz = (int)Math.floor(this.posZ);
|
||||
int iy = 0;
|
||||
|
||||
for(int i = (int)Math.ceil(this.posY); i >= 0; i--) {
|
||||
|
||||
if(this.worldObj.getBlock(ix, i, iz) != Blocks.air) {
|
||||
iy = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(iy < this.posY) {
|
||||
List<Entity> entities = worldObj.getEntitiesWithinAABBExcludingEntity(this, AxisAlignedBB.getBoundingBox(this.posX, iy, this.posZ, this.posX, this.posY, this.posZ).expand(5, 0, 5));
|
||||
|
||||
for(Entity e : entities) {
|
||||
if(this.canAttackClass(e.getClass())) {
|
||||
e.attackEntityFrom(ModDamageSource.causeCombineDamage(this, e), 1000F);
|
||||
e.setFire(5);
|
||||
|
||||
if(e instanceof EntityLivingBase)
|
||||
ContaminationUtil.contaminate((EntityLivingBase)e, HazardType.RADIATION, ContaminationType.CREATIVE, 5F);
|
||||
}
|
||||
}
|
||||
|
||||
NBTTagCompound data = new NBTTagCompound();
|
||||
data.setString("type", "ufo");
|
||||
PacketDispatcher.wrapper.sendToAllAround(new AuxParticlePacketNT(data, posX, iy + 0.5, posZ), new TargetPoint(dimension, posX, iy + 0.5, posZ, 50));
|
||||
PacketDispatcher.wrapper.sendToAllAround(new AuxParticlePacketNT(data, posX + this.motionX * 0.5, iy + 0.5, posZ + this.motionZ * 0.5), new TargetPoint(dimension, posX + this.motionX * 0.5, iy + 0.5, posZ + this.motionZ * 0.5, 50));
|
||||
}
|
||||
}
|
||||
|
||||
if(this.ticksExisted % 300 < 200) {
|
||||
|
||||
if(this.ticksExisted % 4 == 0) {
|
||||
|
||||
if(!this.secondaries.isEmpty()){
|
||||
Entity e = this.secondaries.get(rand.nextInt(this.secondaries.size()));
|
||||
laserAttack(e);
|
||||
} else if(this.target != null) {
|
||||
laserAttack(this.target);
|
||||
}
|
||||
|
||||
} else if(this.ticksExisted % 4 == 2) {
|
||||
if(this.target != null) {
|
||||
laserAttack(this.target);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
if(this.ticksExisted % 20 == 0) {
|
||||
|
||||
if(!this.secondaries.isEmpty()){
|
||||
Entity e = this.secondaries.get(rand.nextInt(this.secondaries.size()));
|
||||
rocketAttack(e);
|
||||
} else if(this.target != null) {
|
||||
rocketAttack(this.target);
|
||||
}
|
||||
|
||||
} else if(this.ticksExisted % 20 == 10) {
|
||||
if(this.target != null) {
|
||||
rocketAttack(this.target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
this.motionX = 0;
|
||||
this.motionY = 0;
|
||||
this.motionZ = 0;
|
||||
|
||||
if(this.courseChangeCooldown > 0) {
|
||||
|
||||
double deltaX = this.getX() - this.posX;
|
||||
double deltaY = this.getY() - this.posY;
|
||||
double deltaZ = this.getZ() - this.posZ;
|
||||
Vec3 delta = Vec3.createVectorHelper(deltaX, deltaY, deltaZ);
|
||||
double len = delta.lengthVector();
|
||||
double speed = 5D;
|
||||
|
||||
if(len > 5) {
|
||||
if(isCourseTraversable(this.getX(), this.getY(), this.getZ(), len)) {
|
||||
this.motionX = delta.xCoord * speed / len;
|
||||
this.motionY = delta.yCoord * speed / len;
|
||||
this.motionZ = delta.zCoord * speed / len;
|
||||
} else {
|
||||
this.courseChangeCooldown = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void onDeathUpdate() {
|
||||
|
||||
if(this.getBeam())
|
||||
this.setBeam(false);
|
||||
|
||||
this.motionY -= 0.05D;
|
||||
|
||||
if(this.deathTime == 19 && !worldObj.isRemote) {
|
||||
worldObj.newExplosion(this, posX, posY, posZ, 10F, true, true);
|
||||
ExplosionNukeSmall.explode(worldObj, posX, posY, posZ, ExplosionNukeSmall.medium);
|
||||
}
|
||||
|
||||
super.onDeathUpdate();
|
||||
}
|
||||
|
||||
private void laserAttack(Entity e) {
|
||||
|
||||
Vec3 vec = Vec3.createVectorHelper(this.posX - e.posX, 0, this.posZ - e.posZ);
|
||||
vec.rotateAroundY((float) Math.toRadians(-80 + rand.nextInt(160)));
|
||||
vec = vec.normalize();
|
||||
|
||||
double pivotX = this.posX - vec.xCoord * 10;
|
||||
double pivotY = this.posY + 0.5;
|
||||
double pivotZ = this.posZ - vec.zCoord * 10;
|
||||
|
||||
Vec3 heading = Vec3.createVectorHelper(e.posX - pivotX, e.posY + e.height / 2 - pivotY, e.posZ - pivotZ);
|
||||
heading = heading.normalize();
|
||||
|
||||
EntityBulletBase bullet = new EntityBulletBase(this.worldObj, BulletConfigSyncingUtil.WORM_LASER);
|
||||
bullet.shooter = this;
|
||||
bullet.setPosition(pivotX, pivotY, pivotZ);
|
||||
bullet.setThrowableHeading(heading.xCoord, heading.yCoord, heading.zCoord, 2F, 0.02F);
|
||||
this.worldObj.spawnEntityInWorld(bullet);
|
||||
this.playSound("hbm:weapon.ballsLaser", 5.0F, 1.0F);
|
||||
}
|
||||
|
||||
private void rocketAttack(Entity e) {
|
||||
|
||||
Vec3 heading = Vec3.createVectorHelper(e.posX - this.posX, e.posY + e.height / 2 - posY - 0.5D, e.posZ - this.posZ);
|
||||
heading = heading.normalize();
|
||||
|
||||
EntityBulletBase bullet = new EntityBulletBase(this.worldObj, BulletConfigSyncingUtil.UFO_ROCKET);
|
||||
bullet.shooter = this;
|
||||
bullet.setPosition(this.posX, this.posY - 0.5D, this.posZ);
|
||||
bullet.setThrowableHeading(heading.xCoord, heading.yCoord, heading.zCoord, 2F, 0.02F);
|
||||
bullet.getEntityData().setInteger("homingTarget", e.getEntityId());
|
||||
this.worldObj.spawnEntityInWorld(bullet);
|
||||
this.playSound("hbm:turret.richard_fire", 5.0F, 1.0F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canAttackClass(Class clazz) {
|
||||
return clazz != this.getClass() && clazz != EntityBulletBase.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void entityInit() {
|
||||
super.entityInit();
|
||||
this.dataWatcher.addObject(16, Byte.valueOf((byte) 0));
|
||||
this.dataWatcher.addObject(17, 0);
|
||||
this.dataWatcher.addObject(18, 0);
|
||||
this.dataWatcher.addObject(19, 0);
|
||||
}
|
||||
|
||||
private boolean isCourseTraversable(double p_70790_1_, double p_70790_3_, double p_70790_5_, double p_70790_7_) {
|
||||
|
||||
double d4 = (this.getX() - this.posX) / p_70790_7_;
|
||||
double d5 = (this.getY() - this.posY) / p_70790_7_;
|
||||
double d6 = (this.getZ() - this.posZ) / p_70790_7_;
|
||||
AxisAlignedBB axisalignedbb = this.boundingBox.copy();
|
||||
|
||||
for(int i = 1; i < p_70790_7_; ++i) {
|
||||
axisalignedbb.offset(d4, d5, d6);
|
||||
|
||||
if(!this.worldObj.getCollidingBoundingBoxes(this, axisalignedbb).isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected float getSoundVolume() {
|
||||
return 10.0F;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getHurtSound() {
|
||||
return "mob.blaze.hit";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDeathSound() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeEntityToNBT(NBTTagCompound p_70014_1_) {
|
||||
super.writeEntityToNBT(p_70014_1_);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readEntityFromNBT(NBTTagCompound p_70037_1_) {
|
||||
super.readEntityFromNBT(p_70037_1_);
|
||||
}
|
||||
|
||||
public void setBeam(boolean b) {
|
||||
this.dataWatcher.updateObject(16, Byte.valueOf((byte) (b ? 1 : 0)));
|
||||
}
|
||||
|
||||
public boolean getBeam() {
|
||||
return this.dataWatcher.getWatchableObjectByte(16) == 1;
|
||||
}
|
||||
|
||||
public void setWaypoint(int x, int y, int z) {
|
||||
this.dataWatcher.updateObject(17, x);
|
||||
this.dataWatcher.updateObject(18, y);
|
||||
this.dataWatcher.updateObject(19, z);
|
||||
}
|
||||
|
||||
public int getX() {
|
||||
return this.dataWatcher.getWatchableObjectInt(17);
|
||||
}
|
||||
|
||||
public int getY() {
|
||||
return this.dataWatcher.getWatchableObjectInt(18);
|
||||
}
|
||||
|
||||
public int getZ() {
|
||||
return this.dataWatcher.getWatchableObjectInt(19);
|
||||
}
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
package com.hbm.entity.mob;
|
||||
package com.hbm.entity.mob.ai;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
@ -1,6 +1,6 @@
|
||||
package com.hbm.entity.mob.botprime;
|
||||
|
||||
import com.hbm.entity.mob.EntityAINearestAttackableTargetNT;
|
||||
import com.hbm.entity.mob.ai.EntityAINearestAttackableTargetNT;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
|
||||
@ -2,7 +2,7 @@ package com.hbm.entity.mob.botprime;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.hbm.entity.mob.EntityAINearestAttackableTargetNT;
|
||||
import com.hbm.entity.mob.ai.EntityAINearestAttackableTargetNT;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.main.MainRegistry;
|
||||
|
||||
|
||||
@ -235,6 +235,8 @@ public class BulletConfigSyncingUtil {
|
||||
|
||||
public static int WORM_BOLT = i++;
|
||||
public static int WORM_LASER = i++;
|
||||
|
||||
public static int UFO_ROCKET = i++;
|
||||
|
||||
public static void loadConfigsForSync() {
|
||||
|
||||
@ -460,6 +462,8 @@ public class BulletConfigSyncingUtil {
|
||||
configSet.put(MASKMAN_METEOR, GunNPCFactory.getMaskmanMeteor());
|
||||
configSet.put(WORM_BOLT, GunNPCFactory.getWormBolt());
|
||||
configSet.put(WORM_LASER, GunNPCFactory.getWormHeadBolt());
|
||||
|
||||
configSet.put(UFO_ROCKET, GunNPCFactory.getRocketUFOConfig());
|
||||
}
|
||||
|
||||
public static BulletConfiguration pullConfig(int key) {
|
||||
|
||||
@ -487,5 +487,4 @@ public class BulletConfigFactory {
|
||||
|
||||
return onUpdate;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -137,7 +137,7 @@ public class GunEnergyFactory {
|
||||
config.reloadType = GunConfiguration.RELOAD_FULL;
|
||||
config.allowsInfinity = true;
|
||||
config.crosshair = Crosshair.L_CIRCLE;
|
||||
config.firingSound = "hbm:weapon.flamethrowerShoot";
|
||||
config.firingSound = "hbm:weapon.extinguisher";
|
||||
config.reloadSound = "hbm:weapon.flamerReload";
|
||||
|
||||
config.name = "PROTEX Fire Exinguisher 6kg";
|
||||
|
||||
@ -10,7 +10,10 @@ import com.hbm.interfaces.IBulletImpactBehavior;
|
||||
import com.hbm.interfaces.IBulletUpdateBehavior;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.main.MainRegistry;
|
||||
import com.hbm.util.BobMathUtil;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.Vec3;
|
||||
@ -222,4 +225,88 @@ public class GunNPCFactory {
|
||||
|
||||
return bullet;
|
||||
}
|
||||
|
||||
public static BulletConfiguration getRocketUFOConfig() {
|
||||
|
||||
BulletConfiguration bullet = GunRocketFactory.getRocketConfig();
|
||||
|
||||
bullet.vPFX = "reddust";
|
||||
bullet.destroysBlocks = false;
|
||||
|
||||
bullet.bUpdate = new IBulletUpdateBehavior() {
|
||||
|
||||
double angle = 90;
|
||||
double range = 100;
|
||||
|
||||
@Override
|
||||
public void behaveUpdate(EntityBulletBase bullet) {
|
||||
|
||||
if(bullet.worldObj.isRemote)
|
||||
return;
|
||||
|
||||
if(bullet.worldObj.getEntityByID(bullet.getEntityData().getInteger("homingTarget")) == null) {
|
||||
chooseTarget(bullet);
|
||||
}
|
||||
|
||||
Entity target = bullet.worldObj.getEntityByID(bullet.getEntityData().getInteger("homingTarget"));
|
||||
|
||||
if(target != null) {
|
||||
|
||||
if(bullet.getDistanceSqToEntity(target) < 5) {
|
||||
bullet.worldObj.newExplosion(bullet.shooter, bullet.posX, bullet.posY, bullet.posZ, 4F, true, false);
|
||||
bullet.setDead();
|
||||
return;
|
||||
}
|
||||
|
||||
Vec3 delta = Vec3.createVectorHelper(target.posX - bullet.posX, target.posY + target.height / 2 - bullet.posY, target.posZ - bullet.posZ);
|
||||
delta = delta.normalize();
|
||||
|
||||
double vel = Vec3.createVectorHelper(bullet.motionX, bullet.motionY, bullet.motionZ).lengthVector();
|
||||
|
||||
bullet.motionX = delta.xCoord * vel;
|
||||
bullet.motionY = delta.yCoord * vel;
|
||||
bullet.motionZ = delta.zCoord * vel;
|
||||
}
|
||||
}
|
||||
|
||||
private void chooseTarget(EntityBulletBase bullet) {
|
||||
|
||||
List<EntityLivingBase> entities = bullet.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, bullet.boundingBox.expand(range, range, range));
|
||||
|
||||
Vec3 mot = Vec3.createVectorHelper(bullet.motionX, bullet.motionY, bullet.motionZ);
|
||||
|
||||
EntityLivingBase target = null;
|
||||
double targetAngle = angle;
|
||||
|
||||
for(EntityLivingBase e : entities) {
|
||||
|
||||
if(!e.isEntityAlive() || e == bullet.shooter)
|
||||
continue;
|
||||
|
||||
Vec3 delta = Vec3.createVectorHelper(e.posX - bullet.posX, e.posY + e.height / 2 - bullet.posY, e.posZ - bullet.posZ);
|
||||
|
||||
if(bullet.worldObj.func_147447_a(Vec3.createVectorHelper(bullet.posX, bullet.posY, bullet.posZ), Vec3.createVectorHelper(e.posX, e.posY + e.height / 2, e.posZ), false, true, false) != null)
|
||||
continue;
|
||||
|
||||
double dist = e.getDistanceSqToEntity(bullet);
|
||||
|
||||
if(dist < range * range) {
|
||||
|
||||
double deltaAngle = BobMathUtil.getCrossAngle(mot, delta);
|
||||
|
||||
if(deltaAngle < targetAngle) {
|
||||
target = e;
|
||||
targetAngle = deltaAngle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(target != null) {
|
||||
bullet.getEntityData().setInteger("homingTarget", target.getEntityId());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return bullet;
|
||||
}
|
||||
}
|
||||
|
||||
@ -392,5 +392,4 @@ public class GunRocketFactory {
|
||||
|
||||
return bullet;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -33,12 +33,14 @@ public class SILEXRecipeHandler extends TemplateRecipeHandler {
|
||||
PositionedStack input;
|
||||
List<PositionedStack> outputs;
|
||||
List<Double> chances;
|
||||
double produced;
|
||||
|
||||
public RecipeSet(Object input, SILEXRecipe recipe) {
|
||||
|
||||
this.input = new PositionedStack(input, 30, 24);
|
||||
this.outputs = new ArrayList<PositionedStack>();
|
||||
this.chances = new ArrayList<Double>();
|
||||
this.produced = recipe.fluidProduced / recipe.fluidConsumed;
|
||||
|
||||
double weight = 0;
|
||||
|
||||
@ -161,11 +163,14 @@ public class SILEXRecipeHandler extends TemplateRecipeHandler {
|
||||
|
||||
FontRenderer fontRenderer = Minecraft.getMinecraft().fontRenderer;
|
||||
|
||||
int off = 0;
|
||||
int index = 0;
|
||||
for(Double chance : rec.chances) {
|
||||
fontRenderer.drawString(((int)(chance * 10D) / 10D) + "%", 112, 28 + off - 9 * ((rec.chances.size() + 1) / 2), 0x404040);
|
||||
off += 18;
|
||||
fontRenderer.drawString(((int)(chance * 10D) / 10D) + "%", 112, 28 + index * 18 - 9 * ((rec.chances.size() + 1) / 2), 0x404040);
|
||||
index++;
|
||||
}
|
||||
|
||||
String am = ((int)(rec.produced * 10D) / 10D) + "x";
|
||||
fontRenderer.drawString(am, 70 - fontRenderer.getStringWidth(am) / 2, 43, 0x404040);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -366,7 +366,6 @@ public class AssemblerRecipes {
|
||||
makeRecipe(new ComparableStack(ModItems.grenade_nuclear, 1), new AStack[] {new OreDictStack("plateIron", 1), new OreDictStack("plateSteel", 1), new ComparableStack(ModItems.nugget_pu239, 2), new ComparableStack(ModItems.wire_red_copper, 2), },200);
|
||||
makeRecipe(new ComparableStack(ModItems.grenade_zomg, 1), new AStack[] {new ComparableStack(ModItems.plate_paa, 3), new OreDictStack("plateDenseLead", 1), new ComparableStack(ModItems.coil_magnetized_tungsten, 3), new ComparableStack(ModItems.powder_power, 3), },300);
|
||||
makeRecipe(new ComparableStack(ModItems.grenade_black_hole, 1), new AStack[] {new ComparableStack(ModItems.ingot_polymer, 6), new OreDictStack("plateDenseLead", 3), new ComparableStack(ModItems.coil_magnetized_tungsten, 2), new ComparableStack(ModItems.black_hole, 1), },500);
|
||||
makeRecipe(new ComparableStack(ModItems.multitool_dig, 1), new AStack[] {new ComparableStack(ModItems.rod_reiium, 1), new ComparableStack(ModItems.rod_weidanium, 1), new ComparableStack(ModItems.rod_australium, 1), new ComparableStack(ModItems.rod_verticium, 1), new ComparableStack(ModItems.rod_unobtainium, 1), new ComparableStack(ModItems.rod_daffergon, 1), new ComparableStack(ModItems.ingot_polymer, 4), new ComparableStack(ModItems.circuit_gold, 1), new ComparableStack(ModItems.ducttape, 1), },600);
|
||||
makeRecipe(new ComparableStack(ModItems.gadget_explosive, 1), new AStack[] {new ComparableStack(Blocks.tnt, 3), new OreDictStack("plateSteel", 2), new OreDictStack("plateAluminum", 4), new ComparableStack(ModItems.wire_gold, 3), },200);
|
||||
makeRecipe(new ComparableStack(ModItems.gadget_wireing, 1), new AStack[] {new OreDictStack("plateIron", 1), new ComparableStack(ModItems.wire_gold, 12), },100);
|
||||
makeRecipe(new ComparableStack(ModItems.gadget_core, 1), new AStack[] {new ComparableStack(ModItems.nugget_pu239, 7), new ComparableStack(ModItems.nugget_u238, 3), },200);
|
||||
|
||||
@ -46,11 +46,6 @@ public class OreDictManager {
|
||||
OreDictionary.registerOre("ingotMagnetizedTungsten", ModItems.ingot_magnetized_tungsten);
|
||||
OreDictionary.registerOre("ingotCMBSteel", ModItems.ingot_combine_steel);
|
||||
OreDictionary.registerOre("ingotAustralium", ModItems.ingot_australium);
|
||||
OreDictionary.registerOre("ingotWeidanium", ModItems.ingot_weidanium);
|
||||
OreDictionary.registerOre("ingotReiium", ModItems.ingot_reiium);
|
||||
OreDictionary.registerOre("ingotUnobtainium", ModItems.ingot_unobtainium);
|
||||
OreDictionary.registerOre("ingotDaffergon", ModItems.ingot_daffergon);
|
||||
OreDictionary.registerOre("ingotVerticium", ModItems.ingot_verticium);
|
||||
OreDictionary.registerOre("ingotDuraSteel", ModItems.ingot_dura_steel);
|
||||
OreDictionary.registerOre("ingotPolymer", ModItems.ingot_polymer);
|
||||
OreDictionary.registerOre("ingotLanthanium", ModItems.ingot_lanthanium);
|
||||
@ -77,11 +72,6 @@ public class OreDictManager {
|
||||
OreDictionary.registerOre("nuggetPlutonium239", ModItems.nugget_pu239);
|
||||
OreDictionary.registerOre("nuggetPlutonium240", ModItems.nugget_pu240);
|
||||
OreDictionary.registerOre("nuggetAustralium", ModItems.nugget_australium);
|
||||
OreDictionary.registerOre("nuggetWeidanium", ModItems.nugget_weidanium);
|
||||
OreDictionary.registerOre("nuggetReiium", ModItems.nugget_reiium);
|
||||
OreDictionary.registerOre("nuggetUnobtainium", ModItems.nugget_unobtainium);
|
||||
OreDictionary.registerOre("nuggetDaffergon", ModItems.nugget_daffergon);
|
||||
OreDictionary.registerOre("nuggetVerticium", ModItems.nugget_verticium);
|
||||
OreDictionary.registerOre("nuggetEuphemium", ModItems.nugget_euphemium);
|
||||
OreDictionary.registerOre("nuggetNeptunium237", ModItems.nugget_neptunium);
|
||||
OreDictionary.registerOre("nuggetPolonium", ModItems.nugget_polonium);
|
||||
@ -128,11 +118,6 @@ public class OreDictManager {
|
||||
OreDictionary.registerOre("dustLithium", ModItems.powder_lithium);
|
||||
OreDictionary.registerOre("dustNetherQuartz", ModItems.powder_quartz);
|
||||
OreDictionary.registerOre("dustAustralium", ModItems.powder_australium);
|
||||
OreDictionary.registerOre("dustWeidanium", ModItems.powder_weidanium);
|
||||
OreDictionary.registerOre("dustReiium", ModItems.powder_reiium);
|
||||
OreDictionary.registerOre("dustUnobtainium", ModItems.powder_unobtainium);
|
||||
OreDictionary.registerOre("dustDaffergon", ModItems.powder_daffergon);
|
||||
OreDictionary.registerOre("dustVerticium", ModItems.powder_verticium);
|
||||
OreDictionary.registerOre("dustDuraSteel", ModItems.powder_dura_steel);
|
||||
OreDictionary.registerOre("dustPolymer", ModItems.powder_polymer);
|
||||
OreDictionary.registerOre("dustLanthanium", ModItems.powder_lanthanium);
|
||||
@ -198,11 +183,6 @@ public class OreDictManager {
|
||||
OreDictionary.registerOre("oreBeryllium", ModBlocks.ore_beryllium);
|
||||
OreDictionary.registerOre("oreLignite", ModBlocks.ore_lignite);
|
||||
OreDictionary.registerOre("oreAustralium", ModBlocks.ore_australium);
|
||||
OreDictionary.registerOre("oreWeidanium", ModBlocks.ore_weidanium);
|
||||
OreDictionary.registerOre("oreReiium", ModBlocks.ore_reiium);
|
||||
OreDictionary.registerOre("oreUnobtainium", ModBlocks.ore_unobtainium);
|
||||
OreDictionary.registerOre("oreDaffergon", ModBlocks.ore_daffergon);
|
||||
OreDictionary.registerOre("oreVerticium", ModBlocks.ore_verticium);
|
||||
OreDictionary.registerOre("oreRareEarth", ModBlocks.ore_rare);
|
||||
OreDictionary.registerOre("oreZirconium", ModBlocks.ore_depth_zirconium);
|
||||
|
||||
|
||||
@ -6,6 +6,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import com.hbm.handler.FluidTypeHandler.FluidType;
|
||||
import com.hbm.inventory.RecipesCommon.ComparableStack;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.util.WeightedRandomObject;
|
||||
@ -15,11 +16,15 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
public class SILEXRecipes {
|
||||
|
||||
|
||||
private static HashMap<Object, SILEXRecipe> recipes = new HashMap();
|
||||
private static HashMap<ComparableStack, ComparableStack> itemTranslation = new HashMap();
|
||||
private static HashMap<String, String> dictTranslation = new HashMap();
|
||||
|
||||
public static void register() {
|
||||
|
||||
|
||||
itemTranslation.put(new ComparableStack(ModItems.fluid_icon, 1, FluidType.UF6.ordinal()), new ComparableStack(ModItems.ingot_uranium));
|
||||
dictTranslation.put("dustUranium", "ingotUranium");
|
||||
recipes.put("ingotUranium", new SILEXRecipe(900, 100)
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_u235), 1))
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_u238), 8))
|
||||
@ -29,19 +34,22 @@ public class SILEXRecipes {
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_pu239), 6))
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_pu240), 3))
|
||||
);
|
||||
|
||||
|
||||
itemTranslation.put(new ComparableStack(ModItems.fluid_icon, 1, FluidType.PUF6.ordinal()), new ComparableStack(ModItems.ingot_plutonium));
|
||||
dictTranslation.put("dustPlutonium", "ingotPlutonium");
|
||||
recipes.put("ingotPlutonium", new SILEXRecipe(900, 100)
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_pu238), 3))
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_pu239), 4))
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_pu240), 2))
|
||||
);
|
||||
|
||||
|
||||
recipes.put(new ComparableStack(ModItems.ingot_schraranium), new SILEXRecipe(900, 100)
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_schrabidium), 4))
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_uranium), 3))
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_plutonium), 2))
|
||||
);
|
||||
|
||||
|
||||
itemTranslation.put(new ComparableStack(ModItems.powder_australium), new ComparableStack(ModItems.ingot_australium));
|
||||
recipes.put(new ComparableStack(ModItems.ingot_australium), new SILEXRecipe(900, 100)
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_australium_lesser), 5))
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_australium_greater), 1))
|
||||
@ -58,6 +66,26 @@ public class SILEXRecipes {
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.powder_aluminium), 3))
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.powder_cobalt), 3))
|
||||
);
|
||||
|
||||
for(int i = 0; i < 5; i++) {
|
||||
recipes.put(new ComparableStack(ModItems.rbmk_pellet_ueu, 1, i), new SILEXRecipe(600, 100)
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_uranium), 9 - 2 * i))
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_plutonium), 1 + 2 * i)) );
|
||||
|
||||
recipes.put(new ComparableStack(ModItems.rbmk_pellet_ueu, 1, i + 5), new SILEXRecipe(600, 100)
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.powder_xe135_tiny), 1))
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_uranium), 8 - 2 * i))
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_plutonium), 1 + 2 * i)) );
|
||||
|
||||
recipes.put(new ComparableStack(ModItems.rbmk_fuel_balefire_gold, 1, i), new SILEXRecipe(600, 100)
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_au198), 9 - 2 * i))
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.powder_balefire), 1 + 2 * i)) );
|
||||
|
||||
recipes.put(new ComparableStack(ModItems.rbmk_fuel_balefire_gold, 1, i + 5), new SILEXRecipe(600, 100)
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.powder_xe135_tiny), 1))
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.nugget_au198), 8 - 2 * i))
|
||||
.addOut(new WeightedRandomObject(new ItemStack(ModItems.powder_balefire), 1 + 2 * i)) );
|
||||
}
|
||||
}
|
||||
|
||||
public static SILEXRecipe getOutput(ItemStack stack) {
|
||||
@ -65,7 +93,7 @@ public class SILEXRecipes {
|
||||
if(stack == null || stack.getItem() == null)
|
||||
return null;
|
||||
|
||||
ComparableStack comp = new ComparableStack(stack.getItem(), 1, stack.getItemDamage());
|
||||
ComparableStack comp = translateItem(stack);
|
||||
|
||||
if(recipes.containsKey(comp))
|
||||
return recipes.get(comp);
|
||||
@ -73,25 +101,70 @@ public class SILEXRecipes {
|
||||
String[] dictKeys = comp.getDictKeys();
|
||||
|
||||
for(String key : dictKeys) {
|
||||
|
||||
if(recipes.containsKey(key))
|
||||
return recipes.get(key);
|
||||
|
||||
String translation = translateDict(key);
|
||||
if(recipes.containsKey(translation))
|
||||
return recipes.get(translation);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static ComparableStack translateItem(ItemStack stack) {
|
||||
ComparableStack orig = new ComparableStack(stack.getItem(), 1, stack.getItemDamage());
|
||||
ComparableStack translation = itemTranslation.get(orig);
|
||||
|
||||
if(translation != null)
|
||||
return translation;
|
||||
|
||||
return orig;
|
||||
}
|
||||
|
||||
public static String translateDict(String key) {
|
||||
|
||||
String translation = dictTranslation.get(key);
|
||||
|
||||
if(translation != null)
|
||||
return translation;
|
||||
|
||||
return key;
|
||||
}
|
||||
|
||||
public static List<Object> getAllIngredients() {
|
||||
List<Object> ing = new ArrayList();
|
||||
|
||||
for(Entry<Object, SILEXRecipe> entry : SILEXRecipes.recipes.entrySet()) {
|
||||
ing.add(entry.getKey());
|
||||
}
|
||||
for(Entry<ComparableStack, ComparableStack> entry : SILEXRecipes.itemTranslation.entrySet()) {
|
||||
ing.add(entry.getKey());
|
||||
}
|
||||
for(Entry<String, String> entry : SILEXRecipes.dictTranslation.entrySet()) {
|
||||
ing.add(entry.getKey());
|
||||
}
|
||||
|
||||
return ing;
|
||||
}
|
||||
|
||||
public static Map<Object, SILEXRecipe> getRecipes() {
|
||||
|
||||
Map<Object, SILEXRecipe> recipes = new HashMap<Object, SILEXRecipe>();
|
||||
List<Object> ing = getAllIngredients();
|
||||
|
||||
for(Entry<Object, SILEXRecipe> entry : SILEXRecipes.recipes.entrySet()) {
|
||||
for(Object ingredient : ing) {
|
||||
|
||||
if(entry.getKey() instanceof String) {
|
||||
List<ItemStack> ingredients = OreDictionary.getOres((String)entry.getKey());
|
||||
recipes.put(ingredients, entry.getValue());
|
||||
} else {
|
||||
recipes.put(((ComparableStack)entry.getKey()).toStack(), entry.getValue());
|
||||
if(ingredient instanceof String) {
|
||||
List<ItemStack> ingredients = OreDictionary.getOres((String)ingredient);
|
||||
if(ingredients.size() > 0) {
|
||||
SILEXRecipe output = getOutput(ingredients.get(0));
|
||||
if(output != null)
|
||||
recipes.put(ingredients, output);
|
||||
}
|
||||
|
||||
} else if(ingredient instanceof ComparableStack) {
|
||||
SILEXRecipe output = getOutput(((ComparableStack) ingredient).toStack());
|
||||
if(output != null)
|
||||
recipes.put(((ComparableStack)ingredient).toStack(), output);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -177,6 +177,7 @@ public class ModItems {
|
||||
public static Item billet_po210be;
|
||||
public static Item billet_pu238be;
|
||||
public static Item billet_yharonite;
|
||||
public static Item billet_balefire_gold;
|
||||
|
||||
public static Item nugget_th232;
|
||||
public static Item nugget_uranium;
|
||||
@ -291,6 +292,8 @@ public class ModItems {
|
||||
public static Item powder_co60;
|
||||
public static Item powder_au198;
|
||||
public static Item powder_i131;
|
||||
public static Item powder_xe135;
|
||||
public static Item powder_xe135_tiny;
|
||||
public static Item powder_cs137;
|
||||
public static Item powder_at209;
|
||||
public static Item powder_schrabidium;
|
||||
@ -910,34 +913,40 @@ public class ModItems {
|
||||
|
||||
public static Item rbmk_lid;
|
||||
public static Item rbmk_fuel_empty;
|
||||
public static Item rbmk_fuel_meu;
|
||||
public static Item rbmk_fuel_thmeu;
|
||||
public static Item rbmk_fuel_lep;
|
||||
public static Item rbmk_fuel_mep;
|
||||
public static Item rbmk_fuel_men;
|
||||
public static Item rbmk_fuel_mox;
|
||||
public static Item rbmk_fuel_les;
|
||||
public static Item rbmk_fuel_mes;
|
||||
public static Item rbmk_fuel_hes;
|
||||
public static Item rbmk_fuel_leaus;
|
||||
public static Item rbmk_fuel_heaus;
|
||||
public static Item rbmk_fuel_po210be;
|
||||
public static Item rbmk_fuel_pu238be;
|
||||
public static Item rbmk_fuel_balefire;
|
||||
public static Item rbmk_fuel_drx;
|
||||
public static Item rbmk_pellet_meu;
|
||||
public static Item rbmk_pellet_thmeu;
|
||||
public static Item rbmk_pellet_lep;
|
||||
public static Item rbmk_pellet_mep;
|
||||
public static Item rbmk_pellet_men;
|
||||
public static Item rbmk_pellet_mox;
|
||||
public static Item rbmk_pellet_les;
|
||||
public static Item rbmk_pellet_mes;
|
||||
public static Item rbmk_pellet_hes;
|
||||
public static Item rbmk_pellet_leaus;
|
||||
public static Item rbmk_pellet_heaus;
|
||||
public static Item rbmk_pellet_balefire;
|
||||
public static Item rbmk_pellet_drx;
|
||||
public static ItemRBMKRod rbmk_fuel_ueu;
|
||||
public static ItemRBMKRod rbmk_fuel_meu;
|
||||
public static ItemRBMKRod rbmk_fuel_thmeu;
|
||||
public static ItemRBMKRod rbmk_fuel_lep;
|
||||
public static ItemRBMKRod rbmk_fuel_mep;
|
||||
public static ItemRBMKRod rbmk_fuel_men;
|
||||
public static ItemRBMKRod rbmk_fuel_mox;
|
||||
public static ItemRBMKRod rbmk_fuel_les;
|
||||
public static ItemRBMKRod rbmk_fuel_mes;
|
||||
public static ItemRBMKRod rbmk_fuel_hes;
|
||||
public static ItemRBMKRod rbmk_fuel_leaus;
|
||||
public static ItemRBMKRod rbmk_fuel_heaus;
|
||||
public static ItemRBMKRod rbmk_fuel_po210be;
|
||||
public static ItemRBMKRod rbmk_fuel_pu238be;
|
||||
public static ItemRBMKRod rbmk_fuel_balefire_gold;
|
||||
public static ItemRBMKRod rbmk_fuel_balefire;
|
||||
public static ItemRBMKRod rbmk_fuel_drx;
|
||||
public static ItemRBMKPellet rbmk_pellet_ueu;
|
||||
public static ItemRBMKPellet rbmk_pellet_meu;
|
||||
public static ItemRBMKPellet rbmk_pellet_thmeu;
|
||||
public static ItemRBMKPellet rbmk_pellet_lep;
|
||||
public static ItemRBMKPellet rbmk_pellet_mep;
|
||||
public static ItemRBMKPellet rbmk_pellet_men;
|
||||
public static ItemRBMKPellet rbmk_pellet_mox;
|
||||
public static ItemRBMKPellet rbmk_pellet_les;
|
||||
public static ItemRBMKPellet rbmk_pellet_mes;
|
||||
public static ItemRBMKPellet rbmk_pellet_hes;
|
||||
public static ItemRBMKPellet rbmk_pellet_leaus;
|
||||
public static ItemRBMKPellet rbmk_pellet_heaus;
|
||||
public static ItemRBMKPellet rbmk_pellet_po210be;
|
||||
public static ItemRBMKPellet rbmk_pellet_pu238be;
|
||||
public static ItemRBMKPellet rbmk_pellet_balefire_gold;
|
||||
public static ItemRBMKPellet rbmk_pellet_balefire;
|
||||
public static ItemRBMKPellet rbmk_pellet_drx;
|
||||
|
||||
public static Item scrap;
|
||||
public static Item trinitite;
|
||||
@ -2113,6 +2122,7 @@ public class ModItems {
|
||||
|
||||
public static Item spawn_chopper;
|
||||
public static Item spawn_worm;
|
||||
public static Item spawn_ufo;
|
||||
|
||||
public static Item key;
|
||||
public static Item key_red;
|
||||
@ -2418,6 +2428,7 @@ public class ModItems {
|
||||
billet_po210be = new ItemHazard().setUnlocalizedName("billet_po210be").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":billet_po210be");
|
||||
billet_pu238be = new ItemHazard().setUnlocalizedName("billet_pu238be").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":billet_pu238be");
|
||||
billet_yharonite = new Item().setUnlocalizedName("billet_yharonite").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":billet_yharonite");
|
||||
billet_balefire_gold = new ItemHazard().addRadiation(ItemHazard.au198 * ItemHazard.billet).toItem().setUnlocalizedName("billet_balefire_gold").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":billet_balefire_gold");
|
||||
|
||||
ingot_dura_steel = new ItemCustomLore().setUnlocalizedName("ingot_dura_steel").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_dura_steel");
|
||||
ingot_polymer = new ItemCustomLore().setUnlocalizedName("ingot_polymer").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_polymer");
|
||||
@ -2463,19 +2474,19 @@ public class ModItems {
|
||||
cinnebar = new Item().setUnlocalizedName("cinnebar").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":cinnebar");
|
||||
|
||||
ingot_australium = new ItemCustomLore().setUnlocalizedName("ingot_australium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_australium");
|
||||
ingot_weidanium = new ItemCustomLore().setUnlocalizedName("ingot_weidanium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_weidanium");
|
||||
ingot_reiium = new ItemCustomLore().setUnlocalizedName("ingot_reiium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_reiium");
|
||||
ingot_unobtainium = new ItemCustomLore().setUnlocalizedName("ingot_unobtainium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_unobtainium");
|
||||
ingot_daffergon = new ItemCustomLore().setUnlocalizedName("ingot_daffergon").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_daffergon");
|
||||
ingot_verticium = new ItemCustomLore().setUnlocalizedName("ingot_verticium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_verticium");
|
||||
ingot_weidanium = new ItemCustomLore().setUnlocalizedName("ingot_weidanium").setCreativeTab(null).setTextureName(RefStrings.MODID + ":ingot_weidanium");
|
||||
ingot_reiium = new ItemCustomLore().setUnlocalizedName("ingot_reiium").setCreativeTab(null).setTextureName(RefStrings.MODID + ":ingot_reiium");
|
||||
ingot_unobtainium = new ItemCustomLore().setUnlocalizedName("ingot_unobtainium").setCreativeTab(null).setTextureName(RefStrings.MODID + ":ingot_unobtainium");
|
||||
ingot_daffergon = new ItemCustomLore().setUnlocalizedName("ingot_daffergon").setCreativeTab(null).setTextureName(RefStrings.MODID + ":ingot_daffergon");
|
||||
ingot_verticium = new ItemCustomLore().setUnlocalizedName("ingot_verticium").setCreativeTab(null).setTextureName(RefStrings.MODID + ":ingot_verticium");
|
||||
nugget_australium = new ItemCustomLore().setUnlocalizedName("nugget_australium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":nugget_australium");
|
||||
nugget_australium_lesser = new ItemCustomLore().setUnlocalizedName("nugget_australium_lesser").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":nugget_australium_lesser");
|
||||
nugget_australium_greater = new ItemCustomLore().setUnlocalizedName("nugget_australium_greater").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":nugget_australium_greater");
|
||||
nugget_weidanium = new ItemCustomLore().setUnlocalizedName("nugget_weidanium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":nugget_weidanium");
|
||||
nugget_reiium = new ItemCustomLore().setUnlocalizedName("nugget_reiium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":nugget_reiium");
|
||||
nugget_unobtainium = new ItemCustomLore().setUnlocalizedName("nugget_unobtainium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":nugget_unobtainium");
|
||||
nugget_daffergon = new ItemCustomLore().setUnlocalizedName("nugget_daffergon").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":nugget_daffergon");
|
||||
nugget_verticium = new ItemCustomLore().setUnlocalizedName("nugget_verticium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":nugget_verticium");
|
||||
nugget_weidanium = new ItemCustomLore().setUnlocalizedName("nugget_weidanium").setCreativeTab(null).setTextureName(RefStrings.MODID + ":nugget_weidanium");
|
||||
nugget_reiium = new ItemCustomLore().setUnlocalizedName("nugget_reiium").setCreativeTab(null).setTextureName(RefStrings.MODID + ":nugget_reiium");
|
||||
nugget_unobtainium = new ItemCustomLore().setUnlocalizedName("nugget_unobtainium").setCreativeTab(null).setTextureName(RefStrings.MODID + ":nugget_unobtainium");
|
||||
nugget_daffergon = new ItemCustomLore().setUnlocalizedName("nugget_daffergon").setCreativeTab(null).setTextureName(RefStrings.MODID + ":nugget_daffergon");
|
||||
nugget_verticium = new ItemCustomLore().setUnlocalizedName("nugget_verticium").setCreativeTab(null).setTextureName(RefStrings.MODID + ":nugget_verticium");
|
||||
|
||||
nugget_th232 = new ItemHazard(ItemHazard.th232 * ItemHazard.nugget).setUnlocalizedName("nugget_th232").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":nugget_th232");
|
||||
nugget_uranium = new ItemHazard(ItemHazard.u * ItemHazard.nugget).setUnlocalizedName("nugget_uranium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":nugget_uranium");
|
||||
@ -2541,6 +2552,8 @@ public class ModItems {
|
||||
powder_polonium = new ItemHazard(ItemHazard.po210 * ItemHazard.powder, true).setUnlocalizedName("powder_polonium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":powder_polonium");
|
||||
powder_co60 = new ItemHazard().addRadiation(ItemHazard.co60 * ItemHazard.powder).addFire(5).toItem().setUnlocalizedName("powder_co60").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":powder_co60");
|
||||
powder_i131 = new ItemHazard().addRadiation(ItemHazard.i131 * ItemHazard.powder).addFire(15).toItem().setUnlocalizedName("powder_i131").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":powder_i131");
|
||||
powder_xe135 = new ItemHazard().addRadiation(ItemHazard.xe135 * ItemHazard.powder).addFire(15).toItem().setUnlocalizedName("powder_xe135").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":powder_xe135");
|
||||
powder_xe135_tiny = new ItemHazard().addRadiation(ItemHazard.xe135 * ItemHazard.powder_tiny).addFire(15).toItem().setUnlocalizedName("powder_xe135_tiny").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":powder_xe135_tiny");
|
||||
powder_cs137 = new ItemHazard().addRadiation(ItemHazard.cs137 * ItemHazard.powder).addFire(5).toItem().setUnlocalizedName("powder_cs137").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":powder_cs137");
|
||||
powder_au198 = new ItemHazard().addRadiation(ItemHazard.au198 * ItemHazard.powder).addFire(15).toItem().setUnlocalizedName("powder_au198").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":powder_au198");
|
||||
powder_at209 = new ItemHazard().addRadiation(ItemHazard.at209 * ItemHazard.powder).addFire(15).addBlinding().toItem().setUnlocalizedName("powder_at209").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":powder_at209");
|
||||
@ -2578,11 +2591,11 @@ public class ModItems {
|
||||
powder_astatine = new ItemCustomLore().setUnlocalizedName("powder_astatine").setCreativeTab(null).setTextureName(RefStrings.MODID + ":powder_astatine");
|
||||
powder_caesium = new ItemCustomLore().setUnlocalizedName("powder_caesium").setCreativeTab(null).setTextureName(RefStrings.MODID + ":powder_caesium");
|
||||
powder_australium = new ItemCustomLore().setUnlocalizedName("powder_australium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":powder_australium");
|
||||
powder_weidanium = new ItemCustomLore().setUnlocalizedName("powder_weidanium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":powder_weidanium");
|
||||
powder_reiium = new ItemCustomLore().setUnlocalizedName("powder_reiium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":powder_reiium");
|
||||
powder_unobtainium = new ItemCustomLore().setUnlocalizedName("powder_unobtainium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":powder_unobtainium");
|
||||
powder_daffergon = new ItemCustomLore().setUnlocalizedName("powder_daffergon").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":powder_daffergon");
|
||||
powder_verticium = new ItemCustomLore().setUnlocalizedName("powder_verticium").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":powder_verticium");
|
||||
powder_weidanium = new ItemCustomLore().setUnlocalizedName("powder_weidanium").setCreativeTab(null).setTextureName(RefStrings.MODID + ":powder_weidanium");
|
||||
powder_reiium = new ItemCustomLore().setUnlocalizedName("powder_reiium").setCreativeTab(null).setTextureName(RefStrings.MODID + ":powder_reiium");
|
||||
powder_unobtainium = new ItemCustomLore().setUnlocalizedName("powder_unobtainium").setCreativeTab(null).setTextureName(RefStrings.MODID + ":powder_unobtainium");
|
||||
powder_daffergon = new ItemCustomLore().setUnlocalizedName("powder_daffergon").setCreativeTab(null).setTextureName(RefStrings.MODID + ":powder_daffergon");
|
||||
powder_verticium = new ItemCustomLore().setUnlocalizedName("powder_verticium").setCreativeTab(null).setTextureName(RefStrings.MODID + ":powder_verticium");
|
||||
powder_strontium = new ItemCustomLore().setUnlocalizedName("powder_strontium").setCreativeTab(null).setTextureName(RefStrings.MODID + ":powder_strontium");
|
||||
powder_cobalt = new ItemCustomLore().setUnlocalizedName("powder_cobalt").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":powder_cobalt");
|
||||
powder_bromine = new ItemCustomLore().setUnlocalizedName("powder_bromine").setCreativeTab(null).setTextureName(RefStrings.MODID + ":powder_bromine");
|
||||
@ -3178,108 +3191,125 @@ public class ModItems {
|
||||
rod_quad_tritium = new ItemHazard(2F).setUnlocalizedName("rod_quad_tritium").setMaxStackSize(1).setCreativeTab(MainRegistry.controlTab).setContainerItem(ModItems.rod_quad_empty).setTextureName(RefStrings.MODID + ":rod_quad_tritium");
|
||||
|
||||
rbmk_lid = new Item().setUnlocalizedName("rbmk_lid").setCreativeTab(MainRegistry.controlTab).setTextureName(RefStrings.MODID + ":rbmk_lid");
|
||||
|
||||
rbmk_pellet_ueu = (ItemRBMKPellet) new ItemRBMKPellet("Unenriched Uranium").addRadiation(ItemHazard.u * ItemHazard.billet).toItem().setUnlocalizedName("rbmk_pellet_ueu").setTextureName(RefStrings.MODID + ":rbmk_pellet_ueu");
|
||||
rbmk_pellet_meu = (ItemRBMKPellet) new ItemRBMKPellet("Medium Enriched Uranium-235").addRadiation(ItemHazard.uf * ItemHazard.billet).toItem().setUnlocalizedName("rbmk_pellet_meu").setTextureName(RefStrings.MODID + ":rbmk_pellet_meu");
|
||||
rbmk_pellet_thmeu = (ItemRBMKPellet) new ItemRBMKPellet("Thorium with MEU Driver Fuel").addRadiation(ItemHazard.thf * ItemHazard.billet).toItem().setUnlocalizedName("rbmk_pellet_thmeu").setTextureName(RefStrings.MODID + ":rbmk_pellet_thmeu");
|
||||
rbmk_pellet_lep = (ItemRBMKPellet) new ItemRBMKPellet("Low Enriched Plutonium-239").addRadiation(ItemHazard.puf * ItemHazard.billet).toItem().setUnlocalizedName("rbmk_pellet_lep").setTextureName(RefStrings.MODID + ":rbmk_pellet_lep");
|
||||
rbmk_pellet_mep = (ItemRBMKPellet) new ItemRBMKPellet("Medium Enriched Plutonium-239").addRadiation(ItemHazard.purg * ItemHazard.billet).toItem().setUnlocalizedName("rbmk_pellet_mep").setTextureName(RefStrings.MODID + ":rbmk_pellet_mep");
|
||||
rbmk_pellet_men = (ItemRBMKPellet) new ItemRBMKPellet("Medium Enriched Neptunium-237").addRadiation(ItemHazard.npf * ItemHazard.billet).toItem().setUnlocalizedName("rbmk_pellet_men").setTextureName(RefStrings.MODID + ":rbmk_pellet_men");
|
||||
rbmk_pellet_mox = (ItemRBMKPellet) new ItemRBMKPellet("Mixed LEU & LEP Oxide").addRadiation(ItemHazard.mox * ItemHazard.billet).toItem().setUnlocalizedName("rbmk_pellet_mox").setTextureName(RefStrings.MODID + ":rbmk_pellet_mox");
|
||||
rbmk_pellet_les = (ItemRBMKPellet) new ItemRBMKPellet("Low Enriched Schrabidium-326").addRadiation(ItemHazard.saf * ItemHazard.billet).toItem().setUnlocalizedName("rbmk_pellet_les").setTextureName(RefStrings.MODID + ":rbmk_pellet_les");
|
||||
rbmk_pellet_mes = (ItemRBMKPellet) new ItemRBMKPellet("Medium Enriched Schrabidium-326").addRadiation(ItemHazard.saf * ItemHazard.billet).toItem().setUnlocalizedName("rbmk_pellet_mes").setTextureName(RefStrings.MODID + ":rbmk_pellet_mes");
|
||||
rbmk_pellet_hes = (ItemRBMKPellet) new ItemRBMKPellet("Highly Enriched Schrabidium-326").addRadiation(ItemHazard.saf * ItemHazard.billet).toItem().setUnlocalizedName("rbmk_pellet_hes").setTextureName(RefStrings.MODID + ":rbmk_pellet_hes");
|
||||
rbmk_pellet_leaus = (ItemRBMKPellet) new ItemRBMKPellet("Low Enriched Australium (Tasmanite)").setUnlocalizedName("rbmk_pellet_leaus").setTextureName(RefStrings.MODID + ":rbmk_pellet_leaus");
|
||||
rbmk_pellet_heaus = (ItemRBMKPellet) new ItemRBMKPellet("Highly Enriched Australium (Ayerite)").setUnlocalizedName("rbmk_pellet_heaus").setTextureName(RefStrings.MODID + ":rbmk_pellet_heaus");
|
||||
rbmk_pellet_po210be = (ItemRBMKPellet) new ItemRBMKPellet("Polonium-210 & Beryllium Neutron Source").addRadiation(ItemHazard.pobe * ItemHazard.billet).toItem().setUnlocalizedName("rbmk_pellet_po210be").setTextureName(RefStrings.MODID + ":rbmk_pellet_po210be");
|
||||
rbmk_pellet_pu238be = (ItemRBMKPellet) new ItemRBMKPellet("Plutonium-238 & Beryllium Neutron Source").addRadiation(ItemHazard.pube * ItemHazard.billet).toItem().setUnlocalizedName("rbmk_pellet_pu238be").setTextureName(RefStrings.MODID + ":rbmk_pellet_pu238be");
|
||||
rbmk_pellet_balefire_gold = (ItemRBMKPellet) new ItemRBMKPellet("Antihydrogen in a Magnetized Gold-198 Lattice").addRadiation(ItemHazard.au198 * ItemHazard.billet).toItem().setUnlocalizedName("rbmk_pellet_balefire_gold").setTextureName(RefStrings.MODID + ":rbmk_pellet_balefire_gold");
|
||||
rbmk_pellet_balefire = (ItemRBMKPellet) new ItemRBMKPellet("Draconic Flames").addRadiation(100000).toItem().setUnlocalizedName("rbmk_pellet_balefire").setTextureName(RefStrings.MODID + ":rbmk_pellet_balefire");
|
||||
rbmk_pellet_drx = (ItemRBMKPellet) new ItemRBMKPellet(EnumChatFormatting.OBFUSCATED + "can't you hear, can't you hear the thunder?").addRadiation(12500).addDigamma(0.0125F).toItem().setUnlocalizedName("rbmk_pellet_drx").setTextureName(RefStrings.MODID + ":rbmk_pellet_drx");
|
||||
|
||||
rbmk_fuel_empty = new Item().setUnlocalizedName("rbmk_fuel_empty").setMaxStackSize(1).setCreativeTab(MainRegistry.controlTab).setTextureName(RefStrings.MODID + ":rbmk_fuel_empty");
|
||||
rbmk_fuel_meu = new ItemRBMKRod("Medium Enriched Uranium-235")
|
||||
rbmk_fuel_ueu = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_ueu)
|
||||
.setYield(100000000D)
|
||||
.setStats(10)
|
||||
.setMeltingPoint(2865)
|
||||
.addRadiation(ItemHazard.u * ItemHazard.rod_rbmk).toItem()
|
||||
.setUnlocalizedName("rbmk_fuel_ueu").setTextureName(RefStrings.MODID + ":rbmk_fuel_ueu");
|
||||
rbmk_fuel_meu = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_meu)
|
||||
.setYield(100000000D)
|
||||
.setStats(100)
|
||||
.setMeltingPoint(2000)
|
||||
.setMeltingPoint(2865)
|
||||
.addRadiation(ItemHazard.uf * ItemHazard.rod_rbmk).toItem()
|
||||
.setUnlocalizedName("rbmk_fuel_meu").setTextureName(RefStrings.MODID + ":rbmk_fuel_meu");
|
||||
rbmk_fuel_thmeu = new ItemRBMKRod("Thorium with MEU Driver Fuel")
|
||||
rbmk_fuel_thmeu = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_thmeu)
|
||||
.setYield(100000000D)
|
||||
.setStats(50)
|
||||
.setMeltingPoint(2000)
|
||||
.setMeltingPoint(3350)
|
||||
.addRadiation(ItemHazard.thf * ItemHazard.rod_rbmk).toItem()
|
||||
.setUnlocalizedName("rbmk_fuel_thmeu").setTextureName(RefStrings.MODID + ":rbmk_fuel_thmeu");
|
||||
rbmk_fuel_lep = new ItemRBMKRod("Low Enriched Plutonium-239")
|
||||
rbmk_fuel_lep = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_lep)
|
||||
.setYield(100000000D)
|
||||
.setStats(120)
|
||||
.setMeltingPoint(2000)
|
||||
.setMeltingPoint(2744)
|
||||
.addRadiation(ItemHazard.puf * ItemHazard.rod_rbmk).toItem()
|
||||
.setUnlocalizedName("rbmk_fuel_lep").setTextureName(RefStrings.MODID + ":rbmk_fuel_lep");
|
||||
rbmk_fuel_mep = new ItemRBMKRod("Medium Enriched Plutonium-239")
|
||||
rbmk_fuel_mep = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_mep)
|
||||
.setYield(100000000D)
|
||||
.setStats(150, 20)
|
||||
.setMeltingPoint(2000)
|
||||
.setMeltingPoint(2744)
|
||||
.addRadiation(ItemHazard.purg * ItemHazard.rod_rbmk).toItem()
|
||||
.setUnlocalizedName("rbmk_fuel_mep").setTextureName(RefStrings.MODID + ":rbmk_fuel_mep");
|
||||
rbmk_fuel_men = new ItemRBMKRod("Medium Enriched Neptunium-237")
|
||||
rbmk_fuel_men = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_men)
|
||||
.setYield(100000000D)
|
||||
.setStats(130)
|
||||
.setMeltingPoint(2000)
|
||||
.setMeltingPoint(2800)
|
||||
.setNeutronTypes(NType.FAST, NType.FAST)
|
||||
.addRadiation(ItemHazard.npf * ItemHazard.rod_rbmk).toItem()
|
||||
.setUnlocalizedName("rbmk_fuel_men").setTextureName(RefStrings.MODID + ":rbmk_fuel_men");
|
||||
rbmk_fuel_mox = new ItemRBMKRod("Mixed LEU & LEP Oxide")
|
||||
rbmk_fuel_mox = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_mox)
|
||||
.setYield(100000000D)
|
||||
.setStats(130)
|
||||
.setMeltingPoint(2000)
|
||||
.setMeltingPoint(2815)
|
||||
.addRadiation(ItemHazard.mox * ItemHazard.rod_rbmk).toItem()
|
||||
.setUnlocalizedName("rbmk_fuel_mox").setTextureName(RefStrings.MODID + ":rbmk_fuel_mox");
|
||||
rbmk_fuel_les = new ItemRBMKRod("Low Enriched Schrabidium-326")
|
||||
rbmk_fuel_les = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_les)
|
||||
.setYield(100000000D)
|
||||
.setStats(150)
|
||||
.setMeltingPoint(2000)
|
||||
.setMeltingPoint(2500)
|
||||
.addRadiation(ItemHazard.saf * ItemHazard.rod_rbmk).toItem()
|
||||
.setUnlocalizedName("rbmk_fuel_les").setTextureName(RefStrings.MODID + ":rbmk_fuel_les");
|
||||
rbmk_fuel_mes = new ItemRBMKRod("Medium Enriched Schrabidium-326")
|
||||
rbmk_fuel_mes = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_mes)
|
||||
.setYield(100000000D)
|
||||
.setStats(200)
|
||||
.setMeltingPoint(2000)
|
||||
.setMeltingPoint(2750)
|
||||
.addRadiation(ItemHazard.saf * ItemHazard.rod_rbmk).toItem()
|
||||
.setUnlocalizedName("rbmk_fuel_mes").setTextureName(RefStrings.MODID + ":rbmk_fuel_mes");
|
||||
rbmk_fuel_hes = new ItemRBMKRod("Highly Enriched Schrabidium-326")
|
||||
rbmk_fuel_hes = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_hes)
|
||||
.setYield(100000000D)
|
||||
.setStats(250)
|
||||
.setMeltingPoint(2000)
|
||||
.setMeltingPoint(3000)
|
||||
.addRadiation(ItemHazard.saf * ItemHazard.rod_rbmk).toItem()
|
||||
.setUnlocalizedName("rbmk_fuel_hes").setTextureName(RefStrings.MODID + ":rbmk_fuel_hes");
|
||||
rbmk_fuel_leaus = new ItemRBMKRod("Low Enriched Australium (Tasmanite)")
|
||||
rbmk_fuel_leaus = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_leaus)
|
||||
.setYield(100000000D)
|
||||
.setMeltingPoint(2000)
|
||||
.setMeltingPoint(7029)
|
||||
.setStats(100).setUnlocalizedName("rbmk_fuel_leaus").setTextureName(RefStrings.MODID + ":rbmk_fuel_leaus");
|
||||
rbmk_fuel_heaus = new ItemRBMKRod("Highly Enriched Australium (Ayerite)")
|
||||
rbmk_fuel_heaus = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_heaus)
|
||||
.setYield(100000000D)
|
||||
.setMeltingPoint(2000)
|
||||
.setMeltingPoint(5211)
|
||||
.setStats(100).setUnlocalizedName("rbmk_fuel_heaus").setTextureName(RefStrings.MODID + ":rbmk_fuel_heaus");
|
||||
rbmk_fuel_po210be = new ItemRBMKRod("Polonium-210 & Beryllium Neutron Source")
|
||||
rbmk_fuel_po210be = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_po210be)
|
||||
.setYield(100000000D)
|
||||
.setStats(70, 50)
|
||||
.setMeltingPoint(2000)
|
||||
.setMeltingPoint(1287)
|
||||
.addRadiation(ItemHazard.pobe * ItemHazard.rod_rbmk).toItem()
|
||||
.setUnlocalizedName("rbmk_fuel_po210be").setTextureName(RefStrings.MODID + ":rbmk_fuel_po210be");
|
||||
rbmk_fuel_pu238be = new ItemRBMKRod("Plutonium-238 & Beryllium Neutron Source")
|
||||
rbmk_fuel_pu238be = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_pu238be)
|
||||
.setYield(100000000D)
|
||||
.setStats(60, 35)
|
||||
.setMeltingPoint(2000)
|
||||
.setMeltingPoint(1287)
|
||||
.addRadiation(ItemHazard.pube * ItemHazard.rod_rbmk).toItem()
|
||||
.setUnlocalizedName("rbmk_fuel_pu238be").setTextureName(RefStrings.MODID + ":rbmk_fuel_pu238be");
|
||||
rbmk_fuel_balefire = new ItemRBMKRod("Draconic Flames")
|
||||
rbmk_fuel_balefire_gold = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_balefire_gold)
|
||||
.setYield(100000000D)
|
||||
.setStats(10, 50)
|
||||
.setMeltingPoint(2000)
|
||||
.addRadiation(ItemHazard.au198 * ItemHazard.rod_rbmk).toItem()
|
||||
.setUnlocalizedName("rbmk_fuel_balefire_gold").setTextureName(RefStrings.MODID + ":rbmk_fuel_balefire_gold");
|
||||
rbmk_fuel_balefire = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_balefire)
|
||||
.setYield(100000000D)
|
||||
.setStats(300, 35)
|
||||
.setMeltingPoint(2000)
|
||||
.setMeltingPoint(3652)
|
||||
.addRadiation(800000F).toItem()
|
||||
.setUnlocalizedName("rbmk_fuel_balefire").setTextureName(RefStrings.MODID + ":rbmk_fuel_balefire");
|
||||
rbmk_fuel_drx = new ItemRBMKRod(EnumChatFormatting.OBFUSCATED + "can't you hear, can't you hear the thunder?")
|
||||
.setYield(100000000D)
|
||||
.setStats(60, 35)
|
||||
rbmk_fuel_drx = (ItemRBMKRod) new ItemRBMKRod(rbmk_pellet_drx)
|
||||
.setYield(1000000D)
|
||||
.setStats(10000)
|
||||
.setMeltingPoint(100000)
|
||||
.addDigamma(0.1F).toItem().setUnlocalizedName("rbmk_fuel_drx").setTextureName(RefStrings.MODID + ":rbmk_fuel_drx");
|
||||
|
||||
rbmk_pellet_meu = new ItemRBMKPellet("Medium Enriched Uranium-235").setUnlocalizedName("rbmk_pellet_meu").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":rbmk_pellet_meu");
|
||||
rbmk_pellet_thmeu = new ItemRBMKPellet("Thorium with MEU Driver Fuel").setUnlocalizedName("rbmk_pellet_thmeu").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":rbmk_pellet_thmeu");
|
||||
rbmk_pellet_lep = new ItemRBMKPellet("Low Enriched Plutonium-239").setUnlocalizedName("rbmk_pellet_lep").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":rbmk_pellet_lep");
|
||||
rbmk_pellet_mep = new ItemRBMKPellet("Medium Enriched Plutonium-239").setUnlocalizedName("rbmk_pellet_mep").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":rbmk_pellet_mep");
|
||||
rbmk_pellet_men = new ItemRBMKPellet("Medium Enriched Neptunium-237").setUnlocalizedName("rbmk_pellet_men").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":rbmk_pellet_men");
|
||||
rbmk_pellet_mox = new ItemRBMKPellet("Mixed LEU & LEP Oxide").setUnlocalizedName("rbmk_pellet_mox").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":rbmk_pellet_mox");
|
||||
rbmk_pellet_les = new ItemRBMKPellet("Low Enriched Schrabidium-326").setUnlocalizedName("rbmk_pellet_les").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":rbmk_pellet_les");
|
||||
rbmk_pellet_mes = new ItemRBMKPellet("Medium Enriched Schrabidium-326").setUnlocalizedName("rbmk_pellet_mes").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":rbmk_pellet_mes");
|
||||
rbmk_pellet_hes = new ItemRBMKPellet("Highly Enriched Schrabidium-326").setUnlocalizedName("rbmk_pellet_hes").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":rbmk_pellet_hes");
|
||||
rbmk_pellet_leaus = new ItemRBMKPellet("Low Enriched Australium (Tasmanite)").setUnlocalizedName("rbmk_pellet_leaus").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":rbmk_pellet_leaus");
|
||||
rbmk_pellet_heaus = new ItemRBMKPellet("Highly Enriched Australium (Ayerite)").setUnlocalizedName("rbmk_pellet_heaus").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":rbmk_pellet_heaus");
|
||||
rbmk_pellet_balefire = new ItemRBMKPellet("Draconic Flames").setUnlocalizedName("rbmk_pellet_balefire").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":rbmk_pellet_balefire");
|
||||
rbmk_pellet_drx = new ItemRBMKPellet(EnumChatFormatting.OBFUSCATED + "can't you hear, can't you hear the thunder?").setUnlocalizedName("rbmk_pellet_drx").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":rbmk_pellet_drx");
|
||||
|
||||
trinitite = new ItemHazard().addRadiation(ItemHazard.trn * ItemHazard.ingot).toItem().setUnlocalizedName("trinitite").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":trinitite_new");
|
||||
nuclear_waste_long = new ItemHazard(5F).setUnlocalizedName("nuclear_waste_long").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":nuclear_waste_long");
|
||||
nuclear_waste_long_tiny = new ItemHazard(0.5F).setUnlocalizedName("nuclear_waste_long_tiny").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":nuclear_waste_long_tiny");
|
||||
@ -4121,6 +4151,7 @@ public class ModItems {
|
||||
meteor_remote = new ItemMeteorRemote().setUnlocalizedName("meteor_remote").setMaxStackSize(1).setFull3D().setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":meteor_remote");
|
||||
spawn_chopper = new ItemChopper().setUnlocalizedName("chopper").setMaxStackSize(1).setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":chopper");
|
||||
spawn_worm = new ItemChopper().setUnlocalizedName("spawn_worm").setMaxStackSize(1).setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":spawn_worm");
|
||||
spawn_ufo = new ItemChopper().setUnlocalizedName("spawn_ufo").setMaxStackSize(1).setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":spawn_ufo");
|
||||
linker = new ItemTeleLink().setUnlocalizedName("linker").setMaxStackSize(1).setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":linker");
|
||||
reactor_sensor = new ItemReactorSensor().setUnlocalizedName("reactor_sensor").setMaxStackSize(1).setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":reactor_sensor");
|
||||
oil_detector = new ItemOilDetector().setUnlocalizedName("oil_detector").setMaxStackSize(1).setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":oil_detector");
|
||||
@ -5040,6 +5071,7 @@ public class ModItems {
|
||||
GameRegistry.registerItem(billet_po210be, billet_po210be.getUnlocalizedName());
|
||||
GameRegistry.registerItem(billet_pu238be, billet_pu238be.getUnlocalizedName());
|
||||
GameRegistry.registerItem(billet_yharonite, billet_yharonite.getUnlocalizedName());
|
||||
GameRegistry.registerItem(billet_balefire_gold, billet_balefire_gold.getUnlocalizedName());
|
||||
|
||||
//Dusts & Other
|
||||
GameRegistry.registerItem(cinnebar, cinnebar.getUnlocalizedName());
|
||||
@ -5065,6 +5097,8 @@ public class ModItems {
|
||||
GameRegistry.registerItem(powder_polonium, powder_polonium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_co60, powder_co60.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_i131, powder_i131.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_xe135, powder_xe135.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_xe135_tiny, powder_xe135_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_cs137, powder_cs137.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_au198, powder_au198.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_at209, powder_at209.getUnlocalizedName());
|
||||
@ -5075,6 +5109,7 @@ public class ModItems {
|
||||
GameRegistry.registerItem(powder_tungsten, powder_tungsten.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_aluminium, powder_aluminium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_steel, powder_steel.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_steel_tiny, powder_steel_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_lead, powder_lead.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_yellowcake, powder_yellowcake.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_beryllium, powder_beryllium.getUnlocalizedName());
|
||||
@ -5086,11 +5121,13 @@ public class ModItems {
|
||||
GameRegistry.registerItem(powder_chlorophyte, powder_chlorophyte.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_combine_steel, powder_combine_steel.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_lithium, powder_lithium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_lithium_tiny, powder_lithium_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_zirconium, powder_zirconium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_lignite, powder_lignite.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_iodine, powder_iodine.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_thorium, powder_thorium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_neodymium, powder_neodymium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_neodymium_tiny, powder_neodymium_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_astatine, powder_astatine.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_caesium, powder_caesium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_australium, powder_australium.getUnlocalizedName());
|
||||
@ -5101,13 +5138,19 @@ public class ModItems {
|
||||
GameRegistry.registerItem(powder_verticium, powder_verticium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_strontium, powder_strontium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_cobalt, powder_cobalt.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_cobalt_tiny, powder_cobalt_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_bromine, powder_bromine.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_niobium, powder_niobium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_niobium_tiny, powder_niobium_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_tennessine, powder_tennessine.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_cerium, powder_cerium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_cerium_tiny, powder_cerium_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_lanthanium, powder_lanthanium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_lanthanium_tiny, powder_lanthanium_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_actinium, powder_actinium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_actinium_tiny, powder_actinium_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_boron, powder_boron.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_boron_tiny, powder_boron_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_asbestos, powder_asbestos.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_magic, powder_magic.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_cloud, powder_cloud.getUnlocalizedName());
|
||||
@ -5119,21 +5162,12 @@ public class ModItems {
|
||||
GameRegistry.registerItem(powder_nitan_mix, powder_nitan_mix.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_spark_mix, powder_spark_mix.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_meteorite, powder_meteorite.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_meteorite_tiny, powder_meteorite_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_euphemium, powder_euphemium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_dineutronium, powder_dineutronium.getUnlocalizedName());
|
||||
GameRegistry.registerItem(redstone_depleted, redstone_depleted.getUnlocalizedName());
|
||||
GameRegistry.registerItem(dust, dust.getUnlocalizedName());
|
||||
GameRegistry.registerItem(fallout, fallout.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_steel_tiny, powder_steel_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_lithium_tiny, powder_lithium_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_neodymium_tiny, powder_neodymium_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_cobalt_tiny, powder_cobalt_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_niobium_tiny, powder_niobium_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_cerium_tiny, powder_cerium_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_lanthanium_tiny, powder_lanthanium_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_actinium_tiny, powder_actinium_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_boron_tiny, powder_boron_tiny.getUnlocalizedName());
|
||||
GameRegistry.registerItem(powder_meteorite_tiny, powder_meteorite_tiny.getUnlocalizedName());
|
||||
|
||||
//Powders
|
||||
GameRegistry.registerItem(powder_fire, powder_fire.getUnlocalizedName());
|
||||
@ -5936,6 +5970,7 @@ public class ModItems {
|
||||
|
||||
GameRegistry.registerItem(rbmk_lid, rbmk_lid.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_fuel_empty, rbmk_fuel_empty.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_fuel_ueu, rbmk_fuel_ueu.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_fuel_meu, rbmk_fuel_meu.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_fuel_thmeu, rbmk_fuel_thmeu.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_fuel_lep, rbmk_fuel_lep.getUnlocalizedName());
|
||||
@ -5949,9 +5984,11 @@ public class ModItems {
|
||||
GameRegistry.registerItem(rbmk_fuel_heaus, rbmk_fuel_heaus.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_fuel_po210be, rbmk_fuel_po210be.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_fuel_pu238be, rbmk_fuel_pu238be.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_fuel_balefire_gold, rbmk_fuel_balefire_gold.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_fuel_balefire, rbmk_fuel_balefire.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_fuel_drx, rbmk_fuel_drx.getUnlocalizedName());
|
||||
|
||||
GameRegistry.registerItem(rbmk_pellet_ueu, rbmk_pellet_ueu.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_pellet_meu, rbmk_pellet_meu.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_pellet_thmeu, rbmk_pellet_thmeu.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_pellet_lep, rbmk_pellet_lep.getUnlocalizedName());
|
||||
@ -5965,6 +6002,9 @@ public class ModItems {
|
||||
GameRegistry.registerItem(rbmk_pellet_hes, rbmk_pellet_hes.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_pellet_leaus, rbmk_pellet_leaus.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_pellet_heaus, rbmk_pellet_heaus.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_pellet_po210be, rbmk_pellet_po210be.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_pellet_pu238be, rbmk_pellet_pu238be.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_pellet_balefire_gold, rbmk_pellet_balefire_gold.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_pellet_balefire, rbmk_pellet_balefire.getUnlocalizedName());
|
||||
GameRegistry.registerItem(rbmk_pellet_drx, rbmk_pellet_drx.getUnlocalizedName());
|
||||
|
||||
|
||||
@ -1,7 +1,11 @@
|
||||
package com.hbm.items.block;
|
||||
|
||||
import com.hbm.blocks.generic.BlockConcreteColored;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemDye;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ItemBlockColored extends ItemBlock {
|
||||
|
||||
@ -14,4 +18,8 @@ public class ItemBlockColored extends ItemBlock {
|
||||
public int getMetadata(int meta) {
|
||||
return meta;
|
||||
}
|
||||
|
||||
public String getUnlocalizedName(ItemStack stack) {
|
||||
return super.getUnlocalizedName() + "." + ItemDye.field_150923_a[BlockConcreteColored.func_150032_b(stack.getItemDamage())];
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,24 +2,35 @@ package com.hbm.items.machine;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.hbm.interfaces.IItemHazard;
|
||||
import com.hbm.main.MainRegistry;
|
||||
import com.hbm.modules.ItemHazardModule;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class ItemRBMKPellet extends Item {
|
||||
public class ItemRBMKPellet extends Item implements IItemHazard {
|
||||
|
||||
public String fullName = "";
|
||||
ItemHazardModule module;
|
||||
|
||||
public ItemRBMKPellet(String fullName) {
|
||||
this.fullName = fullName;
|
||||
this.setHasSubtypes(true);
|
||||
this.setMaxDamage(0);
|
||||
this.setCreativeTab(MainRegistry.controlTab);
|
||||
this.module = new ItemHazardModule();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -60,8 +71,9 @@ public class ItemRBMKPellet extends Item {
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool) {
|
||||
super.addInformation(stack, player, list, bool);
|
||||
|
||||
|
||||
list.add(EnumChatFormatting.ITALIC + this.fullName);
|
||||
list.add(EnumChatFormatting.DARK_GRAY + "" + EnumChatFormatting.ITALIC + "Pellet for recycling");
|
||||
|
||||
int meta = rectify(stack.getItemDamage());
|
||||
|
||||
@ -75,6 +87,9 @@ public class ItemRBMKPellet extends Item {
|
||||
|
||||
if(hasXenon(meta))
|
||||
list.add(EnumChatFormatting.DARK_PURPLE + "High Xenon Poison");
|
||||
|
||||
updateModule(stack);
|
||||
this.module.addInformation(stack, player, list, bool);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -97,4 +112,39 @@ public class ItemRBMKPellet extends Item {
|
||||
private int rectify(int meta) {
|
||||
return Math.abs(meta) % 10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemHazardModule getModule() {
|
||||
return this.module;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUpdate(ItemStack stack, World world, Entity entity, int i, boolean b) {
|
||||
|
||||
if(entity instanceof EntityLivingBase) {
|
||||
updateModule(stack);
|
||||
this.module.applyEffects((EntityLivingBase) entity, stack.stackSize, i, b);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onEntityItemUpdate(EntityItem item) {
|
||||
|
||||
super.onEntityItemUpdate(item);
|
||||
updateModule(item.getEntityItem());
|
||||
return this.module.onEntityItemUpdate(item);
|
||||
}
|
||||
|
||||
private void updateModule(ItemStack stack) {
|
||||
|
||||
int index = stack.getItemDamage() % 5;
|
||||
float mod = (index * index) / 5F;
|
||||
|
||||
if(stack.getItemDamage() >= 5) {
|
||||
mod *= 10F;
|
||||
mod += 1F;
|
||||
}
|
||||
|
||||
this.module.setMod(1F + mod);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,21 +2,27 @@ package com.hbm.items.machine;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.hbm.interfaces.IItemHazard;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.items.special.ItemHazard;
|
||||
import com.hbm.main.MainRegistry;
|
||||
import com.hbm.modules.ItemHazardModule;
|
||||
import com.hbm.tileentity.machine.rbmk.IRBMKFluxReceiver.NType;
|
||||
import com.hbm.tileentity.machine.rbmk.RBMKDials;
|
||||
import com.hbm.util.I18nUtil;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class ItemRBMKRod extends ItemHazard {
|
||||
public class ItemRBMKRod extends Item implements IItemHazard {
|
||||
|
||||
public ItemRBMKPellet pellet;
|
||||
public String fullName = ""; //full name of the fuel rod
|
||||
public double funcEnd; //endpoint of the function
|
||||
public double selfRate; //self-inflicted flux from self-igniting fuels
|
||||
@ -49,7 +55,13 @@ public class ItemRBMKRod extends ItemHazard {
|
||||
* i drew a fuel rod yay
|
||||
*/
|
||||
|
||||
public ItemRBMKRod(ItemRBMKPellet pellet) {
|
||||
this(pellet.fullName);
|
||||
this.pellet = pellet;
|
||||
}
|
||||
|
||||
public ItemRBMKRod(String fullName) {
|
||||
this.module = new ItemHazardModule();
|
||||
|
||||
this.fullName = fullName;
|
||||
|
||||
@ -137,7 +149,7 @@ public class ItemRBMKRod extends ItemHazard {
|
||||
* Heat up the core based on the outFlux, then move some heat to the hull
|
||||
* @param stack
|
||||
*/
|
||||
public void updateHeat(World world, ItemStack stack) {
|
||||
public void updateHeat(World world, ItemStack stack, double mod) {
|
||||
|
||||
double coreHeat = this.getCoreHeat(stack);
|
||||
double hullHeat = this.getHullHeat(stack);
|
||||
@ -146,8 +158,8 @@ public class ItemRBMKRod extends ItemHazard {
|
||||
|
||||
double mid = (coreHeat - hullHeat) / 2D;
|
||||
|
||||
coreHeat -= mid * this.diffusion * RBMKDials.getFuelDiffusionMod(world);
|
||||
hullHeat += mid * this.diffusion * RBMKDials.getFuelDiffusionMod(world);
|
||||
coreHeat -= mid * this.diffusion * RBMKDials.getFuelDiffusionMod(world) * mod;
|
||||
hullHeat += mid * this.diffusion * RBMKDials.getFuelDiffusionMod(world) * mod;
|
||||
|
||||
this.setCoreHeat(stack, coreHeat);
|
||||
this.setHullHeat(stack, hullHeat);
|
||||
@ -159,7 +171,7 @@ public class ItemRBMKRod extends ItemHazard {
|
||||
* @param stack
|
||||
* @return
|
||||
*/
|
||||
public double provideHeat(World world, ItemStack stack, double heat) {
|
||||
public double provideHeat(World world, ItemStack stack, double heat, double mod) {
|
||||
|
||||
double hullHeat = this.getHullHeat(stack);
|
||||
|
||||
@ -179,7 +191,7 @@ public class ItemRBMKRod extends ItemHazard {
|
||||
|
||||
double ret = (hullHeat - heat) / 2;
|
||||
|
||||
ret *= RBMKDials.getFuelHeatProvision(world);
|
||||
ret *= RBMKDials.getFuelHeatProvision(world) * mod;
|
||||
|
||||
hullHeat -= ret;
|
||||
this.setHullHeat(stack, hullHeat);
|
||||
@ -287,6 +299,38 @@ public class ItemRBMKRod extends ItemHazard {
|
||||
list.add(EnumChatFormatting.DARK_RED + "Melting point: " + meltingPoint + "°C");*/
|
||||
|
||||
super.addInformation(stack, player, list, bool);
|
||||
updateModule(stack);
|
||||
this.module.addInformation(stack, player, list, bool);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUpdate(ItemStack stack, World world, Entity entity, int i, boolean b) {
|
||||
|
||||
if(entity instanceof EntityLivingBase) {
|
||||
updateModule(stack);
|
||||
this.module.applyEffects((EntityLivingBase) entity, stack.stackSize, i, b);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onEntityItemUpdate(EntityItem item) {
|
||||
|
||||
super.onEntityItemUpdate(item);
|
||||
updateModule(item.getEntityItem());
|
||||
return this.module.onEntityItemUpdate(item);
|
||||
}
|
||||
|
||||
ItemHazardModule module;
|
||||
|
||||
@Override
|
||||
public ItemHazardModule getModule() {
|
||||
return this.module;
|
||||
}
|
||||
|
||||
private void updateModule(ItemStack stack) {
|
||||
|
||||
float mod = (float)(1 + (1 - this.getEnrichment(stack)) * 24 + this.getPoisonLevel(stack) * 100);
|
||||
this.module.setMod(mod);
|
||||
}
|
||||
|
||||
/* __ __ ____ ________
|
||||
|
||||
@ -3,6 +3,7 @@ package com.hbm.items.special;
|
||||
import java.util.List;
|
||||
|
||||
import com.hbm.entity.mob.EntityHunterChopper;
|
||||
import com.hbm.entity.mob.EntityUFO;
|
||||
import com.hbm.entity.mob.botprime.EntityBOTPrimeHead;
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
@ -109,6 +110,9 @@ public class ItemChopper extends Item {
|
||||
if(this == ModItems.spawn_worm)
|
||||
entity = new EntityBOTPrimeHead(world);
|
||||
|
||||
if(this == ModItems.spawn_ufo)
|
||||
entity = new EntityUFO(world);
|
||||
|
||||
if(entity != null) {
|
||||
|
||||
EntityLiving entityliving = (EntityLiving) entity;
|
||||
|
||||
@ -16,6 +16,7 @@ public class ItemHazard extends ItemCustomLore implements IItemHazard {
|
||||
|
||||
//CO60 5a α 030.00Rad/s Spicy
|
||||
//I181 192h α 150.00Rad/s 2 much spice :(
|
||||
//XE135 9h α aaaaaaaaaaaaaaaa
|
||||
//CS137 30a α 020.00Rad/s Spicy
|
||||
//AU192 64h α 500.00Rad/s 2 much spice :(
|
||||
//AT209 5h α like 2k or sth idk bruv
|
||||
@ -31,6 +32,7 @@ public class ItemHazard extends ItemCustomLore implements IItemHazard {
|
||||
|
||||
public static final float co60 = 30.0F;
|
||||
public static final float i131 = 150.0F;
|
||||
public static final float xe135 = 1250.0F;
|
||||
public static final float cs137 = 20.0F;
|
||||
public static final float au198 = 500.0F;
|
||||
public static final float at209 = 2000.0F;
|
||||
@ -67,6 +69,7 @@ public class ItemHazard extends ItemCustomLore implements IItemHazard {
|
||||
public static final float nugget = 0.1F;
|
||||
public static final float ingot = 1.0F;
|
||||
public static final float powder = ingot;
|
||||
public static final float powder_tiny = nugget;
|
||||
public static final float block = 10.0F;
|
||||
public static final float crystal = block;
|
||||
public static final float billet = 0.5F;
|
||||
|
||||
@ -165,24 +165,6 @@ public class HbmWorldGen implements IWorldGenerator {
|
||||
DepthDeposit.generateCondition(world, i, 0, 3, j, 5, 0.8D, ModBlocks.ore_depth_cinnebar, rand, 16);
|
||||
DepthDeposit.generateCondition(world, i, 0, 3, j, 5, 0.8D, ModBlocks.ore_depth_zirconium, rand, 16);
|
||||
|
||||
for (int k = 0; k < 6; k++) {
|
||||
int randPosX = i + rand.nextInt(16);
|
||||
int randPosY = rand.nextInt(35);
|
||||
int randPosZ = j + rand.nextInt(16);
|
||||
|
||||
if(randPosX <= 50 && randPosX >= -50 && randPosZ <= 50 && randPosZ >= -50)
|
||||
(new WorldGenMinable(ModBlocks.ore_reiium, 12)).generate(world, rand, randPosX, randPosY, randPosZ);
|
||||
}
|
||||
|
||||
for (int k = 0; k < 80; k++) {
|
||||
int randPosX = i + rand.nextInt(16);
|
||||
int randPosY = rand.nextInt(128);
|
||||
int randPosZ = j + rand.nextInt(16);
|
||||
|
||||
if(randPosX <= 250 && randPosX >= 150 && randPosZ <= 250 && randPosZ >= 150)
|
||||
(new WorldGenMinable(ModBlocks.ore_unobtainium, 4)).generate(world, rand, randPosX, randPosY, randPosZ);
|
||||
}
|
||||
|
||||
for (int k = 0; k < rand.nextInt(4); k++) {
|
||||
int randPosX = i + rand.nextInt(16);
|
||||
int randPosY = rand.nextInt(15) + 15;
|
||||
@ -192,33 +174,6 @@ public class HbmWorldGen implements IWorldGenerator {
|
||||
(new WorldGenMinable(ModBlocks.ore_australium, 50)).generate(world, rand, randPosX, randPosY, randPosZ);
|
||||
}
|
||||
|
||||
for (int k = 0; k < 12; k++) {
|
||||
int randPosX = i + rand.nextInt(16);
|
||||
int randPosY = rand.nextInt(25);
|
||||
int randPosZ = j + rand.nextInt(16);
|
||||
|
||||
if(randPosX <= 50 && randPosX >= -50 && randPosZ <= 350 && randPosZ >= 250)
|
||||
(new WorldGenMinable(ModBlocks.ore_weidanium, 6)).generate(world, rand, randPosX, randPosY, randPosZ);
|
||||
}
|
||||
|
||||
for (int k = 0; k < 24; k++) {
|
||||
int randPosX = i + rand.nextInt(16);
|
||||
int randPosY = rand.nextInt(10);
|
||||
int randPosZ = j + rand.nextInt(16);
|
||||
|
||||
if(randPosX <= 450 && randPosX >= 350 && randPosZ <= -150 && randPosZ >= -250)
|
||||
(new WorldGenMinable(ModBlocks.ore_daffergon, 16)).generate(world, rand, randPosX, randPosY, randPosZ);
|
||||
}
|
||||
|
||||
for (int k = 0; k < 12; k++) {
|
||||
int randPosX = i + rand.nextInt(16);
|
||||
int randPosY = rand.nextInt(25) + 25;
|
||||
int randPosZ = j + rand.nextInt(16);
|
||||
|
||||
if(randPosX <= -250 && randPosX >= -350 && randPosZ <= 250 && randPosZ >= 150)
|
||||
(new WorldGenMinable(ModBlocks.ore_verticium, 16)).generate(world, rand, randPosX, randPosY, randPosZ);
|
||||
}
|
||||
|
||||
if (GeneralConfig.enableDungeons) {
|
||||
|
||||
BiomeGenBase biome = world.getWorldChunkManager().getBiomeGenAt(i, j);
|
||||
|
||||
@ -71,7 +71,7 @@ public class ModDamageSource extends DamageSource {
|
||||
{
|
||||
return (new EntityDamageSourceIndirect("tau", p_76353_0_, p_76353_1_)).setProjectile().setDamageBypassesArmor();
|
||||
}
|
||||
public static DamageSource causeCombineDamage(EntityCombineBall p_76353_0_, Entity p_76353_1_)
|
||||
public static DamageSource causeCombineDamage(Entity p_76353_0_, Entity p_76353_1_)
|
||||
{
|
||||
return (new EntityDamageSourceIndirect("cmb", p_76353_0_, p_76353_1_)).setProjectile().setDamageBypassesArmor();
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@ package com.hbm.lib;
|
||||
public class RefStrings {
|
||||
public static final String MODID = "hbm";
|
||||
public static final String NAME = "Hbm's Nuclear Tech Mod";
|
||||
public static final String VERSION = "1.0.27 BETA (3871)";
|
||||
public static final String VERSION = "1.0.27 BETA (3878)";
|
||||
//HBM's Beta Naming Convention:
|
||||
//V T (X)
|
||||
//V -> next release version
|
||||
|
||||
@ -504,6 +504,7 @@ public class ClientProxy extends ServerProxy {
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityFBI.class, new RenderFBI());
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityRADBeast.class, new RenderRADBeast());
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityBlockSpider.class, new RenderBlockSpider());
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityUFO.class, new RenderUFO());
|
||||
//"particles"
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntitySmokeFX.class, new MultiCloudRenderer(new Item[] { ModItems.smoke1, ModItems.smoke2, ModItems.smoke3, ModItems.smoke4, ModItems.smoke5, ModItems.smoke6, ModItems.smoke7, ModItems.smoke8 }));
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityBSmokeFX.class, new MultiCloudRenderer(new Item[] { ModItems.b_smoke1, ModItems.b_smoke2, ModItems.b_smoke3, ModItems.b_smoke4, ModItems.b_smoke5, ModItems.b_smoke6, ModItems.b_smoke7, ModItems.b_smoke8 }));
|
||||
@ -1152,6 +1153,12 @@ public class ClientProxy extends ServerProxy {
|
||||
player.attackedAtYaw = 0F;
|
||||
}
|
||||
|
||||
if("ufo".equals(type)) {
|
||||
|
||||
ParticleMukeCloud cloud = new ParticleMukeCloud(man, world, x, y, z, 0, 0, 0);
|
||||
Minecraft.getMinecraft().effectRenderer.addEffect(cloud);
|
||||
}
|
||||
|
||||
if("justTilt".equals(type)) {
|
||||
|
||||
player.hurtTime = player.maxHurtTime = data.getInteger("time");
|
||||
|
||||
@ -5,14 +5,8 @@ import java.util.List;
|
||||
|
||||
import com.hbm.blocks.ModBlocks;
|
||||
import com.hbm.config.GeneralConfig;
|
||||
import com.hbm.crafting.ArmorRecipes;
|
||||
import com.hbm.crafting.ConsumableRecipes;
|
||||
import com.hbm.crafting.MineralRecipes;
|
||||
import com.hbm.crafting.PowderRecipes;
|
||||
import com.hbm.crafting.RodRecipes;
|
||||
import com.hbm.crafting.ToolRecipes;
|
||||
import com.hbm.crafting.WeaponRecipes;
|
||||
import com.hbm.crafting.handlers.TestCraftingHandler;
|
||||
import com.hbm.crafting.*;
|
||||
import com.hbm.crafting.handlers.*;
|
||||
import com.hbm.handler.FluidTypeHandler.FluidType;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.items.machine.ItemBattery;
|
||||
@ -48,7 +42,8 @@ public class CraftingManager {
|
||||
PowderRecipes.register();
|
||||
|
||||
|
||||
GameRegistry.addRecipe(new TestCraftingHandler(new ItemStack(ModItems.lignite), new ItemStack(ModItems.powder_coal, 3)));
|
||||
GameRegistry.addRecipe(new TestCraftingHandler(new ItemStack(ModItems.lignite), new ItemStack(ModItems.powder_coal, 1)));
|
||||
GameRegistry.addRecipe(new RBMKFuelCraftingHandler());
|
||||
}
|
||||
|
||||
public static void AddCraftingRec() {
|
||||
@ -353,6 +348,13 @@ public class CraftingManager {
|
||||
GameRegistry.addRecipe(new ItemStack(ModBlocks.tile_lab_broken, 6), new Object[] { " C " , "C C", " C ", 'C', ModBlocks.tile_lab_cracked });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.asphalt_light, 1), new Object[] { ModBlocks.asphalt, Items.glowstone_dust });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.asphalt, 1), new Object[] { ModBlocks.asphalt_light });
|
||||
|
||||
for(int i = 0; i < 16; i++) {
|
||||
GameRegistry.addRecipe(new ItemStack(ModBlocks.concrete_colored, 8, i), new Object[] { "CCC", "CDC", "CCC", 'C', ModBlocks.concrete_smooth, 'D', new ItemStack(Items.dye, 1, 15 - i) });
|
||||
GameRegistry.addRecipe(new ItemStack(ModBlocks.concrete_colored, 8, i), new Object[] { "CCC", "CDC", "CCC", 'C', ModBlocks.concrete_colored, 'D', new ItemStack(Items.dye, 1, 15 - i) });
|
||||
}
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.concrete_smooth, 1), new Object[] { ModBlocks.concrete_colored });
|
||||
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.reinforced_brick), 8), new Object[] { "FBF", "BFB", "FBF", 'F', Blocks.iron_bars, 'B', ModBlocks.brick_concrete });
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.brick_compound), 8), new Object[] { "FBF", "BFB", "FBF", 'F', ModItems.bolt_tungsten, 'B', ModBlocks.reinforced_brick });
|
||||
@ -434,6 +436,8 @@ public class CraftingManager {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(ItemBattery.getFullBattery(ModItems.energy_core), new Object[] { "PCW", "TDR", "PCW", 'P', ModItems.plate_advanced_alloy, 'C', ModItems.coil_advanced_alloy, 'W', ModItems.wire_advanced_alloy, 'R', ModItems.cell_tritium, 'D', ModItems.cell_deuterium, 'T', "ingotTungsten" }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.hev_battery, 4), new Object[] { " W ", "IEI", "ICI", 'W', ModItems.wire_gold, 'I', ModItems.plate_polymer, 'E', Items.redstone, 'C', "dustCobalt" }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.hev_battery, 4), new Object[] { " W ", "ICI", "IEI", 'W', ModItems.wire_gold, 'I', ModItems.plate_polymer, 'E', Items.redstone, 'C', "dustCobalt" }));
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.hev_battery, 1), new Object[] { ModBlocks.hev_battery });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.hev_battery, 1), new Object[] { ModItems.hev_battery });
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(ItemBattery.getEmptyBattery(ModItems.battery_red_cell), new Object[] { "WBW", "PBP", "WBW", 'W', ModItems.wire_aluminium, 'P', "plateAluminum", 'B', ItemBattery.getEmptyBattery(ModItems.battery_generic) }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(ItemBattery.getEmptyBattery(ModItems.battery_advanced_cell), new Object[] { "WBW", "PBP", "WBW", 'W', ModItems.wire_red_copper, 'P', "plateCopper", 'B', ItemBattery.getEmptyBattery(ModItems.battery_advanced) }));
|
||||
@ -642,6 +646,7 @@ public class CraftingManager {
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.waste_trinitite_red), new Object[] { new ItemStack(Blocks.sand, 1, 1), ModItems.trinitite });
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModBlocks.sand_uranium, 8), new Object[] { "sand", "sand", "sand", "sand", "sand", "sand", "sand", "sand", "dustUranium" }));
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModBlocks.sand_polonium, 8), new Object[] { "sand", "sand", "sand", "sand", "sand", "sand", "sand", "sand", "dustPolonium" }));
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModBlocks.sand_boron, 8), new Object[] { "sand", "sand", "sand", "sand", "sand", "sand", "sand", "sand", "dustBoron" }));
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.rune_blank, 1), new Object[] { "PSP", "SDS", "PSP", 'P', ModItems.powder_magic, 'S', ModItems.ingot_starmetal, 'D', ModItems.dynosphere_dineutronium_charged });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.rune_isa, 1), new Object[] { ModItems.rune_blank, ModItems.powder_spark_mix, ModItems.singularity_counter_resonant });
|
||||
@ -880,17 +885,7 @@ public class CraftingManager {
|
||||
GameRegistry.addSmelting(Item.getItemFromBlock(ModBlocks.ore_gneiss_schrabidium), new ItemStack(ModItems.ingot_schrabidium), 256.0F);
|
||||
|
||||
GameRegistry.addSmelting(Item.getItemFromBlock(ModBlocks.ore_australium), new ItemStack(ModItems.nugget_australium), 2.5F);
|
||||
GameRegistry.addSmelting(Item.getItemFromBlock(ModBlocks.ore_weidanium), new ItemStack(ModItems.nugget_weidanium, 6), 16.0F);
|
||||
GameRegistry.addSmelting(Item.getItemFromBlock(ModBlocks.ore_reiium), new ItemStack(ModItems.ingot_reiium), 24.0F);
|
||||
GameRegistry.addSmelting(Item.getItemFromBlock(ModBlocks.ore_unobtainium), new ItemStack(ModItems.nugget_unobtainium, 4), 10.0F);
|
||||
GameRegistry.addSmelting(Item.getItemFromBlock(ModBlocks.ore_daffergon), new ItemStack(ModItems.nugget_daffergon, 3), 8.0F);
|
||||
GameRegistry.addSmelting(Item.getItemFromBlock(ModBlocks.ore_verticium), new ItemStack(ModItems.ingot_verticium), 24.0F);
|
||||
GameRegistry.addSmelting(ModItems.powder_australium, new ItemStack(ModItems.ingot_australium), 5.0F);
|
||||
GameRegistry.addSmelting(ModItems.powder_weidanium, new ItemStack(ModItems.ingot_weidanium), 5.0F);
|
||||
GameRegistry.addSmelting(ModItems.powder_reiium, new ItemStack(ModItems.ingot_reiium), 5.0F);
|
||||
GameRegistry.addSmelting(ModItems.powder_unobtainium, new ItemStack(ModItems.ingot_unobtainium), 5.0F);
|
||||
GameRegistry.addSmelting(ModItems.powder_daffergon, new ItemStack(ModItems.ingot_daffergon), 5.0F);
|
||||
GameRegistry.addSmelting(ModItems.powder_verticium, new ItemStack(ModItems.ingot_verticium), 5.0F);
|
||||
|
||||
GameRegistry.addSmelting(ModItems.powder_lead, new ItemStack(ModItems.ingot_lead), 1.0F);
|
||||
GameRegistry.addSmelting(ModItems.powder_neptunium, new ItemStack(ModItems.ingot_neptunium), 1.0F);
|
||||
@ -940,6 +935,7 @@ public class CraftingManager {
|
||||
GameRegistry.addSmelting(new ItemStack(ModBlocks.sand_polonium), new ItemStack(ModBlocks.glass_polonium), 0.75F);
|
||||
GameRegistry.addSmelting(new ItemStack(ModBlocks.waste_trinitite), new ItemStack(ModBlocks.glass_trinitite), 0.25F);
|
||||
GameRegistry.addSmelting(new ItemStack(ModBlocks.waste_trinitite_red), new ItemStack(ModBlocks.glass_trinitite), 0.25F);
|
||||
GameRegistry.addSmelting(new ItemStack(ModBlocks.sand_boron), new ItemStack(ModBlocks.glass_boron), 0.25F);
|
||||
|
||||
GameRegistry.addSmelting(ModItems.ingot_schraranium, new ItemStack(ModItems.nugget_schrabidium, 1), 2.0F);
|
||||
|
||||
|
||||
@ -638,6 +638,7 @@ public class MainRegistry {
|
||||
EntityRegistry.registerGlobalEntityID(EntityQuackos.class, "entity_elder_one", EntityRegistry.findGlobalUniqueEntityId(), 0xd0d0d0, 0xFFBF00);
|
||||
EntityRegistry.registerGlobalEntityID(EntityFBI.class, "entity_ntm_fbi", EntityRegistry.findGlobalUniqueEntityId(), 0x008000, 0x404040);
|
||||
EntityRegistry.registerGlobalEntityID(EntityRADBeast.class, "entity_ntm_radiation_blaze", EntityRegistry.findGlobalUniqueEntityId(), 0x303030, 0x008000);
|
||||
EntityRegistry.registerGlobalEntityID(EntityUFO.class, "entity_ntm_ufo", EntityRegistry.findGlobalUniqueEntityId(), 0x303030, 0x2D722D);
|
||||
|
||||
ForgeChunkManager.setForcedChunkLoadingCallback(this, new LoadingCallback() {
|
||||
|
||||
|
||||
@ -52,7 +52,6 @@ import com.hbm.util.ContaminationUtil;
|
||||
import com.hbm.util.EnchantmentUtil;
|
||||
import com.hbm.world.generator.TimedGenerator;
|
||||
|
||||
import api.hbm.entity.IRadiationImmune;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.PlayerEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent;
|
||||
@ -74,6 +73,7 @@ import net.minecraft.entity.passive.EntityMooshroom;
|
||||
import net.minecraft.entity.passive.EntityVillager;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import net.minecraft.event.ClickEvent;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
@ -84,6 +84,7 @@ import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.tileentity.TileEntitySign;
|
||||
import net.minecraft.util.ChatComponentText;
|
||||
import net.minecraft.util.ChatStyle;
|
||||
import net.minecraft.util.EntityDamageSource;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraft.util.FoodStats;
|
||||
@ -106,24 +107,31 @@ import net.minecraftforge.event.entity.player.PlayerInteractEvent;
|
||||
import net.minecraftforge.event.entity.player.PlayerInteractEvent.Action;
|
||||
import net.minecraftforge.event.world.BlockEvent.BreakEvent;
|
||||
|
||||
public class ModEventHandler
|
||||
{
|
||||
public class ModEventHandler {
|
||||
|
||||
public static int meteorShower = 0;
|
||||
static Random rand = new Random();
|
||||
|
||||
@SubscribeEvent
|
||||
public void onPlayerLogin(PlayerEvent.PlayerLoggedInEvent event) {
|
||||
|
||||
if(!event.player.worldObj.isRemote) {
|
||||
event.player.addChatMessage(new ChatComponentText("Loaded world with Hbm's Nuclear Tech Mod " + RefStrings.VERSION + " for Minecraft 1.7.10!"));
|
||||
|
||||
if(HTTPHandler.newVersion) {
|
||||
event.player.addChatMessage(new ChatComponentText(EnumChatFormatting.YELLOW + "New version " + HTTPHandler.versionNumber + " is available!"));
|
||||
}
|
||||
|
||||
if(MobConfig.enableDucks && event.player instanceof EntityPlayerMP && !event.player.getEntityData().getCompoundTag(EntityPlayer.PERSISTED_NBT_TAG).getBoolean("hasDucked"))
|
||||
PacketDispatcher.wrapper.sendTo(new PlayerInformPacket("Press O to Duck!"), (EntityPlayerMP)event.player);
|
||||
}
|
||||
public void onPlayerLogin(PlayerEvent.PlayerLoggedInEvent event) {
|
||||
|
||||
if(!event.player.worldObj.isRemote) {
|
||||
event.player.addChatMessage(new ChatComponentText("Loaded world with Hbm's Nuclear Tech Mod " + RefStrings.VERSION + " for Minecraft 1.7.10!"));
|
||||
|
||||
if(HTTPHandler.newVersion) {
|
||||
event.player.addChatMessage(
|
||||
new ChatComponentText("New version " + HTTPHandler.versionNumber + " is available!")
|
||||
.setChatStyle(new ChatStyle()
|
||||
.setChatClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, "https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT/releases"))
|
||||
.setUnderlined(true)
|
||||
.setColor(EnumChatFormatting.YELLOW)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if(MobConfig.enableDucks && event.player instanceof EntityPlayerMP && !event.player.getEntityData().getCompoundTag(EntityPlayer.PERSISTED_NBT_TAG).getBoolean("hasDucked"))
|
||||
PacketDispatcher.wrapper.sendTo(new PlayerInformPacket("Press O to Duck!"), (EntityPlayerMP) event.player);
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
|
||||
@ -239,6 +239,7 @@ public class ResourceManager {
|
||||
public static final IModelCustom taintcrab = AdvancedModelLoader.loadModel(new ResourceLocation(RefStrings.MODID, "models/mobs/taintcrab.obj"));
|
||||
public static final IModelCustom maskman = AdvancedModelLoader.loadModel(new ResourceLocation(RefStrings.MODID, "models/mobs/maskman.obj"));
|
||||
public static final IModelCustom spider = AdvancedModelLoader.loadModel(new ResourceLocation(RefStrings.MODID, "models/mobs/blockspider.obj"));
|
||||
public static final IModelCustom ufo = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/mobs/ufo.obj"));
|
||||
|
||||
//Belt
|
||||
public static final IModelCustom arrow = AdvancedModelLoader.loadModel(new ResourceLocation(RefStrings.MODID, "models/blocks/arrow.obj"));
|
||||
@ -498,6 +499,7 @@ public class ResourceManager {
|
||||
public static final ResourceLocation maskman_tex = new ResourceLocation(RefStrings.MODID, "textures/entity/maskman.png");
|
||||
public static final ResourceLocation iou = new ResourceLocation(RefStrings.MODID, "textures/entity/iou.png");
|
||||
public static final ResourceLocation spider_tex = new ResourceLocation(RefStrings.MODID, "textures/entity/blockspider.png");
|
||||
public static final ResourceLocation ufo_tex = new ResourceLocation(RefStrings.MODID, "textures/entity/ufo.png");
|
||||
|
||||
|
||||
|
||||
@ -579,6 +581,8 @@ public class ResourceManager {
|
||||
public static final ResourceLocation bolter_tex = new ResourceLocation(RefStrings.MODID, "textures/models/weapons/bolter.png");
|
||||
public static final ResourceLocation bolter_digamma_tex = new ResourceLocation(RefStrings.MODID, "textures/models/weapons/bolter_digamma.png");
|
||||
public static final ResourceLocation fireext_tex = new ResourceLocation(RefStrings.MODID, "textures/models/weapons/fireext_normal.png");
|
||||
public static final ResourceLocation fireext_foam_tex = new ResourceLocation(RefStrings.MODID, "textures/models/weapons/fireext_foam.png");
|
||||
public static final ResourceLocation fireext_sand_tex = new ResourceLocation(RefStrings.MODID, "textures/models/weapons/fireext_sand.png");
|
||||
|
||||
public static final ResourceLocation ff_gold = new ResourceLocation(RefStrings.MODID, "textures/models/weapons/ff/gold.png");
|
||||
public static final ResourceLocation ff_gun_bright = new ResourceLocation(RefStrings.MODID, "textures/models/weapons/ff/gun_bright.png");
|
||||
|
||||
@ -36,6 +36,12 @@ public class ItemHazardModule {
|
||||
boolean hydro;
|
||||
float explosive;
|
||||
|
||||
float tempMod = 1F;
|
||||
|
||||
public void setMod(float tempMod) {
|
||||
this.tempMod = tempMod;
|
||||
}
|
||||
|
||||
public void addRadiation(float radiation) {
|
||||
this.radiation = radiation;
|
||||
}
|
||||
@ -66,11 +72,11 @@ public class ItemHazardModule {
|
||||
|
||||
public void applyEffects(EntityLivingBase entity, float mod, int slot, boolean currentItem) {
|
||||
|
||||
if(this.radiation > 0)
|
||||
ContaminationUtil.contaminate(entity, HazardType.RADIATION, ContaminationType.CREATIVE, this.radiation * mod / 20F);
|
||||
if(this.radiation * tempMod > 0)
|
||||
ContaminationUtil.contaminate(entity, HazardType.RADIATION, ContaminationType.CREATIVE, this.radiation * tempMod * mod / 20F);
|
||||
|
||||
if(this.digamma > 0)
|
||||
ContaminationUtil.applyDigammaData(entity, this.digamma * mod / 20F);
|
||||
if(this.digamma * tempMod > 0)
|
||||
ContaminationUtil.applyDigammaData(entity, this.digamma * tempMod * mod / 20F);
|
||||
|
||||
if(this.fire > 0)
|
||||
entity.setFire(this.fire);
|
||||
@ -111,9 +117,9 @@ public class ItemHazardModule {
|
||||
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool) {
|
||||
|
||||
if(this.radiation > 0) {
|
||||
if(this.radiation * tempMod > 0) {
|
||||
list.add(EnumChatFormatting.GREEN + "[" + I18nUtil.resolveKey("trait.radioactive") + "]");
|
||||
String rad = "" + (Math.floor(radiation * 1000) / 1000);
|
||||
String rad = "" + (Math.floor(radiation * tempMod * 1000) / 1000);
|
||||
list.add(EnumChatFormatting.YELLOW + (rad + "RAD/s"));
|
||||
}
|
||||
|
||||
@ -137,8 +143,8 @@ public class ItemHazardModule {
|
||||
list.add(EnumChatFormatting.RED + "[" + I18nUtil.resolveKey("trait.explosive") + "]");
|
||||
}
|
||||
|
||||
if(this.digamma > 0) {
|
||||
float d = ((int) (digamma * 10000F)) / 10F;
|
||||
if(this.digamma * tempMod > 0) {
|
||||
float d = ((int) (digamma * tempMod * 10000F)) / 10F;
|
||||
list.add(EnumChatFormatting.RED + "[" + I18nUtil.resolveKey("trait.digamma") + "]");
|
||||
list.add(EnumChatFormatting.DARK_RED + "" + d + "mDRX/s");
|
||||
}
|
||||
|
||||
80
src/main/java/com/hbm/render/entity/mob/RenderUFO.java
Normal file
@ -0,0 +1,80 @@
|
||||
package com.hbm.render.entity.mob;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import com.hbm.entity.mob.EntityHunterChopper;
|
||||
import com.hbm.entity.mob.EntityUFO;
|
||||
import com.hbm.main.ResourceManager;
|
||||
import com.hbm.render.util.BeamPronter;
|
||||
import com.hbm.render.util.BeamPronter.EnumBeamType;
|
||||
import com.hbm.render.util.BeamPronter.EnumWaveType;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.boss.BossStatus;
|
||||
import net.minecraft.entity.boss.IBossDisplayData;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.Vec3;
|
||||
|
||||
public class RenderUFO extends Render {
|
||||
|
||||
@Override
|
||||
public void doRender(Entity entity, double x, double y, double z, float f0, float f1) {
|
||||
|
||||
BossStatus.setBossStatus((IBossDisplayData)entity, false);
|
||||
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslated(x, y + 1, z);
|
||||
|
||||
EntityUFO ufo = (EntityUFO)entity;
|
||||
|
||||
if(!ufo.isEntityAlive()) {
|
||||
float tilt = ufo.deathTime + 30 + f1;
|
||||
GL11.glRotatef(tilt, 1, 0, 1);
|
||||
}
|
||||
|
||||
double scale = 2D;
|
||||
|
||||
this.bindTexture(getEntityTexture(entity));
|
||||
|
||||
GL11.glPushMatrix();
|
||||
double rot = (entity.ticksExisted + f1) * 5 % 360D;
|
||||
GL11.glRotated(rot, 0, 1, 0);
|
||||
GL11.glScaled(scale, scale, scale);
|
||||
GL11.glShadeModel(GL11.GL_SMOOTH);
|
||||
ResourceManager.ufo.renderAll();
|
||||
GL11.glShadeModel(GL11.GL_FLAT);
|
||||
GL11.glPopMatrix();
|
||||
|
||||
if(ufo.getBeam()) {
|
||||
int ix = (int)Math.floor(entity.posX);
|
||||
int iz = (int)Math.floor(entity.posZ);
|
||||
int iy = 0;
|
||||
|
||||
for(int i = (int)Math.ceil(entity.posY); i >= 0; i--) {
|
||||
|
||||
if(entity.worldObj.getBlock(ix, i, iz) != Blocks.air) {
|
||||
iy = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
double length = entity.posY - iy;
|
||||
|
||||
if(length > 0) {
|
||||
BeamPronter.prontBeam(Vec3.createVectorHelper(0, -length, 0), EnumWaveType.SPIRAL, EnumBeamType.SOLID, 0x101020, 0x101020, 0, (int)(length + 1), 0F, 6, (float)scale * 0.75F);
|
||||
BeamPronter.prontBeam(Vec3.createVectorHelper(0, -length, 0), EnumWaveType.RANDOM, EnumBeamType.SOLID, 0x202060, 0x202060, entity.ticksExisted / 2, (int)(length / 2 + 1), (float)scale * 1.5F, 2, 0.0625F);
|
||||
BeamPronter.prontBeam(Vec3.createVectorHelper(0, -length, 0), EnumWaveType.RANDOM, EnumBeamType.SOLID, 0x202060, 0x202060, entity.ticksExisted / 4, (int)(length / 2 + 1), (float)scale * 1.5F, 2, 0.0625F);
|
||||
}
|
||||
}
|
||||
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ResourceLocation getEntityTexture(Entity entity) {
|
||||
return ResourceManager.ufo_tex;
|
||||
}
|
||||
|
||||
}
|
||||
@ -2,9 +2,13 @@ package com.hbm.render.item.weapon;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import com.hbm.handler.BulletConfigSyncingUtil;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.items.weapon.ItemGunBase;
|
||||
import com.hbm.main.ResourceManager;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.client.IItemRenderer;
|
||||
|
||||
@ -36,8 +40,17 @@ public class ItemRenderFireExt implements IItemRenderer {
|
||||
GL11.glPushMatrix();
|
||||
|
||||
GL11.glEnable(GL11.GL_CULL_FACE);
|
||||
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(ResourceManager.fireext_tex);
|
||||
|
||||
int magType = ItemGunBase.getMagType(item);
|
||||
int config = ((ItemGunBase)ModItems.gun_fireext).mainConfig.config.get(magType);
|
||||
Item ammo = BulletConfigSyncingUtil.pullConfig(config).ammo;
|
||||
|
||||
if(ammo == ModItems.ammo_fireext_foam)
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(ResourceManager.fireext_foam_tex);
|
||||
else if(ammo == ModItems.ammo_fireext_sand)
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(ResourceManager.fireext_sand_tex);
|
||||
else
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(ResourceManager.fireext_tex);
|
||||
|
||||
switch(type) {
|
||||
|
||||
|
||||
@ -116,8 +116,8 @@ public class TileEntitySILEX extends TileEntityMachineBase implements IFluidAcce
|
||||
public static final HashMap<FluidType, ComparableStack> fluidConversion = new HashMap();
|
||||
|
||||
static {
|
||||
fluidConversion.put(FluidType.UF6, new ComparableStack(ModItems.ingot_uranium));
|
||||
fluidConversion.put(FluidType.PUF6, new ComparableStack(ModItems.ingot_plutonium));
|
||||
fluidConversion.put(FluidType.UF6, new ComparableStack(ModItems.fluid_icon, 1, FluidType.UF6.ordinal()));
|
||||
fluidConversion.put(FluidType.PUF6, new ComparableStack(ModItems.fluid_icon, 1, FluidType.PUF6.ordinal()));
|
||||
}
|
||||
|
||||
int loadDelay;
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
package com.hbm.tileentity.machine;
|
||||
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.items.machine.ItemRBMKRod;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
@ -95,11 +97,17 @@ public class TileEntityWasteDrum extends TileEntity implements ISidedInventory {
|
||||
|
||||
Item item = itemStack.getItem();
|
||||
|
||||
return item == ModItems.waste_mox_hot ||
|
||||
if(item == ModItems.waste_mox_hot ||
|
||||
item == ModItems.waste_plutonium_hot ||
|
||||
item == ModItems.waste_schrabidium_hot ||
|
||||
item == ModItems.waste_thorium_hot ||
|
||||
item == ModItems.waste_uranium_hot;
|
||||
item == ModItems.waste_uranium_hot)
|
||||
return true;
|
||||
|
||||
if(item instanceof ItemRBMKRod)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -177,11 +185,18 @@ public class TileEntityWasteDrum extends TileEntity implements ISidedInventory {
|
||||
|
||||
Item item = itemStack.getItem();
|
||||
|
||||
return item == ModItems.waste_mox ||
|
||||
if(item == ModItems.waste_mox ||
|
||||
item == ModItems.waste_plutonium ||
|
||||
item == ModItems.waste_schrabidium ||
|
||||
item == ModItems.waste_thorium ||
|
||||
item == ModItems.waste_uranium;
|
||||
item == ModItems.waste_uranium)
|
||||
return true;
|
||||
|
||||
if(item instanceof ItemRBMKRod) {
|
||||
return ItemRBMKRod.getCoreHeat(itemStack) < 50 && ItemRBMKRod.getHullHeat(itemStack) < 50;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -210,10 +225,16 @@ public class TileEntityWasteDrum extends TileEntity implements ISidedInventory {
|
||||
|
||||
for(int i = 0; i < 12; i++) {
|
||||
|
||||
if(worldObj.rand.nextInt(r) == 0) {
|
||||
if(slots[i] != null) {
|
||||
|
||||
if(slots[i] != null) {
|
||||
if(slots[i].getItem() instanceof ItemRBMKRod) {
|
||||
|
||||
ItemRBMKRod rod = (ItemRBMKRod) slots[i].getItem();
|
||||
rod.updateHeat(worldObj, slots[i], 0.025D);
|
||||
rod.provideHeat(worldObj, slots[i], 20D, 0.025D);
|
||||
|
||||
} else if(worldObj.rand.nextInt(r) == 0) {
|
||||
|
||||
if(slots[i].getItem() == ModItems.waste_uranium_hot)
|
||||
slots[i] = new ItemStack(ModItems.waste_uranium);
|
||||
else if(slots[i].getItem() == ModItems.waste_plutonium_hot)
|
||||
|
||||
@ -52,8 +52,8 @@ public class TileEntityRBMKRod extends TileEntityRBMKSlottedBase implements IRBM
|
||||
double fluxOut = rod.burn(worldObj, slots[0], fluxIn);
|
||||
NType rType = rod.rType;
|
||||
|
||||
rod.updateHeat(worldObj, slots[0]);
|
||||
this.heat += rod.provideHeat(worldObj, slots[0], heat);
|
||||
rod.updateHeat(worldObj, slots[0], 1.0D);
|
||||
this.heat += rod.provideHeat(worldObj, slots[0], heat, 1.0D);
|
||||
|
||||
if(this.heat > this.maxHeat()) {
|
||||
this.meltdown();
|
||||
|
||||
@ -325,6 +325,7 @@ entity.entity_elder_one.name=Quackos der Älteste
|
||||
entity.entity_fucc_a_ducc.name=Ente
|
||||
entity.entity_ntm_fbi.name=FBI Agent
|
||||
entity.entity_ntm_radiation_blaze.name=Kernschmelze-Elementar
|
||||
entity.entity_ntm_ufo.name=Marsianisches Invasionsschiff
|
||||
entity.entity_mob_hunter_chopper.name=Jagdschrauber
|
||||
entity.entity_mob_mask_man.name=Maskenmann
|
||||
entity.entity_mob_nuclear_creeper.name=Nuklearer Creeper
|
||||
@ -681,6 +682,7 @@ item.billet_au198.name=Gold-198-Billet
|
||||
item.billet_australium.name=Australiumbillet
|
||||
item.billet_australium_greater.name=Ayerit-Australiumbillet
|
||||
item.billet_australium_lesser.name=Tasmanit-Australiumbillet
|
||||
item.billet_balefire_gold.name=Flammgoldbillet
|
||||
item.billet_co60.name=Kobalt-60-Billet
|
||||
item.billet_mox_fuel.name=MOX-Kernbrennstoffbillet
|
||||
item.billet_neptunium.name=Neptuniumbillet
|
||||
@ -1918,6 +1920,8 @@ item.powder_unobtainium.name=Unobtainiumstaub
|
||||
item.powder_uranium.name=Uranstaub
|
||||
item.powder_verticium.name=Verticiumstaub
|
||||
item.powder_weidanium.name=Weidaniumstaub
|
||||
item.powder_xe135.name=Xenon-135-Staub
|
||||
item.powder_xe135_tiny.name=Kleiner Haufen Xenon-135-Staub
|
||||
item.powder_yellowcake.name=Yellowcake
|
||||
item.powder_zirconium.name=Zirkoniumstaub
|
||||
item.primer_357.name=.357 Magnum-Zündhütchen (x24)
|
||||
@ -1933,6 +1937,7 @@ item.radaway_flush.name=Elite-RadAway
|
||||
item.radaway_strong.name=Starkes RadAway
|
||||
item.radx.name=Rad-X
|
||||
item.rbmk_fuel_balefire.name=Balefire-RBMK-Kernbrennstoff
|
||||
item.rbmk_fuel_balefire_gold.name=Flammgold-RBMK-Kernbrennstoff
|
||||
item.rbmk_fuel_drx.name=§cDigamma-RBMK-Kernbrennstoff
|
||||
item.rbmk_fuel_empty.name=Leere RBMK Kernbrennstoffstäbe
|
||||
item.rbmk_fuel_heaus.name=HEAus-RBMK-Kernbrennstoff
|
||||
@ -1948,6 +1953,24 @@ item.rbmk_fuel_mox.name=MOX-RBMK-Kernbrennstoff
|
||||
item.rbmk_fuel_po210be.name=Po210Be-RBMK-Neutronenquelle
|
||||
item.rbmk_fuel_pu238be.name=Pu238Be-RBMK-Neutronenquelle
|
||||
item.rbmk_fuel_thmeu.name=ThMEU-RBMK-Kernbrennstoff
|
||||
item.rbmk_fuel_ueu.name=NU-RBMK-Kernbrennstoff
|
||||
item.rbmk_pellet_balefire.name=Balefire-Kernbrennstoffpellet
|
||||
item.rbmk_pellet_balefire_gold.name=Flammgold-Kernbrennstoffpellet
|
||||
item.rbmk_pellet_drx.name=§cDigamma-Kernbrennstoffpellet§r
|
||||
item.rbmk_pellet_heaus.name=HEAus-Kernbrennstoffpellet
|
||||
item.rbmk_pellet_hes.name=HES-Kernbrennstoffpellet
|
||||
item.rbmk_pellet_leaus.name=LEAus-Kernbrennstoffpellet
|
||||
item.rbmk_pellet_lep.name=LEP-Kernbrennstoffpellet
|
||||
item.rbmk_pellet_les.name=LES-Kernbrennstoffpellet
|
||||
item.rbmk_pellet_men.name=MEN-Kernbrennstoffpellet
|
||||
item.rbmk_pellet_mep.name=MEP-Kernbrennstoffpellet
|
||||
item.rbmk_pellet_mes.name=MES-Kernbrennstoffpellet
|
||||
item.rbmk_pellet_meu.name=MEU-Kernbrennstoffpellet
|
||||
item.rbmk_pellet_mox.name=MOX-Kernbrennstoffpellet
|
||||
item.rbmk_pellet_po210be.name=Po210Be-Neutronenquellenpellet
|
||||
item.rbmk_pellet_pu238be.name=Pu238Be-Neutronenquellenpellet
|
||||
item.rbmk_pellet_thmeu.name=ThMEU-Kernbrennstoffpellet
|
||||
item.rbmk_pellet_ueu.name=NU-Kernbrennstoffpellet
|
||||
item.rbmk_lid.name=RBMK-Abdeckplatte
|
||||
item.rbmk_tool.name=RBMK-Konsolen-Verlinkungsgerät
|
||||
item.rbmk_tool.desc=Schleichen und Rechtsclick auf RBMK um Position zu speichern,$Schleichen und Rechtsclick auf Konsole um zu verlinken!
|
||||
@ -2430,6 +2453,7 @@ tile.block_euphemium_cluster.name=Euphemiumgeätzter Schrabidium-Cluster
|
||||
tile.block_fallout.name=Fallout-Block
|
||||
tile.block_fiberglass.name=Fiberglasrolle
|
||||
tile.block_fluorite.name=Fluoritblock
|
||||
tile.block_foam.name=Schaum
|
||||
tile.block_graphite.name=Graphitblock
|
||||
tile.block_insulator.name=Isolatorrolle
|
||||
tile.block_lead.name=Bleiblock
|
||||
@ -2607,6 +2631,7 @@ tile.fireworks.color=Farbe: %s
|
||||
tile.flame_war.name=Flamewar aus der Box
|
||||
tile.float_bomb.name=Schwebebombe
|
||||
tile.fluid_duct.name=Universelles Flüssigkeitsrohr
|
||||
tile.foam_layer.name=Schaumdecke
|
||||
tile.frozen_dirt.name=Gefrorene Erde
|
||||
tile.frozen_grass.name=Gefrorenes Gras
|
||||
tile.frozen_log.name=Gefrorener Baumstamm
|
||||
@ -2634,6 +2659,7 @@ tile.gas_radon.name=Radongas
|
||||
tile.gas_radon_dense.name=Dichtes Radongas
|
||||
tile.gas_radon_tomb.name=Grabgas
|
||||
tile.geiger.name=Geigerzähler
|
||||
tile.glass_boron.name=Borglas
|
||||
tile.glass_polonium.name=Poloniumglas
|
||||
tile.glass_trinitite.name=Trinity-Glas
|
||||
tile.glass_uranium.name=Uranglas
|
||||
@ -2666,6 +2692,7 @@ tile.hadron_power_100m.name=Teilchenbeschleuniger-Stromanschluss (100MHE)
|
||||
tile.hadron_power_1g.name=Teilchenbeschleuniger-Stromanschluss (1GHE)
|
||||
tile.hadron_power_10g.name=Teilchenbeschleuniger-Stromanschluss (10GHE)
|
||||
tile.hazmat.name=Strahlenschutzstoff-Block
|
||||
tile.hev_battery.name=Anzugs-Batterie
|
||||
tile.iter.name=Kernfusionsreaktor
|
||||
tile.ladder_aluminium.name=Aluminiumleiter
|
||||
tile.ladder_cobalt.name=Kobaltleiter
|
||||
@ -2913,6 +2940,8 @@ tile.reinforced_stone.name=Verdichteter Stein
|
||||
tile.rejuvinator.name=Regenerationsmaschine
|
||||
tile.residue.name=Wolkenrückstände
|
||||
tile.safe.name=Panzerschrank
|
||||
tile.sand_boron.name=Borsand
|
||||
tile.sand_boron_layer.name=Borsanddecke
|
||||
tile.sand_polonium.name=Poloniumsand
|
||||
tile.sand_uranium.name=Uransand
|
||||
tile.sat_dock.name=Frachtlandeplattform
|
||||
|
||||
@ -393,6 +393,7 @@ entity.entity_elder_one.name=Quackos The Elder One
|
||||
entity.entity_fucc_a_ducc.name=Duck
|
||||
entity.entity_ntm_fbi.name=FBI Agent
|
||||
entity.entity_ntm_radiation_blaze.name=Meltdown Elemental
|
||||
entity.entity_ntm_ufo.name=Martian Invasion Ship
|
||||
entity.entity_mob_hunter_chopper.name=Hunter Chopper
|
||||
entity.entity_mob_mask_man.name=Mask Man
|
||||
entity.entity_mob_nuclear_creeper.name=Nuclear Creeper
|
||||
@ -749,6 +750,7 @@ item.billet_au198.name=Gold-198 Billet
|
||||
item.billet_australium.name=Australium Billet
|
||||
item.billet_australium_greater.name=Greater Australium Billet
|
||||
item.billet_australium_lesser.name=Lesser Australium Billet
|
||||
item.billet_balefire_gold.name=Flashgold Billet
|
||||
item.billet_co60.name=Cobalt-60 Billet
|
||||
item.billet_mox_fuel.name=MOX Fuel Billet
|
||||
item.billet_neptunium.name=Neptunium Billet
|
||||
@ -1986,6 +1988,8 @@ item.powder_unobtainium.name=Unobtainium Powder
|
||||
item.powder_uranium.name=Uranium Powder
|
||||
item.powder_verticium.name=Verticium Powder
|
||||
item.powder_weidanium.name=Weidanium Powder
|
||||
item.powder_xe135.name=Xenon-135 Powder
|
||||
item.powder_xe135_tiny.name=Tiny Pile of Xenon-135 Powder
|
||||
item.powder_yellowcake.name=Yellowcake
|
||||
item.powder_zirconium.name=Zirconium Powder
|
||||
item.primer_357.name=.357 Magnum Primer (x24)
|
||||
@ -2001,6 +2005,7 @@ item.radaway_flush.name=Elite RadAway
|
||||
item.radaway_strong.name=Strong RadAway
|
||||
item.radx.name=Rad-X
|
||||
item.rbmk_fuel_balefire.name=Balefire RBMK Fuel Rod
|
||||
item.rbmk_fuel_balefire_gold.name=Flashgold RBMK Fuel Rod
|
||||
item.rbmk_fuel_drx.name=§cDigamma RBMK Fuel Rod§r
|
||||
item.rbmk_fuel_empty.name=Empty RBMK Fuel Rod
|
||||
item.rbmk_fuel_heaus.name=HEAus RBMK Fuel Rod
|
||||
@ -2016,7 +2021,25 @@ item.rbmk_fuel_mox.name=MOX RBMK Fuel Rod
|
||||
item.rbmk_fuel_po210be.name=Po210Be RBMK Neutron Source
|
||||
item.rbmk_fuel_pu238be.name=Pu238Be RBMK Neutron Source
|
||||
item.rbmk_fuel_thmeu.name=ThMEU RBMK Fuel Rod
|
||||
item.rbmk_fuel_ueu.name=NU RBMK Fuel Rod
|
||||
item.rbmk_lid.name=RBMK Cover Panel
|
||||
item.rbmk_pellet_balefire.name=Balefire Fuel Pellet
|
||||
item.rbmk_pellet_balefire_gold.name=Flashgold Fuel Pellet
|
||||
item.rbmk_pellet_drx.name=§cDigamma Fuel Pellet§r
|
||||
item.rbmk_pellet_heaus.name=HEAus Fuel Pellet
|
||||
item.rbmk_pellet_hes.name=HES Fuel Pellet
|
||||
item.rbmk_pellet_leaus.name=LEAus Fuel Pellet
|
||||
item.rbmk_pellet_lep.name=LEP Fuel Pellet
|
||||
item.rbmk_pellet_les.name=LES Fuel Pellet
|
||||
item.rbmk_pellet_men.name=MEN Fuel Pellet
|
||||
item.rbmk_pellet_mep.name=MEP Fuel Pellet
|
||||
item.rbmk_pellet_mes.name=MES Fuel Pellet
|
||||
item.rbmk_pellet_meu.name=MEU Fuel Pellet
|
||||
item.rbmk_pellet_mox.name=MOX Fuel Pellet
|
||||
item.rbmk_pellet_po210be.name=Po210Be Neutron Source Pellet
|
||||
item.rbmk_pellet_pu238be.name=Pu238Be Neutron Source Pellet
|
||||
item.rbmk_pellet_thmeu.name=ThMEU Fuel Pellet
|
||||
item.rbmk_pellet_ueu.name=NU Fuel Pellet
|
||||
item.rbmk_tool.name=RBMK Console Linking Device
|
||||
item.rbmk_tool.desc=Sneak and right-click RBMK to save the position,$sneak and right-click console to link!
|
||||
item.rbmk_tool.linked=Position set!
|
||||
@ -2498,6 +2521,7 @@ tile.block_euphemium_cluster.name=Euphemium-Etched Schrabidium Cluster
|
||||
tile.block_fallout.name=Block of Fallout
|
||||
tile.block_fiberglass.name=Roll of Fiberglass
|
||||
tile.block_fluorite.name=Block of Fluorite
|
||||
tile.block_foam.name=Foam
|
||||
tile.block_insulator.name=Roll of Insulation
|
||||
tile.block_graphite.name=Block of Graphite
|
||||
tile.block_lead.name=Block of Lead
|
||||
@ -2594,6 +2618,22 @@ tile.cmb_brick_reinforced.name=Reinforced CMB Bricks
|
||||
tile.compact_launcher.name=Compact Launch Pad
|
||||
tile.concrete.name=Concrete Tile
|
||||
tile.concrete_asbestos.name=Asbestos Concrete
|
||||
tile.concrete_colored.black.name=Black Concrete
|
||||
tile.concrete_colored.blue.name=Blue Concrete
|
||||
tile.concrete_colored.brown.name=Brown Concrete
|
||||
tile.concrete_colored.cyan.name=Cyan Concrete
|
||||
tile.concrete_colored.gray.name=Gray Concrete
|
||||
tile.concrete_colored.green.name=Green Concrete
|
||||
tile.concrete_colored.lightBlue.name=Light Blue Concrete
|
||||
tile.concrete_colored.lime.name=Lime Concrete
|
||||
tile.concrete_colored.magenta.name=Magenta Concrete
|
||||
tile.concrete_colored.orange.name=Orange Concrete
|
||||
tile.concrete_colored.pink.name=Pink Concrete
|
||||
tile.concrete_colored.purple.name=Purple Concrete
|
||||
tile.concrete_colored.red.name=Red Concrete
|
||||
tile.concrete_colored.silver.name=Light Gray Concrete
|
||||
tile.concrete_colored.white.name=White Concrete
|
||||
tile.concrete_colored.yellow.name=Yellow Concrete
|
||||
tile.concrete_pillar.name=Rebar Reinforced Concrete Pillar
|
||||
tile.concrete_smooth.name=Concrete
|
||||
tile.crashed_bomb.name=Dud
|
||||
@ -2675,6 +2715,7 @@ tile.fireworks.color=Color: %s
|
||||
tile.flame_war.name=Flame War in a Box
|
||||
tile.float_bomb.name=Levitation Bomb
|
||||
tile.fluid_duct.name=Universal Fluid Duct
|
||||
tile.foam_layer.name=Foam layer
|
||||
tile.frozen_dirt.name=Frozen Dirt
|
||||
tile.frozen_grass.name=Frozen Grass
|
||||
tile.frozen_log.name=Frozen Log
|
||||
@ -2702,6 +2743,7 @@ tile.gas_radon.name=Radon Gas
|
||||
tile.gas_radon_dense.name=Dense Radon Gas
|
||||
tile.gas_radon_tomb.name=Tomb Gas
|
||||
tile.geiger.name=Geiger Counter
|
||||
tile.glass_boron.name=Boron Glass
|
||||
tile.glass_polonium.name=Polonium Glass
|
||||
tile.glass_trinitite.name=Trinity Glass
|
||||
tile.glass_uranium.name=Uranium Glass
|
||||
@ -2734,6 +2776,7 @@ tile.hadron_power_100m.name=Particle Accelerator Power Plug (100MHE)
|
||||
tile.hadron_power_1g.name=Particle Accelerator Power Plug (1GHE)
|
||||
tile.hadron_power_10g.name=Particle Accelerator Power Plug (10GHE)
|
||||
tile.hazmat.name=Hazmat Cloth Block
|
||||
tile.hev_battery.name=Suit Battery
|
||||
tile.iter.name=Fusion Reactor
|
||||
tile.ladder_aluminium.name=Aluminium Ladder
|
||||
tile.ladder_cobalt.name=Cobalt Ladder
|
||||
@ -2981,6 +3024,8 @@ tile.reinforced_stone.name=Dense Stone
|
||||
tile.rejuvinator.name=Rejuvination Device
|
||||
tile.residue.name=Cloud Residue
|
||||
tile.safe.name=Safe
|
||||
tile.sand_boron.name=Boron Sand
|
||||
tile.sand_boron_layer.name=Boron Sand Layer
|
||||
tile.sand_polonium.name=Polonium Sand
|
||||
tile.sand_uranium.name=Uranium Sand
|
||||
tile.sat_dock.name=Cargo Landing Pad
|
||||
|
||||
9629
src/main/resources/assets/hbm/models/mobs/ufo.obj
Normal file
@ -146,6 +146,7 @@
|
||||
"weapon.mukeExplosion": {"category": "player", "sounds": [{"name": "weapon/mukeExplosion", "stream": false}]},
|
||||
"weapon.cDeploy": {"category": "player", "sounds": [{"name": "weapon/cDeploy", "stream": false}]},
|
||||
"weapon.cSwing": {"category": "player", "sounds": [{"name": "weapon/cSwing", "stream": false}]},
|
||||
"weapon.extinguisher": {"category": "player", "sounds": [{"name": "weapon/extinguisher", "stream": false}]},
|
||||
|
||||
"weapon.reloadTurret": {"category": "player", "sounds": [{"name": "weapon/reloadTurret", "stream": false}]},
|
||||
"weapon.switchmode1": {"category": "player", "sounds": [{"name": "weapon/switchmode1", "stream": false}]},
|
||||
|
||||
BIN
src/main/resources/assets/hbm/sounds/weapon/extinguisher.ogg
Normal file
BIN
src/main/resources/assets/hbm/textures/blocks/crystal_energy.png
Normal file
|
After Width: | Height: | Size: 488 B |
BIN
src/main/resources/assets/hbm/textures/blocks/crystal_power.png
Normal file
|
After Width: | Height: | Size: 648 B |
BIN
src/main/resources/assets/hbm/textures/blocks/crystal_robust.png
Normal file
|
After Width: | Height: | Size: 419 B |
|
After Width: | Height: | Size: 215 B |
BIN
src/main/resources/assets/hbm/textures/blocks/glass_boron.png
Normal file
|
After Width: | Height: | Size: 193 B |
BIN
src/main/resources/assets/hbm/textures/entity/ufo.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/main/resources/assets/hbm/textures/items/powder_xe135.png
Normal file
|
After Width: | Height: | Size: 283 B |
|
After Width: | Height: | Size: 219 B |
|
Before Width: | Height: | Size: 629 B After Width: | Height: | Size: 714 B |
|
After Width: | Height: | Size: 387 B |
|
Before Width: | Height: | Size: 279 B After Width: | Height: | Size: 300 B |
|
Before Width: | Height: | Size: 278 B After Width: | Height: | Size: 297 B |
|
Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 296 B |
|
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 294 B |
|
Before Width: | Height: | Size: 283 B After Width: | Height: | Size: 305 B |
|
Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 301 B |
|
After Width: | Height: | Size: 320 B |
|
After Width: | Height: | Size: 302 B |
|
Before Width: | Height: | Size: 291 B After Width: | Height: | Size: 314 B |
BIN
src/main/resources/assets/hbm/textures/items/rbmk_pellet_ueu.png
Normal file
|
After Width: | Height: | Size: 283 B |
BIN
src/main/resources/assets/hbm/textures/misc/star_digamma.png
Normal file
|
After Width: | Height: | Size: 259 B |
|
After Width: | Height: | Size: 320 B |
|
Before Width: | Height: | Size: 753 B |
|
After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 753 B |
@ -3,7 +3,7 @@
|
||||
"modid": "hbm",
|
||||
"name": "Hbm's Nuclear Tech",
|
||||
"description": "A mod that adds weapons, nuclear themed stuff and machines",
|
||||
"version":"1.0.27-3871",
|
||||
"version":"1.0.27-3878",
|
||||
"mcversion": "1.7.10",
|
||||
"url": "",
|
||||
"updateUrl": "",
|
||||
|
||||