Added desh tools, fixed game breaking bugs, added a sledge hammer

This commit is contained in:
HbmMods 2017-09-04 22:04:49 +02:00
parent 171f7de3c0
commit 520f24d2fe
30 changed files with 5989 additions and 5193 deletions

View File

@ -237,6 +237,8 @@ container.chemplant=Chemiefabrik
tile.fluid_duct.name=Universelles Flüssigkeitsrohr
tile.machine_fluidtank.name=Tank
container.fluidtank=Tank
tile.machine_turbofan.name=Turbofan
container.turbofan=Turbofan
tile.crate_iron.name=Eisenkiste
tile.crate_steel.name=Stahlkiste
@ -451,6 +453,7 @@ tile.ore_reiium.name=Reiit
tile.ore_unobtainium.name=Glimmerblende
tile.ore_daffergon.name=Dellit
tile.ore_verticium.name=Dollargrünes Mineral
tile.ore_rare.name=Seltenerden-Erz
tile.ore_oil.name=Ölvorkommen
tile.ore_oil_empty.name=Leeres Ölvorkommen
@ -1135,6 +1138,11 @@ item.elec_sword.name=Elektroimpulswaffe
item.elec_pickaxe.name=Schlagbohrmaschine
item.elec_axe.name=Elektrische Kettensäge
item.elec_shovel.name=Spiralbohrer
item.desh_sword.name=Arbeitslegierungsschwert
item.desh_pickaxe.name=Arbeitslegierungsspitzhacke
item.desh_axe.name=Arbeitslegierungsaxt
item.desh_shovel.name=Arbeitslegierungsschaufel
item.desh_hoe.name=Arbeitslegierungsfeldhacke
tile.red_cable.name=Rotes Kupferkabel
tile.block_meteor.name=Meteoritenblock
@ -1151,10 +1159,14 @@ tile.machine_converter_he_rf.name=HE zu RF Konverter
tile.machine_converter_rf_he.name=RF zu HE Konverter
item.schrabidium_hammer.name=Schrabidiumhammer
item.shimmer_sledge.name=Shimmer Sledge
item.euphemium_stopper.name=Stopper
item.matchstick.name=Streichholz
item.remote.name=Kaputte Fernbedienung
item.shimmer_head.name=Schwerer Hammerkopf
item.shimmer_handle.name=Verstärketer Polymergriff
item.redcoil_capacitor.name=Rotspulenkondensator
item.detonator.name=Fernzünder
item.crate_caller.name=Nachschub-Requester

View File

@ -237,6 +237,8 @@ container.chemplant=Chemical Plant
tile.fluid_duct.name=Universal Fluid Duct
tile.machine_fluidtank.name=Tank
container.fluidtank=Tank
tile.machine_turbofan.name=Turbofan
container.turbofan=Turbofan
tile.crate_iron.name=Iron Crate
tile.crate_steel.name=Steel Crate
@ -451,6 +453,7 @@ tile.ore_reiium.name=Reiite
tile.ore_unobtainium.name=Brightblende Ore
tile.ore_daffergon.name=Dellite
tile.ore_verticium.name=Dollar Green Mineral
tile.ore_rare.name=Rare Earth Ore
tile.ore_oil.name=Oil Deposit
tile.ore_oil_empty.name=Empty Oil Deposit
@ -1135,6 +1138,11 @@ item.elec_sword.name=Stunstick
item.elec_pickaxe.name=Impact Drill
item.elec_axe.name=Electric Chainsaw
item.elec_shovel.name=Spiral Drill
item.desh_sword.name=Worker's Alloy Sword
item.desh_pickaxe.name=Worker's Alloy Pickaxe
item.desh_axe.name=Worker's Alloy Axe
item.desh_shovel.name=Worker's Alloy Shovel
item.desh_hoe.name=Worker's Alloy Hoe
tile.red_cable.name=Red Copper Cable
tile.block_meteor.name=Meteor Block
@ -1151,10 +1159,14 @@ tile.machine_converter_he_rf.name=HE to RF Converter
tile.machine_converter_rf_he.name=RF to HE Converter
item.schrabidium_hammer.name=Schrabidium Hammer
item.shimmer_sledge.name=Shimmer Sledge
item.euphemium_stopper.name=Stopper
item.matchstick.name=Matchstick
item.remote.name=Broken Remote
item.shimmer_head.name=Heavy Hammer Head
item.shimmer_handle.name=Reinforced Polymer Handle
item.redcoil_capacitor.name=Redcoil Capacitor
item.detonator.name=Detonator
item.crate_caller.name=Supply Drop Requester

File diff suppressed because it is too large Load Diff

View File

@ -42,6 +42,7 @@
"weapon.defabSpinup": {"category": "player", "sounds": [{"name": "weapon/defabSpinup", "stream": false}]},
"weapon.defabShoot": {"category": "player", "sounds": [{"name": "weapon/defabShoot", "stream": false}]},
"weapon.sparkShoot": {"category": "player", "sounds": ["weapon/sparkShoot1", "weapon/sparkShoot2", "weapon/sparkShoot3"]},
"weapon.bang": {"category": "player", "sounds": [{"name": "weapon/bang", "stream": false}]},
"entity.chopperFlyingLoop": {"category": "hostile", "sounds": [{"name": "entity/chopperFlyingLoop", "stream": true}]},
"entity.chopperDrop": {"category": "hostile", "sounds": [{"name": "entity/chopperDrop", "stream": false}]},

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

View File

@ -425,6 +425,8 @@ public class ModBlocks {
public static Block dummy_port_refinery;
public static Block dummy_block_pumpjack;
public static Block dummy_port_pumpjack;
public static Block dummy_block_turbofan;
public static Block dummy_port_turbofan;
private static void initializeBlock() {
@ -703,6 +705,7 @@ public class ModBlocks {
machine_assembler = new MachineAssembler(Material.iron).setBlockName("machine_assembler").setHardness(5.0F).setResistance(100.0F).setCreativeTab(MainRegistry.tabBlock).setBlockTextureName(RefStrings.MODID + ":machine_assembler");
machine_chemplant = new MachineChemplant(Material.iron).setBlockName("machine_chemplant").setHardness(5.0F).setResistance(100.0F).setCreativeTab(MainRegistry.tabBlock).setBlockTextureName(RefStrings.MODID + ":machine_chemplant");
machine_fluidtank = new MachineFluidTank(Material.iron).setBlockName("machine_fluidtank").setHardness(5.0F).setResistance(100.0F).setCreativeTab(MainRegistry.tabBlock).setBlockTextureName(RefStrings.MODID + ":machine_fluidtank");
machine_turbofan = new MachineTurbofan(Material.iron).setBlockName("machine_turbofan").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.tabBlock).setBlockTextureName(RefStrings.MODID + ":machine_turbofan");
machine_schrabidium_transmutator = new MachineSchrabidiumTransmutator(Material.iron).setBlockName("machine_schrabidium_transmutator").setHardness(5.0F).setResistance(100.0F).setCreativeTab(MainRegistry.tabBlock);
@ -752,6 +755,8 @@ public class ModBlocks {
dummy_port_refinery = new DummyBlockRefinery(Material.iron).setBlockName("dummy_port_refinery").setHardness(5.0F).setResistance(10.0F).setCreativeTab(null).setBlockTextureName(RefStrings.MODID + ":block_titanium");
dummy_block_pumpjack = new DummyBlockPumpjack(Material.iron).setBlockName("dummy_block_pumpjack").setHardness(5.0F).setResistance(10.0F).setCreativeTab(null).setBlockTextureName(RefStrings.MODID + ":block_titanium");
dummy_port_pumpjack = new DummyBlockPumpjack(Material.iron).setBlockName("dummy_port_pumpjack").setHardness(5.0F).setResistance(10.0F).setCreativeTab(null).setBlockTextureName(RefStrings.MODID + ":block_titanium");
dummy_block_turbofan = new DummyBlockTurbofan(Material.iron).setBlockName("dummy_block_turbofan").setHardness(5.0F).setResistance(10.0F).setCreativeTab(null).setBlockTextureName(RefStrings.MODID + ":block_steel");
dummy_port_turbofan = new DummyBlockTurbofan(Material.iron).setBlockName("dummy_port_turbofan").setHardness(5.0F).setResistance(10.0F).setCreativeTab(null).setBlockTextureName(RefStrings.MODID + ":block_steel");
}
private static void registerBlock() {
@ -967,6 +972,7 @@ public class ModBlocks {
GameRegistry.registerBlock(machine_flare, machine_flare.getUnlocalizedName());
GameRegistry.registerBlock(machine_refinery, machine_refinery.getUnlocalizedName());
GameRegistry.registerBlock(machine_drill, machine_drill.getUnlocalizedName());
GameRegistry.registerBlock(machine_turbofan, machine_turbofan.getUnlocalizedName());
GameRegistry.registerBlock(machine_schrabidium_transmutator, machine_schrabidium_transmutator.getUnlocalizedName());
GameRegistry.registerBlock(machine_combine_factory, machine_combine_factory.getUnlocalizedName());
GameRegistry.registerBlock(machine_teleporter, machine_teleporter.getUnlocalizedName());
@ -1065,6 +1071,8 @@ public class ModBlocks {
GameRegistry.registerBlock(dummy_port_refinery, dummy_port_refinery.getUnlocalizedName());
GameRegistry.registerBlock(dummy_block_pumpjack, dummy_block_pumpjack.getUnlocalizedName());
GameRegistry.registerBlock(dummy_port_pumpjack, dummy_port_pumpjack.getUnlocalizedName());
GameRegistry.registerBlock(dummy_block_turbofan, dummy_block_turbofan.getUnlocalizedName());
GameRegistry.registerBlock(dummy_port_turbofan, dummy_port_turbofan.getUnlocalizedName());
//Other Technical Blocks
GameRegistry.registerBlock(oil_pipe, oil_pipe.getUnlocalizedName());

View File

@ -0,0 +1,106 @@
package com.hbm.blocks.machine;
import java.util.Random;
import com.hbm.blocks.ModBlocks;
import com.hbm.interfaces.IDummy;
import com.hbm.main.MainRegistry;
import com.hbm.tileentity.TileEntityDummy;
import com.hbm.tileentity.TileEntityMachinePumpjack;
import com.hbm.tileentity.TileEntityMachineTurbofan;
import cpw.mods.fml.common.network.internal.FMLNetworkHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
public class DummyBlockTurbofan extends BlockContainer implements IDummy {
public static boolean safeBreak = false;
public DummyBlockTurbofan(Material p_i45386_1_) {
super(p_i45386_1_);
}
@Override
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
return new TileEntityDummy();
}
@Override
public void breakBlock(World world, int x, int y, int z, Block block, int i)
{
if(!safeBreak) {
TileEntity te = world.getTileEntity(x, y, z);
if(te != null && te instanceof TileEntityDummy) {
int a = ((TileEntityDummy)te).targetX;
int b = ((TileEntityDummy)te).targetY;
int c = ((TileEntityDummy)te).targetZ;
//world.getBlock(a, b, c).breakBlock(world, a, b, c, block, i);
if(!world.isRemote)
world.func_147480_a(a, b, c, true);
}
}
world.removeTileEntity(x, y, z);
}
@Override
public int getRenderType() {
return -1;
}
@Override
public boolean isOpaqueCube() {
return false;
}
@Override
public boolean renderAsNormalBlock() {
return false;
}
@Override
public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_)
{
return null;
}
@Override
@SideOnly(Side.CLIENT)
public Item getItem(World world, int x, int y, int z)
{
return Item.getItemFromBlock(ModBlocks.machine_turbofan);
}
@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
if(world.isRemote)
{
return true;
} else if(!player.isSneaking())
{
TileEntity te = world.getTileEntity(x, y, z);
if(te != null && te instanceof TileEntityDummy) {
int a = ((TileEntityDummy)te).targetX;
int b = ((TileEntityDummy)te).targetY;
int c = ((TileEntityDummy)te).targetZ;
TileEntityMachineTurbofan entity = (TileEntityMachineTurbofan) world.getTileEntity(a, b, c);
if(entity != null)
{
FMLNetworkHandler.openGui(player, MainRegistry.instance, ModBlocks.guiID_machine_turbofan, world, a, b, c);
}
}
return true;
} else {
return false;
}
}
}

View File

@ -0,0 +1,103 @@
package com.hbm.blocks.machine;
import java.util.Random;
import com.hbm.blocks.ModBlocks;
import com.hbm.handler.MultiblockHandler;
import com.hbm.interfaces.IMultiblock;
import com.hbm.tileentity.TileEntityDummy;
import com.hbm.tileentity.TileEntityMachineIGenerator;
import com.hbm.tileentity.TileEntityMachineTurbofan;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
public class MachineTurbofan extends BlockContainer implements IMultiblock {
public MachineTurbofan(Material p_i45386_1_) {
super(p_i45386_1_);
}
@Override
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
return new TileEntityMachineTurbofan();
}
@Override
public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) {
return Item.getItemFromBlock(ModBlocks.machine_turbofan);
}
@Override
public int getRenderType() {
return -1;
}
@Override
public boolean isOpaqueCube() {
return false;
}
@Override
public boolean renderAsNormalBlock() {
return false;
}
@Override
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase player, ItemStack itemStack) {
int i = MathHelper.floor_double(player.rotationYaw * 4.0F / 360.0F + 0.5D) & 3;
if (i == 0) {
world.setBlockMetadataWithNotify(x, y, z, 5, 2);
if(MultiblockHandler.checkSpace(world, x, y, z, MultiblockHandler.turbofanDimensionEast)) {
MultiblockHandler.fillUp(world, x, y, z, MultiblockHandler.turbofanDimensionEast, ModBlocks.dummy_block_turbofan);
//
//
} else
world.func_147480_a(x, y, z, true);
}
if (i == 1) {
world.setBlockMetadataWithNotify(x, y, z, 3, 2);
if(MultiblockHandler.checkSpace(world, x, y, z, MultiblockHandler.turbofanDimensionSouth)) {
MultiblockHandler.fillUp(world, x, y, z, MultiblockHandler.turbofanDimensionSouth, ModBlocks.dummy_block_turbofan);
//
//
} else
world.func_147480_a(x, y, z, true);
}
if (i == 2) {
world.setBlockMetadataWithNotify(x, y, z, 4, 2);
if(MultiblockHandler.checkSpace(world, x, y, z, MultiblockHandler.turbofanDimensionWest)) {
MultiblockHandler.fillUp(world, x, y, z, MultiblockHandler.turbofanDimensionWest, ModBlocks.dummy_block_turbofan);
//
//
} else
world.func_147480_a(x, y, z, true);
}
if (i == 3) {
world.setBlockMetadataWithNotify(x, y, z, 2, 2);
if(MultiblockHandler.checkSpace(world, x, y, z, MultiblockHandler.turbofanDimensionNorth)) {
MultiblockHandler.fillUp(world, x, y, z, MultiblockHandler.turbofanDimensionNorth, ModBlocks.dummy_block_turbofan);
//
//
} else
world.func_147480_a(x, y, z, true);
}
}
}

View File

@ -63,6 +63,10 @@ public class MultiblockHandler {
public static final int[] pumpjackDimensionEast = new int[] { 0, 6, 4, 0, 1, 1 };
public static final int[] pumpjackDimensionSouth = new int[] { 1, 1, 4, 0, 0, 6 };
public static final int[] pumpjackDimensionWest = new int[] { 6, 0, 4, 0, 1, 1 };
public static final int[] turbofanDimensionNorth = new int[] { 1, 1, 2, 0, 4, 3 };
public static final int[] turbofanDimensionEast = new int[] { 3, 4, 2, 0, 1, 1 };
public static final int[] turbofanDimensionSouth = new int[] { 1, 1, 2, 0, 3, 4 };
public static final int[] turbofanDimensionWest = new int[] { 4, 3, 2, 0, 1, 1 };
//Approved!
public static boolean checkSpace(World world, int x, int y, int z, int[] i) {

View File

@ -2118,6 +2118,334 @@ public class MachineRecipes {
list.add(new ItemStack(ModItems.wire_red_copper, 8));
list.add(new ItemStack(ModItems.circuit_red_copper, 4));
break;
case CHEMPLANT:
list.add(new ItemStack(ModItems.ingot_steel, 8));
list.add(new ItemStack(ModItems.plate_copper, 6));
list.add(new ItemStack(ModItems.hull_small_steel, 2));
list.add(new ItemStack(ModItems.tank_steel, 4));
list.add(new ItemStack(ModItems.hull_big_steel, 1));
list.add(new ItemStack(ModItems.wire_red_copper, 16));
list.add(new ItemStack(ModItems.wire_tungsten, 3));
list.add(new ItemStack(ModItems.circuit_copper, 4));
list.add(new ItemStack(ModItems.circuit_red_copper, 2));
break;
case TANK:
list.add(new ItemStack(ModItems.ingot_steel, 2));
list.add(new ItemStack(ModItems.plate_steel, 6));
list.add(new ItemStack(ModItems.hull_big_steel, 4));
break;
case MINER:
list.add(new ItemStack(ModItems.ingot_steel, 4));
list.add(new ItemStack(ModItems.plate_titanium, 6));
list.add(new ItemStack(ModItems.wire_red_copper, 4));
list.add(new ItemStack(ModItems.circuit_copper, 2));
list.add(new ItemStack(ModItems.motor, 1));
list.add(new ItemStack(ModItems.ingot_dura_steel, 6));
list.add(new ItemStack(ModItems.bolt_dura_steel, 2));
list.add(new ItemStack(ModItems.drill_titanium, 1));
break;
case SCHRABTRANS:
list.add(new ItemStack(ModItems.ingot_titanium, 6));
list.add(new ItemStack(ModItems.plate_advanced_alloy, 12));
list.add(new ItemStack(ModItems.plate_combine_steel, 4));
list.add(new ItemStack(ModItems.telepad, 1));
list.add(new ItemStack(ModItems.entanglement_kit, 1));
list.add(new ItemStack(ModBlocks.machine_battery, 5));
list.add(new ItemStack(ModItems.coil_magnetized_tungsten, 4));
break;
case CMB_FURNACE:
list.add(new ItemStack(ModItems.ingot_steel, 8));
list.add(new ItemStack(ModItems.plate_titanium, 4));
list.add(new ItemStack(ModItems.plate_copper, 6));
list.add(new ItemStack(ModItems.circuit_gold, 6));
list.add(new ItemStack(ModItems.coil_advanced_alloy, 8));
list.add(new ItemStack(ModItems.coil_tungsten, 4));
list.add(new ItemStack(ModItems.ingot_magnetized_tungsten, 12));
break;
case FA_HULL:
list.add(new ItemStack(ModItems.ingot_advanced_alloy, 4));
list.add(new ItemStack(ModItems.plate_advanced_alloy, 4));
list.add(new ItemStack(ModItems.wire_advanced_alloy, 6));
break;
case FA_HATCH:
list.add(new ItemStack(ModItems.ingot_advanced_alloy, 4));
list.add(new ItemStack(ModItems.plate_advanced_alloy, 4));
list.add(new ItemStack(ModItems.plate_steel, 8));
list.add(new ItemStack(ModItems.coil_advanced_alloy, 2));
break;
case FA_CORE:
list.add(new ItemStack(ModItems.ingot_advanced_alloy, 6));
list.add(new ItemStack(ModItems.plate_advanced_alloy, 6));
list.add(new ItemStack(ModItems.plate_steel, 8));
list.add(new ItemStack(ModItems.coil_advanced_alloy, 2));
list.add(new ItemStack(ModItems.motor, 16));
list.add(new ItemStack(Blocks.piston, 6));
break;
case FA_PORT:
list.add(new ItemStack(ModItems.ingot_advanced_alloy, 8));
list.add(new ItemStack(ModItems.plate_advanced_alloy, 6));
list.add(new ItemStack(ModItems.wire_advanced_alloy, 4));
list.add(new ItemStack(ModItems.fuse, 6));
break;
case LR_ELEMENT:
list.add(new ItemStack(ModItems.ingot_steel, 4));
list.add(new ItemStack(ModItems.neutron_reflector, 2));
list.add(new ItemStack(ModItems.plate_lead, 2));
list.add(new ItemStack(ModItems.rod_empty, 3));
break;
case LR_HATCH:
list.add(new ItemStack(ModBlocks.brick_concrete, 1));
list.add(new ItemStack(ModItems.plate_steel, 6));
break;
case LR_PORT:
list.add(new ItemStack(ModItems.ingot_steel, 8));
list.add(new ItemStack(ModItems.ingot_red_copper, 2));
list.add(new ItemStack(ModItems.wire_red_copper, 4));
list.add(new ItemStack(ModItems.fuse, 6));
break;
case LR_CORE:
list.add(new ItemStack(ModBlocks.reactor_conductor, 2));
list.add(new ItemStack(ModItems.circuit_red_copper, 12));
list.add(new ItemStack(ModItems.circuit_gold, 4));
break;
case LF_MAGNET:
list.add(new ItemStack(ModItems.plate_steel, 10));
list.add(new ItemStack(ModItems.coil_advanced_alloy, 5));
break;
case LF_CENTER:
list.add(new ItemStack(ModItems.ingot_tungsten, 4));
list.add(new ItemStack(ModItems.plate_steel, 6));
list.add(new ItemStack(ModItems.wire_advanced_alloy, 24));
break;
case LF_MOTOR:
list.add(new ItemStack(ModItems.ingot_titanium, 4));
list.add(new ItemStack(ModItems.ingot_steel, 2));
list.add(new ItemStack(ModItems.motor, 4));
break;
case LF_HEATER:
list.add(new ItemStack(ModItems.ingot_tungsten, 4));
list.add(new ItemStack(ModItems.neutron_reflector, 6));
list.add(new ItemStack(ModItems.magnetron, 4));
list.add(new ItemStack(ModItems.wire_advanced_alloy, 4));
break;
case LF_HATCH:
list.add(new ItemStack(ModBlocks.fusion_heater, 1));
list.add(new ItemStack(ModItems.plate_titanium, 6));
break;
case LF_CORE:
list.add(new ItemStack(ModBlocks.fusion_center, 3));
list.add(new ItemStack(ModItems.circuit_red_copper, 48));
list.add(new ItemStack(ModItems.circuit_gold, 12));
break;
case LW_ELEMENT:
list.add(new ItemStack(ModItems.ingot_tungsten, 4));
list.add(new ItemStack(ModItems.plate_advanced_alloy, 6));
list.add(new ItemStack(ModItems.rod_empty, 4));
list.add(new ItemStack(ModItems.wire_magnetized_tungsten, 2));
list.add(new ItemStack(ModItems.circuit_red_copper, 1));
break;
case LW_CONTROL:
list.add(new ItemStack(ModItems.ingot_tungsten, 4));
list.add(new ItemStack(ModItems.ingot_advanced_alloy, 4));
list.add(new ItemStack(ModItems.ingot_lead, 2));
list.add(new ItemStack(ModItems.wire_magnetized_tungsten, 4));
list.add(new ItemStack(ModItems.circuit_copper, 2));
break;
case LW_COOLER:
list.add(new ItemStack(ModItems.ingot_tungsten, 2));
list.add(new ItemStack(ModItems.ingot_steel, 2));
list.add(new ItemStack(ModItems.niter, 6));
list.add(new ItemStack(ModItems.powder_quartz, 4));
break;
case LW_STRUTURE:
list.add(new ItemStack(ModItems.ingot_tungsten, 2));
list.add(new ItemStack(ModItems.ingot_lead, 2));
list.add(new ItemStack(ModItems.ingot_steel, 5));
break;
case LW_HATCH:
list.add(new ItemStack(ModBlocks.reinforced_brick, 1));
list.add(new ItemStack(ModItems.plate_titanium, 6));
break;
case LW_PORT:
list.add(new ItemStack(ModItems.ingot_tungsten, 2));
list.add(new ItemStack(ModItems.ingot_lead, 2));
list.add(new ItemStack(ModItems.ingot_steel, 2));
list.add(new ItemStack(ModItems.wire_red_copper, 6));
list.add(new ItemStack(ModItems.wire_magnetized_tungsten, 2));
list.add(new ItemStack(ModItems.fuse, 4));
break;
case LW_CORE:
list.add(new ItemStack(ModBlocks.block_meteor, 1));
list.add(new ItemStack(ModItems.circuit_gold, 8));
list.add(new ItemStack(ModItems.circuit_schrabidium, 2));
list.add(new ItemStack(ModItems.wire_magnetized_tungsten, 12));
break;
case FW_MAGNET:
list.add(new ItemStack(ModItems.plate_combine_steel, 10));
list.add(new ItemStack(ModItems.coil_magnetized_tungsten, 5));
break;
case FW_COMPUTER:
list.add(new ItemStack(ModBlocks.block_meteor, 1));
list.add(new ItemStack(ModItems.wire_magnetized_tungsten, 16));
list.add(new ItemStack(ModItems.powder_diamond, 6));
list.add(new ItemStack(ModItems.powder_magnetized_tungsten, 6));
list.add(new ItemStack(ModItems.powder_desh, 4));
break;
case FW_CORE:
list.add(new ItemStack(ModBlocks.block_meteor, 1));
list.add(new ItemStack(ModItems.wire_magnetized_tungsten, 24));
list.add(new ItemStack(ModItems.powder_diamond, 8));
list.add(new ItemStack(ModItems.powder_magnetized_tungsten, 12));
list.add(new ItemStack(ModItems.powder_desh, 8));
list.add(new ItemStack(ModItems.upgrade_power_3, 1));
list.add(new ItemStack(ModItems.upgrade_speed_3, 1));
break;
case GADGET:
list.add(new ItemStack(ModItems.sphere_steel, 1));
list.add(new ItemStack(ModItems.fins_flat, 2));
list.add(new ItemStack(ModItems.pedestal_steel, 1));
list.add(new ItemStack(ModItems.circuit_red_copper, 1));
list.add(new ItemStack(ModItems.wire_gold, 6));
list.add(new ItemStack(Items.dye, 6, 8));
break;
case LITTLE_BOY:
list.add(new ItemStack(ModItems.hull_small_steel, 2));
list.add(new ItemStack(ModItems.fins_small_steel, 1));
list.add(new ItemStack(ModItems.circuit_copper, 1));
list.add(new ItemStack(ModItems.wire_aluminium, 6));
list.add(new ItemStack(Items.dye, 4, 4));
break;
case FAT_MAN:
list.add(new ItemStack(ModItems.sphere_steel, 1));
list.add(new ItemStack(ModItems.hull_big_steel, 2));
list.add(new ItemStack(ModItems.fins_big_steel, 1));
list.add(new ItemStack(ModItems.circuit_copper, 1));
list.add(new ItemStack(ModItems.wire_copper, 6));
list.add(new ItemStack(Items.dye, 6, 11));
break;
case IVY_MIKE:
list.add(new ItemStack(ModItems.sphere_steel, 1));
list.add(new ItemStack(ModItems.hull_big_aluminium, 4));
list.add(new ItemStack(ModItems.cap_aluminium, 1));
list.add(new ItemStack(ModItems.circuit_gold, 4));
list.add(new ItemStack(ModItems.wire_gold, 18));
list.add(new ItemStack(Items.dye, 12, 7));
break;
case TSAR_BOMB:
list.add(new ItemStack(ModItems.sphere_steel, 1));
list.add(new ItemStack(ModItems.hull_big_titanium, 6));
list.add(new ItemStack(ModItems.hull_small_steel, 2));
list.add(new ItemStack(ModItems.fins_tri_steel, 1));
list.add(new ItemStack(ModItems.circuit_gold, 6));
list.add(new ItemStack(ModItems.wire_gold, 24));
list.add(new ItemStack(ModItems.wire_tungsten, 12));
list.add(new ItemStack(Items.dye, 6, 0));
break;
case PROTOTYPE:
list.add(new ItemStack(ModItems.dysfunctional_reactor, 1));
list.add(new ItemStack(ModItems.hull_small_steel, 2));
list.add(new ItemStack(ModItems.ingot_euphemium, 3, 34));
list.add(new ItemStack(ModItems.circuit_gold, 2));
list.add(new ItemStack(ModItems.wire_gold, 16));
break;
case FLEIJA:
list.add(new ItemStack(ModItems.hull_small_aluminium, 1));
list.add(new ItemStack(ModItems.fins_quad_titanium, 1));
list.add(new ItemStack(ModItems.circuit_gold, 2));
list.add(new ItemStack(ModItems.wire_gold, 8));
list.add(new ItemStack(Items.dye, 4, 15));
break;
case CUSTOM_NUKE:
list.add(new ItemStack(ModItems.hull_small_steel, 2));
list.add(new ItemStack(ModItems.fins_small_steel, 1));
list.add(new ItemStack(ModItems.circuit_gold, 1));
list.add(new ItemStack(ModItems.wire_gold, 12));
list.add(new ItemStack(Items.dye, 4, 8));
break;
case BOMB_LEV:
list.add(new ItemStack(ModItems.plate_titanium, 12));
list.add(new ItemStack(ModItems.levitation_unit, 1));
list.add(new ItemStack(ModItems.circuit_gold, 4));
list.add(new ItemStack(ModItems.wire_gold, 6));
break;
case BOMB_ENDO:
list.add(new ItemStack(ModItems.plate_titanium, 12));
list.add(new ItemStack(ModItems.thermo_unit_endo, 1));
list.add(new ItemStack(ModItems.circuit_gold, 2));
list.add(new ItemStack(ModItems.wire_gold, 6));
break;
case BOMB_EXO:
list.add(new ItemStack(ModItems.plate_titanium, 12));
list.add(new ItemStack(ModItems.thermo_unit_exo, 1));
list.add(new ItemStack(ModItems.circuit_gold, 2));
list.add(new ItemStack(ModItems.wire_gold, 6));
break;
case LAUNCH_PAD:
list.add(new ItemStack(ModItems.ingot_steel, 4));
list.add(new ItemStack(ModItems.plate_steel, 12));
list.add(new ItemStack(ModBlocks.machine_battery, 1));
list.add(new ItemStack(ModItems.circuit_gold, 2));
break;
case HUNTER_CHOPPER:
list.add(new ItemStack(ModItems.chopper_blades, 5));
list.add(new ItemStack(ModItems.chopper_gun, 1));
list.add(new ItemStack(ModItems.chopper_head, 1));
list.add(new ItemStack(ModItems.chopper_tail, 1));
list.add(new ItemStack(ModItems.chopper_torso, 1));
list.add(new ItemStack(ModItems.chopper_wing, 2));
break;
case MISSILE_HE_1:
list.add(new ItemStack(ModItems.warhead_generic_small, 1));
list.add(new ItemStack(ModItems.fuel_tank_small, 1));
list.add(new ItemStack(ModItems.thruster_small, 1));
list.add(new ItemStack(ModItems.plate_titanium, 6));
break;
case MISSILE_FIRE_1:
list.add(new ItemStack(ModItems.warhead_incendiary_small, 1));
list.add(new ItemStack(ModItems.fuel_tank_small, 1));
list.add(new ItemStack(ModItems.thruster_small, 1));
list.add(new ItemStack(ModItems.plate_titanium, 6));
break;
case MISSILE_CLUSTER_1:
list.add(new ItemStack(ModItems.warhead_cluster_small, 1));
list.add(new ItemStack(ModItems.fuel_tank_small, 1));
list.add(new ItemStack(ModItems.thruster_small, 1));
list.add(new ItemStack(ModItems.plate_titanium, 6));
break;
case MISSILE_BUSTER_1:
list.add(new ItemStack(ModItems.warhead_buster_small, 1));
list.add(new ItemStack(ModItems.fuel_tank_small, 1));
list.add(new ItemStack(ModItems.thruster_small, 1));
list.add(new ItemStack(ModItems.plate_titanium, 6));
break;
case MISSILE_HE_2:
list.add(new ItemStack(ModItems.warhead_generic_medium, 1));
list.add(new ItemStack(ModItems.fuel_tank_medium, 1));
list.add(new ItemStack(ModItems.thruster_medium, 1));
list.add(new ItemStack(ModItems.plate_titanium, 10));
list.add(new ItemStack(ModItems.plate_steel, 14));
break;
case MISSILE_FIRE_2:
list.add(new ItemStack(ModItems.warhead_incendiary_medium, 1));
list.add(new ItemStack(ModItems.fuel_tank_medium, 1));
list.add(new ItemStack(ModItems.thruster_medium, 1));
list.add(new ItemStack(ModItems.plate_titanium, 10));
list.add(new ItemStack(ModItems.plate_steel, 14));
break;
case MISSILE_CLUSTER_2:
list.add(new ItemStack(ModItems.warhead_cluster_medium, 1));
list.add(new ItemStack(ModItems.fuel_tank_medium, 1));
list.add(new ItemStack(ModItems.thruster_medium, 1));
list.add(new ItemStack(ModItems.plate_titanium, 10));
list.add(new ItemStack(ModItems.plate_steel, 14));
break;
case MISSILE_BUSTER_2:
list.add(new ItemStack(ModItems.warhead_buster_medium, 1));
list.add(new ItemStack(ModItems.fuel_tank_medium, 1));
list.add(new ItemStack(ModItems.thruster_medium, 1));
list.add(new ItemStack(ModItems.plate_titanium, 10));
list.add(new ItemStack(ModItems.plate_steel, 14));
break;
default:
list.add(new ItemStack(Items.stick));
break;
@ -2464,7 +2792,7 @@ public class MachineRecipes {
case REFINERY:
output = new ItemStack(ModBlocks.machine_refinery, 1);
break;
/*case CHEMPLANT:
case CHEMPLANT:
output = new ItemStack(ModBlocks.machine_refinery, 1);
break;
case TANK:
@ -2613,7 +2941,7 @@ public class MachineRecipes {
break;
case MISSILE_BUSTER_2:
output = new ItemStack(ModItems.missile_buster_strong, 1);
break;*/
break;
default:
output = new ItemStack(Items.stick, 1);
break;

View File

@ -300,6 +300,9 @@ public class ModItems {
public static Item chopper_blades;
public static Item combine_scrap;
public static Item shimmer_head;
public static Item shimmer_handle;
public static Item telepad;
public static Item entanglement_kit;
@ -808,12 +811,18 @@ public class ModItems {
public static Item elec_pickaxe;
public static Item elec_axe;
public static Item elec_shovel;
public static Item desh_sword;
public static Item desh_pickaxe;
public static Item desh_axe;
public static Item desh_shovel;
public static Item desh_hoe;
public static Item matchstick;
public static Item mask_of_infamy;
public static Item schrabidium_hammer;
public static Item shimmer_sledge;
public static Item bottle_opener;
public static Item crowbar;
@ -1260,6 +1269,9 @@ public class ModItems {
chopper_blades = new Item().setUnlocalizedName("chopper_blades").setCreativeTab(MainRegistry.tabParts).setTextureName(RefStrings.MODID + ":chopper_blades");
combine_scrap = new Item().setUnlocalizedName("combine_scrap").setCreativeTab(MainRegistry.tabParts).setTextureName(RefStrings.MODID + ":combine_scrap");
shimmer_head = new Item().setUnlocalizedName("shimmer_head").setCreativeTab(MainRegistry.tabParts).setTextureName(RefStrings.MODID + ":shimmer_head");
shimmer_handle = new Item().setUnlocalizedName("shimmer_handle").setCreativeTab(MainRegistry.tabParts).setTextureName(RefStrings.MODID + ":shimmer_handle");
telepad = new Item().setUnlocalizedName("telepad").setCreativeTab(MainRegistry.tabParts).setTextureName(RefStrings.MODID + ":telepad");
entanglement_kit = new Item().setUnlocalizedName("entanglement_kit").setCreativeTab(MainRegistry.tabParts).setTextureName(RefStrings.MODID + ":entanglement_kit");
@ -1808,6 +1820,11 @@ public class ModItems {
elec_pickaxe = new ModPickaxe(MainRegistry.enumToolMaterialElec).setUnlocalizedName("elec_pickaxe").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":elec_drill_anim");
elec_axe = new ModAxe(MainRegistry.enumToolMaterialElec).setUnlocalizedName("elec_axe").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":elec_chainsaw_anim");
elec_shovel = new ModSpade(MainRegistry.enumToolMaterialElec).setUnlocalizedName("elec_shovel").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":elec_shovel_anim");
desh_sword = new ModSword(MainRegistry.enumToolMaterialDesh).setUnlocalizedName("desh_sword").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":desh_sword");
desh_pickaxe = new ModPickaxe(MainRegistry.enumToolMaterialDesh).setUnlocalizedName("desh_pickaxe").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":desh_pickaxe");
desh_axe = new ModAxe(MainRegistry.enumToolMaterialDesh).setUnlocalizedName("desh_axe").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":desh_axe");
desh_shovel = new ModSpade(MainRegistry.enumToolMaterialDesh).setUnlocalizedName("desh_shovel").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":desh_shovel");
desh_hoe = new ModHoe(MainRegistry.enumToolMaterialDesh).setUnlocalizedName("desh_hoe").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":desh_hoe");
mask_of_infamy = new MaskOfInfamy(ArmorMaterial.IRON, 8, 0).setUnlocalizedName("mask_of_infamy").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":mask_of_infamy");
@ -1834,6 +1851,7 @@ public class ModItems {
cape_vertice = new ArmorModel(MainRegistry.enumArmorMaterialEmerald, 9, 1).setUnlocalizedName("cape_vertice").setCreativeTab(MainRegistry.tabNuke).setMaxStackSize(1).setTextureName(RefStrings.MODID + ":cape_unknown");
schrabidium_hammer = new WeaponSpecial(MainRegistry.enumToolMaterialHammer).setUnlocalizedName("schrabidium_hammer").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":schrabidium_hammer");
shimmer_sledge = new WeaponSpecial(MainRegistry.enumToolMaterialSledge).setUnlocalizedName("shimmer_sledge").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":shimmer_sledge");
bottle_opener = new WeaponSpecial(MainRegistry.enumToolMaterialBottleOpener).setUnlocalizedName("bottle_opener").setCreativeTab(MainRegistry.tabNuke).setMaxStackSize(1).setTextureName(RefStrings.MODID + ":bottle_opener");
euphemium_stopper = new ItemSyringe().setUnlocalizedName("euphemium_stopper").setMaxStackSize(1).setFull3D().setTextureName(RefStrings.MODID + ":euphemium_stopper");
matchstick = new ItemMatch().setUnlocalizedName("matchstick").setCreativeTab(CreativeTabs.tabTools).setFull3D().setTextureName(RefStrings.MODID + ":matchstick");
@ -2240,6 +2258,10 @@ public class ModItems {
GameRegistry.registerItem(chopper_blades, chopper_blades.getUnlocalizedName());
GameRegistry.registerItem(combine_scrap, combine_scrap.getUnlocalizedName());
//Hammer Parts
GameRegistry.registerItem(shimmer_head, shimmer_head.getUnlocalizedName());
GameRegistry.registerItem(shimmer_handle, shimmer_handle.getUnlocalizedName());
//Circuits
GameRegistry.registerItem(circuit_aluminium, circuit_aluminium.getUnlocalizedName());
GameRegistry.registerItem(circuit_copper, circuit_copper.getUnlocalizedName());
@ -2671,6 +2693,7 @@ public class ModItems {
//Tools
GameRegistry.registerItem(schrabidium_sword, schrabidium_sword.getUnlocalizedName());
GameRegistry.registerItem(schrabidium_hammer, schrabidium_hammer.getUnlocalizedName());
GameRegistry.registerItem(shimmer_sledge, shimmer_sledge.getUnlocalizedName());
GameRegistry.registerItem(schrabidium_pickaxe, schrabidium_pickaxe.getUnlocalizedName());
GameRegistry.registerItem(schrabidium_axe, schrabidium_axe.getUnlocalizedName());
GameRegistry.registerItem(schrabidium_shovel, schrabidium_shovel.getUnlocalizedName());
@ -2695,6 +2718,11 @@ public class ModItems {
GameRegistry.registerItem(cmb_axe, cmb_axe.getUnlocalizedName());
GameRegistry.registerItem(cmb_shovel, cmb_shovel.getUnlocalizedName());
GameRegistry.registerItem(cmb_hoe, cmb_hoe.getUnlocalizedName());
GameRegistry.registerItem(desh_sword, desh_sword.getUnlocalizedName());
GameRegistry.registerItem(desh_pickaxe, desh_pickaxe.getUnlocalizedName());
GameRegistry.registerItem(desh_axe, desh_axe.getUnlocalizedName());
GameRegistry.registerItem(desh_shovel, desh_shovel.getUnlocalizedName());
GameRegistry.registerItem(desh_hoe, desh_hoe.getUnlocalizedName());
GameRegistry.registerItem(elec_sword, elec_sword.getUnlocalizedName());
GameRegistry.registerItem(elec_pickaxe, elec_pickaxe.getUnlocalizedName());
GameRegistry.registerItem(elec_axe, elec_axe.getUnlocalizedName());

View File

@ -4,17 +4,21 @@ import java.util.List;
import java.util.Random;
import com.google.common.collect.Multimap;
import com.hbm.entity.projectile.EntityRubble;
import com.hbm.items.ModItems;
import com.hbm.main.MainRegistry;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.attributes.AttributeModifier;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
public class WeaponSpecial extends ItemSword {
@ -34,6 +38,9 @@ public class WeaponSpecial extends ItemSword {
if(this == ModItems.ullapool_caber) {
return EnumRarity.uncommon;
}
if(this == ModItems.shimmer_sledge) {
return EnumRarity.epic;
}
return EnumRarity.common;
}
@ -75,6 +82,54 @@ public class WeaponSpecial extends ItemSword {
stack.damageItem(505, entityPlayer);
}
if(this == ModItems.shimmer_sledge) {
Vec3 vec = entityPlayer.getLookVec();
double dX = vec.xCoord * 5;
double dY = vec.yCoord * 5;
double dZ = vec.zCoord * 5;
entity.motionX += dX;
entity.motionY += dY;
entity.motionZ += dZ;
world.playSoundAtEntity(entity, "hbm:weapon.bang", 3.0F, 1.F);
}
return false;
}
@Override
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int i, float f1, float f2, float f3)
{
if(this == ModItems.shimmer_sledge) {
if(world.getBlock(x, y, z) != Blocks.air) {
EntityRubble rubble = new EntityRubble(world);
rubble.posX = x + 0.5F;
rubble.posY = y;
rubble.posZ = z + 0.5F;
rubble.setMetaBasedOnMat(world.getBlock(x, y, z).getMaterial());
Vec3 vec = player.getLookVec();
double dX = vec.xCoord * 5;
double dY = vec.yCoord * 5;
double dZ = vec.zCoord * 5;
rubble.motionX += dX;
rubble.motionY += dY;
rubble.motionZ += dZ;
world.playSoundAtEntity(rubble, "hbm:weapon.bang", 3.0F, 1.F);
if(!world.isRemote) {
world.spawnEntityInWorld(rubble);
world.func_147480_a(x, y, z, false);
}
}
return true;
}
return false;
}
@ -86,6 +141,9 @@ public class WeaponSpecial extends ItemSword {
if(this == ModItems.schrabidium_hammer) {
multimap.put(SharedMonsterAttributes.movementSpeed.getAttributeUnlocalizedName(), new AttributeModifier(field_111210_e, "Weapon modifier", -0.5, 1));
}
if(this == ModItems.shimmer_sledge) {
multimap.put(SharedMonsterAttributes.movementSpeed.getAttributeUnlocalizedName(), new AttributeModifier(field_111210_e, "Weapon modifier", -0.2, 1));
}
return multimap;
}
@ -104,6 +162,17 @@ public class WeaponSpecial extends ItemSword {
list.add("My very own bottle opener.");
list.add("Use with caution!");
}
if(this == ModItems.shimmer_sledge) {
if(MainRegistry.polaroidID == 11) {
list.add("shimmer no");
list.add("drop that hammer");
list.add("you're going to hurt somebody");
list.add("shimmer no");
list.add("shimmer pls");
} else {
list.add("Breaks everything, even portals.");
}
}
}
}

View File

@ -10,7 +10,7 @@ import net.minecraft.world.World;
public class ItemAntiCheat extends ItemCustomLore {
@Override
public void onUpdate(ItemStack stack, World world, Entity entity, int i, boolean b) {
public void onUpdate(ItemStack stack, World world, Entity entity, int j, boolean b) {
if(stack.getItemDamage() != 34) {
@ -23,7 +23,8 @@ public class ItemAntiCheat extends ItemCustomLore {
}
//entity.attackEntityFrom(ModDamageSource.cheater, Float.POSITIVE_INFINITY);
entity.attackEntityFrom(ModDamageSource.cheater, 10000);
for(int i = 0; i < 100; i++)
entity.attackEntityFrom(ModDamageSource.cheater, 10000);
//if(!world.isRemote)
// ExplosionChaos.antiCheat(world, (int)entity.posX, (int)entity.posY, (int)entity.posZ, 20);

View File

@ -31,12 +31,12 @@ public class ItemAssemblyTemplate extends Item {
LIMITER, ANGRY_METAL, CMB_TILE, CMB_BRICKS, HATCH_FRAME, HATCH_CONTROLLER, CENTRIFUGE,
BREEDING_REACTOR, RTG_FURNACE, DIESEL_GENERATOR, NUCLEAR_GENERATOR, INDUSTRIAL_GENERATOR, CYCLOTRON,
RT_GENERATOR, BATTERY, HE_TO_RF, RF_TO_HE, SHREDDER, DERRICK, FLARE_STACK,
REFINERY; /*, CHEMPLANT, TANK, MINER, SCHRABTRANS, CMB_FURNACE, FA_HULL, FA_HATCH, FA_CORE, FA_PORT,
REFINERY, CHEMPLANT, TANK, MINER, SCHRABTRANS, CMB_FURNACE, FA_HULL, FA_HATCH, FA_CORE, FA_PORT,
LR_ELEMENT, LR_HATCH, LR_PORT, LR_CORE, LF_MAGNET, LF_CENTER, LF_MOTOR, LF_HEATER, LF_HATCH, LF_CORE,
LW_ELEMENT, LW_CONTROL, LW_COOLER, LW_STRUTURE, LW_HATCH, LW_PORT, LW_CORE, FW_MAGNET, FW_COMPUTER,
FW_CORE, GADGET, LITTLE_BOY, FAT_MAN, IVY_MIKE, TSAR_BOMB, PROTOTYPE, FLEIJA, CUSTOM_NUKE, BOMB_LEV,
BOMB_ENDO, BOMB_EXO, LAUNCH_PAD, HUNTER_CHOPPER, MISSILE_HE_1, MISSILE_FIRE_1, MISSILE_CLUSTER_1,
MISSILE_BUSTER_1, MISSILE_HE_2, MISSILE_FIRE_2, MISSILE_CLUSTER_2, MISSILE_BUSTER_2;*/
MISSILE_BUSTER_1, MISSILE_HE_2, MISSILE_FIRE_2, MISSILE_CLUSTER_2, MISSILE_BUSTER_2;
//private final int value;
//private EnumAssemblyTemplate(int value) {
@ -311,7 +311,7 @@ public class ItemAssemblyTemplate extends Item {
return 200;
case REFINERY:
return 350;
/*case CHEMPLANT:
case CHEMPLANT:
return 200;
case TANK:
return 150;
@ -410,7 +410,7 @@ public class ItemAssemblyTemplate extends Item {
case MISSILE_CLUSTER_2:
return 250;
case MISSILE_BUSTER_2:
return 250;*/
return 250;
default:
return 100;
}

View File

@ -215,6 +215,7 @@ import com.hbm.render.tileentity.RenderTestBombAdvanced;
import com.hbm.render.tileentity.RenderTestContainer;
import com.hbm.render.tileentity.RenderTestMissile;
import com.hbm.render.tileentity.RenderTestRender;
import com.hbm.render.tileentity.RenderTurbofan;
import com.hbm.render.tileentity.RenderUF6Tank;
import com.hbm.render.tileentity.RenderYellowBarrel;
import com.hbm.render.tileentity.RendererObjTester;
@ -245,6 +246,7 @@ import com.hbm.tileentity.TileEntityMachineGasFlare;
import com.hbm.tileentity.TileEntityMachinePuF6Tank;
import com.hbm.tileentity.TileEntityMachinePumpjack;
import com.hbm.tileentity.TileEntityMachineRefinery;
import com.hbm.tileentity.TileEntityMachineTurbofan;
import com.hbm.tileentity.TileEntityMachineUF6Tank;
import com.hbm.tileentity.TileEntityNukeBoy;
import com.hbm.tileentity.TileEntityNukeCustom;
@ -317,6 +319,7 @@ public class ClientProxy extends ServerProxy
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTurretFlamer.class, new RenderFlamerTurret());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTurretTau.class, new RenderTauTurret());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMachinePumpjack.class, new RenderPumpjack());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMachineTurbofan.class, new RenderTurbofan());
//RenderingRegistry.registerEntityRenderingHandler(EntityRocket.class, new RenderRocket());
RenderingRegistry.registerEntityRenderingHandler(EntityRocket.class, new RenderSnowball(ModItems.man_core));

View File

@ -110,6 +110,7 @@ public class CraftingManager {
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 ShapelessOreRecipe(new ItemStack(ModItems.ingot_uranium_fuel, 1), new Object[] { "nuggetUranium235", "nuggetUranium235", "nuggetUranium235", "nuggetUranium238", "nuggetUranium238", "nuggetUranium238", "nuggetUranium238", "nuggetUranium238", "nuggetUranium238" }));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.ingot_plutonium_fuel, 1), new Object[] { "nuggetPlutonium238", "nuggetPlutonium239", "nuggetPlutonium239", "nuggetPlutonium239", "nuggetPlutonium239", "nuggetPlutonium239", "nuggetPlutonium240", "nuggetPlutonium240", "nuggetPlutonium240" }));
@ -145,6 +146,7 @@ public class CraftingManager {
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_plutonium, 1), new Object[] { "###", "###", "###", '#', ModItems.nugget_plutonium });
GameRegistry.addRecipe(new ItemStack(ModItems.nugget_plutonium, 9), new Object[] { "#", '#', ModItems.ingot_plutonium });
@ -442,6 +444,9 @@ public class CraftingManager {
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.rotor_steel, 3), new Object[] { "CCC", "SSS", "CCC", 'C', ModItems.coil_gold, 'S', "ingotSteel" }));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.generator_steel, 1), new Object[] { "RRR", "CCC", "SSS", 'C', ModItems.coil_gold_torus, 'S', "ingotSteel", 'R', ModItems.rotor_steel }));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.generator_front, 1), new Object[] { "PSP", "TBT", "TWT", 'P', "plateSteel", 'S', "ingotSteel", 'T', ModItems.tank_steel, 'B', ModItems.turbine_titanium, 'W', ModBlocks.red_wire_coated }));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.shimmer_head, 1), new Object[] { "SSS", "DTD", "SSS", 'S', "ingotSteel", 'D', "blockDesh", 'T', "blockTungsten" }));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.shimmer_handle, 1), new Object[] { "GP", "GP", "GP", 'G', "plateGold", 'P', "ingotPolymer" }));
GameRegistry.addRecipe(new ItemStack(ModItems.shimmer_sledge, 1), new Object[] { "H", "G", "G", 'G', ModItems.shimmer_handle, 'H', ModItems.shimmer_head });
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.toothpicks, 3), new Object[] { Items.stick, Items.stick, Items.stick });
GameRegistry.addShapedRecipe(new ItemStack(ModItems.ducttape, 6), new Object[] { "FSF", "SPS", "FSF", 'F', Items.string, 'S', Items.slime_ball, 'P', Items.paper });
@ -863,6 +868,11 @@ public class CraftingManager {
GameRegistry.addRecipe(new ItemStack(ModItems.elec_pickaxe, 1), new Object[] { "RDM", " PB", " P ", 'P', ModItems.ingot_polymer, 'D', ModItems.ingot_dura_steel, 'R', ModItems.bolt_dura_steel, 'M', ModItems.motor, 'B', ModItems.battery_generic });
GameRegistry.addRecipe(new ItemStack(ModItems.elec_axe, 1), new Object[] { " DP", "RRM", " PB", 'P', ModItems.ingot_polymer, 'D', ModItems.ingot_dura_steel, 'R', ModItems.bolt_dura_steel, 'M', ModItems.motor, 'B', ModItems.battery_generic });
GameRegistry.addRecipe(new ItemStack(ModItems.elec_shovel, 1), new Object[] { " P", "RRM", " B", 'P', ModItems.ingot_polymer, 'D', ModItems.ingot_dura_steel, 'R', ModItems.bolt_dura_steel, 'M', ModItems.motor, 'B', ModItems.battery_generic });
GameRegistry.addRecipe(new ItemStack(ModItems.desh_sword, 1), new Object[] { "I", "I", "S", 'I', ModItems.ingot_desh, 'S', Items.stick });
GameRegistry.addRecipe(new ItemStack(ModItems.desh_pickaxe, 1), new Object[] { "III", " S ", " S ", 'I', ModItems.ingot_desh, 'S', Items.stick });
GameRegistry.addRecipe(new ItemStack(ModItems.desh_axe, 1), new Object[] { "II", "IS", " S", 'I', ModItems.ingot_desh, 'S', Items.stick });
GameRegistry.addRecipe(new ItemStack(ModItems.desh_shovel, 1), new Object[] { "I", "S", "S", 'I', ModItems.ingot_desh, 'S', Items.stick });
GameRegistry.addRecipe(new ItemStack(ModItems.desh_hoe, 1), new Object[] { "II", " S", " S", 'I', ModItems.ingot_desh, 'S', Items.stick });
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.chainsaw, 1), new Object[] { "TTG", "SSM", 'T', "plateIron", 'S', "plateSteel", 'M', ModItems.motor, 'G', ModItems.circuit_gold }));
@ -1049,6 +1059,7 @@ public class CraftingManager {
GameRegistry.addSmelting(ModItems.powder_polymer, new ItemStack(ModItems.ingot_polymer), 1.0F);
GameRegistry.addSmelting(ModItems.powder_lanthanium, new ItemStack(ModItems.ingot_lanthanium), 1.0F);
GameRegistry.addSmelting(ModItems.powder_actinium, new ItemStack(ModItems.ingot_actinium), 1.0F);
GameRegistry.addSmelting(ModItems.powder_desh, new ItemStack(ModItems.ingot_desh), 1.0F);
GameRegistry.addSmelting(ModItems.combine_scrap, new ItemStack(ModItems.ingot_combine_steel), 1.0F);
GameRegistry.addSmelting(ModItems.tank_waste, new ItemStack(ModItems.tank_waste), 0.0F);

View File

@ -172,6 +172,7 @@ import com.hbm.tileentity.TileEntityMachineRefinery;
import com.hbm.tileentity.TileEntityMachineSchrabidiumTransmutator;
import com.hbm.tileentity.TileEntityMachineShredder;
import com.hbm.tileentity.TileEntityMachineTeleporter;
import com.hbm.tileentity.TileEntityMachineTurbofan;
import com.hbm.tileentity.TileEntityMachineUF6Tank;
import com.hbm.tileentity.TileEntityNukeBoy;
import com.hbm.tileentity.TileEntityNukeCustom;
@ -237,6 +238,7 @@ public class MainRegistry
public static ToolMaterial enumToolMaterialAlloy= EnumHelper.addToolMaterial("ALLOY", 3, 2000, 15.0F, 5.0F, 5);
public static ToolMaterial enumToolMaterialCmb = EnumHelper.addToolMaterial("CMB", 3, 8500, 40.0F, 55F, 100);
public static ToolMaterial enumToolMaterialElec = EnumHelper.addToolMaterial("ELEC", 3, 4700, 30.0F, 12.0F, 2);
public static ToolMaterial enumToolMaterialDesh = EnumHelper.addToolMaterial("DESH", 2, 0, 7.5F, 2.0F, 10);
public static ToolMaterial enumToolMaterialSaw = EnumHelper.addToolMaterial("SAW", 2, 750, 2.0F, 3.5F, 25);
public static ToolMaterial enumToolMaterialBat = EnumHelper.addToolMaterial("BAT", 0, 500, 1.5F, 3F, 25);
@ -246,6 +248,7 @@ public class MainRegistry
public static ToolMaterial enumToolMaterialPipeLead = EnumHelper.addToolMaterial("PIPELEAD", 1, 250, 1.5F, 5.5F, 25);
public static ToolMaterial enumToolMaterialBottleOpener = EnumHelper.addToolMaterial("OPENER", 1, 250, 1.5F, 0.5F, 200);
public static ToolMaterial enumToolMaterialSledge = EnumHelper.addToolMaterial("SHIMMERSLEDGE", 1, 0, 25.0F, 26F, 200);
public static ToolMaterial enumToolMaterialMultitool = EnumHelper.addToolMaterial("MULTITOOL", 3, 5000, 25F, 5.5F, 25);
@ -407,6 +410,7 @@ public class MainRegistry
enumToolMaterialAlloy.setRepairItem(new ItemStack(ModItems.ingot_advanced_alloy));
enumToolMaterialCmb.setRepairItem(new ItemStack(ModItems.ingot_combine_steel));
enumToolMaterialBottleOpener.setRepairItem(new ItemStack(ModItems.plate_steel));
enumToolMaterialDesh.setRepairItem(new ItemStack(ModItems.ingot_desh));
NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GUIHandler());
GameRegistry.registerTileEntity(TileEntityTestBombAdvanced.class, "tilentity_testbombadvanced");
@ -485,6 +489,7 @@ public class MainRegistry
GameRegistry.registerTileEntity(TileEntityTurretFlamer.class, "tileentity_turret_flamer");
GameRegistry.registerTileEntity(TileEntityTurretTau.class, "tileentity_turret_tau");
GameRegistry.registerTileEntity(TileEntityMachinePumpjack.class, "tileentity_machine_pumpjack");
GameRegistry.registerTileEntity(TileEntityMachineTurbofan.class, "tileentity_machine_turbofan");
EntityRegistry.registerModEntity(EntityRocket.class, "entity_rocket", 0, this, 250, 1, true);
EntityRegistry.registerModEntity(EntityNukeExplosion.class, "entity_nuke_explosion", 1, this, 250, 1, true);
@ -630,6 +635,7 @@ public class MainRegistry
OreDictionary.registerOre("ingotPolymer", ModItems.ingot_polymer);
OreDictionary.registerOre("ingotLanthanium", ModItems.ingot_lanthanium);
OreDictionary.registerOre("ingotActinium", ModItems.ingot_actinium);
OreDictionary.registerOre("ingotDesh", ModItems.ingot_desh);
OreDictionary.registerOre("dustFluorite", ModItems.fluorite);
OreDictionary.registerOre("nuggetLead", ModItems.nugget_lead);
OreDictionary.registerOre("nuggetUranium", ModItems.nugget_uranium);
@ -696,6 +702,20 @@ public class MainRegistry
OreDictionary.registerOre("dustPolymer", ModItems.powder_polymer);
OreDictionary.registerOre("dustLanthanium", ModItems.powder_lanthanium);
OreDictionary.registerOre("dustActinium", ModItems.powder_actinium);
OreDictionary.registerOre("dustDesh", ModItems.powder_desh);
OreDictionary.registerOre("dustNeptunium", ModItems.powder_neptunium);
OreDictionary.registerOre("dustIodine", ModItems.powder_iodine);
OreDictionary.registerOre("dustThorium", ModItems.powder_thorium);
OreDictionary.registerOre("dustAstatine", ModItems.powder_astatine);
OreDictionary.registerOre("dustNeodymium", ModItems.powder_neodymium);
OreDictionary.registerOre("dustCaesium", ModItems.powder_caesium);
OreDictionary.registerOre("dustStrontium", ModItems.powder_strontium);
OreDictionary.registerOre("dustCobalt", ModItems.fragment_cobalt);
OreDictionary.registerOre("dustBromine", ModItems.powder_bromine);
OreDictionary.registerOre("dustNiobium", ModItems.fragment_niobium);
OreDictionary.registerOre("dustTennessine", ModItems.powder_tennessine);
OreDictionary.registerOre("dustCerium", ModItems.powder_cerium);
OreDictionary.registerOre("gemCoal", Items.coal);
@ -748,6 +768,7 @@ public class MainRegistry
OreDictionary.registerOre("blockUnobtainium", ModBlocks.block_unobtainium);
OreDictionary.registerOre("blockDaffergon", ModBlocks.block_daffergon);
OreDictionary.registerOre("blockVerticium", ModBlocks.block_verticium);
OreDictionary.registerOre("blockDesh", ModBlocks.block_desh);
}
@EventHandler

View File

@ -51,8 +51,6 @@ public class ItemFolderPacket implements IMessage {
@Override
public IMessage onMessage(ItemFolderPacket m, MessageContext ctx) {
List<EntityPlayer> list = Minecraft.getMinecraft().theWorld.playerEntities;
//if(!Minecraft.getMinecraft().theWorld.isRemote)
EntityPlayer p = ctx.getServerHandler().playerEntity;

View File

@ -0,0 +1,80 @@
package com.hbm.render.tileentity;
import org.lwjgl.opengl.GL11;
import com.hbm.lib.RefStrings;
import com.hbm.main.ResourceManager;
import com.hbm.tileentity.TileEntityMachineIGenerator;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.AdvancedModelLoader;
import net.minecraftforge.client.model.IModelCustom;
public class RenderTurbofan extends TileEntitySpecialRenderer {
private ResourceLocation gadgetTexture = new ResourceLocation(RefStrings.MODID, "textures/models/TheGadget3_.png");
public RenderTurbofan() { }
int i;
@Override
public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float f)
{
i++;
GL11.glPushMatrix();
GL11.glTranslated(x + 0.5D, y, z + 0.5D);
GL11.glEnable(GL11.GL_LIGHTING);
GL11.glDisable(GL11.GL_CULL_FACE);
GL11.glRotatef(180, 0F, 1F, 0F);
GL11.glRotatef(270, 0F, 1F, 0F);
switch(tileEntity.getBlockMetadata())
{
case 2:
GL11.glRotatef(90, 0F, 1F, 0F); break;
case 4:
GL11.glRotatef(180, 0F, 1F, 0F); break;
case 3:
GL11.glRotatef(270, 0F, 1F, 0F); break;
case 5:
GL11.glRotatef(0, 0F, 1F, 0F); break;
}
bindTexture(gadgetTexture);
ResourceManager.turbofan_body.renderAll();
GL11.glPopMatrix();
renderTileEntityAt2(tileEntity, x, y, z, f);
}
public void renderTileEntityAt2(TileEntity tileEntity, double x, double y, double z, float f)
{
GL11.glPushMatrix();
GL11.glTranslated(x + 0.5D, y + 1.5D, z + 0.5D);
GL11.glEnable(GL11.GL_LIGHTING);
GL11.glDisable(GL11.GL_CULL_FACE);
GL11.glRotatef(180, 0F, 1F, 0F);
GL11.glRotatef(270, 0F, 1F, 0F);
switch(tileEntity.getBlockMetadata())
{
case 2:
GL11.glRotatef(90, 0F, 1F, 0F); break;
case 4:
GL11.glRotatef(180, 0F, 1F, 0F); break;
case 3:
GL11.glRotatef(270, 0F, 1F, 0F); break;
case 5:
GL11.glRotatef(0, 0F, 1F, 0F); break;
}
GL11.glRotatef(i, 0F, 0F, 1F);
bindTexture(gadgetTexture);
ResourceManager.turbofan_blades.renderAll();
GL11.glPopMatrix();
}
}

View File

@ -0,0 +1,7 @@
package com.hbm.tileentity;
import net.minecraft.tileentity.TileEntity;
public class TileEntityMachineTurbofan extends TileEntity {
}

View File

@ -43,9 +43,10 @@ public class TileEntityPylonRedWire extends TileEntity implements IConductor {
this.connected = TileEntityPylonRedWire.convertArrayToList(this.scheduleBuffer, worldObj);
}
if(!worldObj.isRemote) {}
if(!worldObj.isRemote)
if(!connected.isEmpty()) {
PacketDispatcher.wrapper.sendToAll(new TEPylonDestructorPacket(xCoord, yCoord, zCoord));
for(TileEntityPylonRedWire wire : connected)
PacketDispatcher.wrapper.sendToAll(new TEPylonSenderPacket(xCoord, yCoord, zCoord,
wire.xCoord, wire.yCoord, wire.zCoord));