Added plasma grenade, small fixes

This commit is contained in:
HbmMods 2016-03-17 18:59:25 +01:00
parent 888d14440e
commit b43a1eb5aa
52 changed files with 412 additions and 123 deletions

BIN
Factory1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 B

BIN
Factory2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
Factory3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 B

BIN
Fusion1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
Fusion2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
Fusion3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

BIN
Fusion4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
Fusion5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

2
Info.txt Normal file
View File

@ -0,0 +1,2 @@
The included images are schematics for all multiblock structures, layer by layer. If a block is seperated by a black line, it is interchangeable, such as the electricity ports of factories which are opitonal, the inner tungsten blanked of the fusion reactor which can be removed completely and the concrete arround the nuclear reactor (leaving out these potions will have it's downsites, such as less energy, missing ports or radiation)
The advanced factory can be built like the basic one, but with it's own parts.

BIN
Reachtor1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
Reachtor2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
Reachtor3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
Reachtor4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
Reachtor5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -106,11 +106,13 @@ tile.book_guide.name=Hbm's Nuclear Tech Mod Handbuch
tile.factory_titanium_hull.name=Einfache Fabrikshülle
tile.factory_titanium_furnace.name=Einfache Fabrikzugriffsluke
tile.factory_titanium_conductor.name=Einfacher Fabriksstromanschluss
tile.factory_titanium_core.name=Einfache Fabrikkernkomponente
item.factory_core_titanium.name=Einfacher Fabrikenergiecluster
container.factoryTitanium=Einfache Fabrik
tile.factory_advanced_hull.name=Fortgeschrittene Fabrikshülle
tile.factory_advanced_furnace.name=Fortgeschrittene Fabrikzugriffsluke
tile.factory_advanced_conductor.name=Fortgeschrittener Fabriksstromanschluss
tile.factory_advanced_core.name=Fortgeschrittene Fabrikkernkomponente
item.factory_core_advanced.name=Fortgeschrittener Fabrikenergiecluster
container.factoryAdvanced=Fortgeschrittene Fabrik
@ -118,7 +120,7 @@ container.factoryAdvanced=Fortgeschrittene Fabrik
tile.reactor_element.name=Reaktorkammer
tile.reactor_control.name=Steuerstäbe
tile.reactor_hatch.name=Kraftwerkszugriffsluke
tile.reactor_conductor.name=Stromanschluss
tile.reactor_conductor.name=Reaktorstromanschluss
tile.reactor_computer.name=Reaktorsteuerung
container.reactorMultiblock=Großer Atomreaktor
@ -389,6 +391,7 @@ item.grenade_flare.name=Blendgranate
item.grenade_electric.name=Blitzbombe
item.grenade_poison.name=Giftgranate
item.grenade_gas.name=Gasgranate
item.grenade_plasma.name=Plasmagranate
item.grenade_schrabidium.name=Schrabidiumgranate
item.grenade_nuke.name=Mark VI Bohrgranate
item.grenade_nuclear.name=Nuka-Granate
@ -618,4 +621,9 @@ item.alloy_shovel.name=Legierungsschaufel
item.alloy_hoe.name=Legierungsfeldhacke
tile.red_cable.name=Rotes Kupferkabel
tile.block_meteor.name=Meteoritenblock
tile.block_meteor.name=Meteoritenblock
item.cape_radiation.name=Cape (Radioaktiv)
item.cape_gasmask.name=Cape (Gasmaske)
item.cape_schrabidium.name=Cape (Schrabidisch)
item.cape_hbm.name=Hbms Cape

View File

@ -106,11 +106,13 @@ tile.book_guide.name=Hbm's Nuclear Tech Mod Manual
tile.factory_titanium_hull.name=Basic Factory Casing
tile.factory_titanium_furnace.name=Basic Factory Access Hatch
tile.factory_titanium_conductor.name=Basic Factory Electricity Port
tile.factory_titanium_core.name=Basic Factory Core Component
item.factory_core_titanium.name=Basic Factory Energy Cluster
container.factoryTitanium=Basic Factory
tile.factory_advanced_hull.name=Advanced Factory Casing
tile.factory_advanced_furnace.name=Advanced Factory Access Hatch
tile.factory_advanced_conductor.name=Advanced Factory Electricity Port
tile.factory_advanced_core.name=Advanced Factory Core Component
item.factory_core_advanced.name=Advanced Factory Energy Cluster
container.factoryAdvanced=Advanced Factory
@ -390,6 +392,7 @@ item.grenade_flare.name=Flare Grenade
item.grenade_electric.name=Lightning Bomb
item.grenade_poison.name=Poison Grenade
item.grenade_gas.name=Gas Grenade
item.grenade_plasma.name=Plasma Grenade
item.grenade_schrabidium.name=Schrabidium Grenade
item.grenade_nuke.name=Mark VI Drill Grenade
item.grenade_nuclear.name=Nuka Grenade
@ -619,4 +622,9 @@ item.alloy_shovel.name=Advanced Alloy Shovel
item.alloy_hoe.name=Advanced Alloy Hoe
tile.red_cable.name=Red Copper Cable
tile.block_meteor.name=Meteor Block
tile.block_meteor.name=Meteor Block
item.cape_radiation.name=Cape (Radiation)
item.cape_gasmask.name=Cape (Gas Mask)
item.cape_schrabidium.name=Cape (Schrabidic)
item.cape_hbm.name=Hbm's Cape

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

View File

@ -1,5 +1,6 @@
package com.hbm.blocks;
import com.hbm.items.ItemPlasmaBlock;
import com.hbm.items.ItemPrototypeBlock;
import com.hbm.items.ItemSchrabidiumBlock;
import com.hbm.lib.RefStrings;
@ -570,7 +571,7 @@ public class ModBlocks {
GameRegistry.registerBlock(fusion_heater, fusion_heater.getUnlocalizedName());
GameRegistry.registerBlock(fusion_hatch, fusion_hatch.getUnlocalizedName());
GameRegistry.registerBlock(fusion_core, fusion_core.getUnlocalizedName());
GameRegistry.registerBlock(plasma, plasma.getUnlocalizedName());
GameRegistry.registerBlock(plasma, ItemPlasmaBlock.class, plasma.getUnlocalizedName());
//Launch Pads
GameRegistry.registerBlock(launch_pad, launch_pad.getUnlocalizedName());

View File

@ -106,7 +106,9 @@ public class TestEventTester extends Block {
//ExplosionChaos.anvil(par1World, par2, par3 + 2, par4, 1);
//return true;
return false;
System.out.println(par5EntityPlayer.getCommandSenderName());
System.out.println(par5EntityPlayer.getUniqueID());
return true;
}
/*public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int i, float a, float b, float c)

View File

@ -179,7 +179,7 @@ public class TileEntityCoreAdvanced extends TileEntity implements ISidedInventor
world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord - 1) == ModBlocks.factory_advanced_hull &&
world.getBlock(this.xCoord + 1, this.yCoord - 1, this.zCoord - 1) == ModBlocks.factory_advanced_hull &&
world.getBlock(this.xCoord - 1, this.yCoord - 1, this.zCoord) == ModBlocks.factory_advanced_hull &&
world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord) == ModBlocks.factory_advanced_conductor &&
(world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord) == ModBlocks.factory_advanced_conductor || world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord) == ModBlocks.factory_advanced_hull) &&
world.getBlock(this.xCoord + 1, this.yCoord - 1, this.zCoord) == ModBlocks.factory_advanced_hull &&
world.getBlock(this.xCoord - 1, this.yCoord - 1, this.zCoord + 1) == ModBlocks.factory_advanced_hull &&
world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord + 1) == ModBlocks.factory_advanced_hull &&
@ -196,7 +196,7 @@ public class TileEntityCoreAdvanced extends TileEntity implements ISidedInventor
world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord - 1) == ModBlocks.factory_advanced_hull &&
world.getBlock(this.xCoord + 1, this.yCoord + 1, this.zCoord - 1) == ModBlocks.factory_advanced_hull &&
world.getBlock(this.xCoord - 1, this.yCoord + 1, this.zCoord) == ModBlocks.factory_advanced_hull &&
world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord) == ModBlocks.factory_advanced_conductor &&
(world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord) == ModBlocks.factory_advanced_conductor || world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord) == ModBlocks.factory_advanced_hull) &&
world.getBlock(this.xCoord + 1, this.yCoord + 1, this.zCoord) == ModBlocks.factory_advanced_hull &&
world.getBlock(this.xCoord - 1, this.yCoord + 1, this.zCoord + 1) == ModBlocks.factory_advanced_hull &&
world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord + 1) == ModBlocks.factory_advanced_hull &&

View File

@ -180,7 +180,7 @@ public class TileEntityCoreTitanium extends TileEntity implements ISidedInventor
world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord - 1) == ModBlocks.factory_titanium_hull &&
world.getBlock(this.xCoord + 1, this.yCoord - 1, this.zCoord - 1) == ModBlocks.factory_titanium_hull &&
world.getBlock(this.xCoord - 1, this.yCoord - 1, this.zCoord) == ModBlocks.factory_titanium_hull &&
world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord) == ModBlocks.factory_titanium_conductor &&
(world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord) == ModBlocks.factory_titanium_conductor || world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord) == ModBlocks.factory_titanium_hull) &&
world.getBlock(this.xCoord + 1, this.yCoord - 1, this.zCoord) == ModBlocks.factory_titanium_hull &&
world.getBlock(this.xCoord - 1, this.yCoord - 1, this.zCoord + 1) == ModBlocks.factory_titanium_hull &&
world.getBlock(this.xCoord, this.yCoord - 1, this.zCoord + 1) == ModBlocks.factory_titanium_hull &&
@ -197,7 +197,7 @@ public class TileEntityCoreTitanium extends TileEntity implements ISidedInventor
world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord - 1) == ModBlocks.factory_titanium_hull &&
world.getBlock(this.xCoord + 1, this.yCoord + 1, this.zCoord - 1) == ModBlocks.factory_titanium_hull &&
world.getBlock(this.xCoord - 1, this.yCoord + 1, this.zCoord) == ModBlocks.factory_titanium_hull &&
world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord) == ModBlocks.factory_titanium_conductor &&
(world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord) == ModBlocks.factory_titanium_conductor || world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord) == ModBlocks.factory_titanium_hull) &&
world.getBlock(this.xCoord + 1, this.yCoord + 1, this.zCoord) == ModBlocks.factory_titanium_hull &&
world.getBlock(this.xCoord - 1, this.yCoord + 1, this.zCoord + 1) == ModBlocks.factory_titanium_hull &&
world.getBlock(this.xCoord, this.yCoord + 1, this.zCoord + 1) == ModBlocks.factory_titanium_hull &&

View File

@ -280,34 +280,6 @@ public class TileEntityMachineCentrifuge extends TileEntity implements ISidedInv
{
slots[5].stackSize += itemStack[3].stackSize;
}
/*
if(slots[2] == null && slots[3] == null && slots[4] == null && slots[5] == null)
{
if(itemStack[0] != null)
{
slots[2] = itemStack[0].copy();
}
if(itemStack[1] != null)
{
slots[3] = itemStack[1].copy();
}
if(itemStack[2] != null)
{
slots[4] = itemStack[2].copy();
}
if(itemStack[3] != null)
{
slots[5] = itemStack[3].copy();
}
}else if(slots[2].isItemEqual(itemStack[0]) && slots[3].isItemEqual(itemStack[1]) && slots[4].isItemEqual(itemStack[2]) && slots[5].isItemEqual(itemStack[3])) {
slots[2].stackSize += itemStack[0].stackSize;
slots[3].stackSize += itemStack[1].stackSize;
slots[4].stackSize += itemStack[2].stackSize;
slots[5].stackSize += itemStack[3].stackSize;
}*/
for(int i = 0; i < 1; i++)
{
@ -386,7 +358,7 @@ public class TileEntityMachineCentrifuge extends TileEntity implements ISidedInv
{
dualCookTime++;
if(this.dualCookTime == TileEntityMachineCentrifuge.processingSpeed)
if(this.dualCookTime >= TileEntityMachineCentrifuge.processingSpeed)
{
this.dualCookTime = 0;
this.processItem();

View File

@ -0,0 +1,56 @@
package com.hbm.entity;
import com.hbm.explosion.ExplosionChaos;
import com.hbm.explosion.ExplosionNukeGeneric;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.monster.EntityBlaze;
import net.minecraft.entity.projectile.EntityThrowable;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.DamageSource;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;
public class EntityGrenadePlasma extends EntityThrowable
{
private static final String __OBFID = "CL_00001722";
public EntityGrenadePlasma(World p_i1773_1_)
{
super(p_i1773_1_);
}
public EntityGrenadePlasma(World p_i1774_1_, EntityLivingBase p_i1774_2_)
{
super(p_i1774_1_, p_i1774_2_);
}
public EntityGrenadePlasma(World p_i1775_1_, double p_i1775_2_, double p_i1775_4_, double p_i1775_6_)
{
super(p_i1775_1_, p_i1775_2_, p_i1775_4_, p_i1775_6_);
}
@Override
protected void onImpact(MovingObjectPosition p_70184_1_)
{
if (p_70184_1_.entityHit != null)
{
byte b0 = 0;
if (p_70184_1_.entityHit instanceof EntityBlaze)
{
b0 = 3;
}
p_70184_1_.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), b0);
}
if (!this.worldObj.isRemote)
{
this.setDead();
this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, 2.0F, true);
ExplosionChaos.plasma(this.worldObj, (int)this.posX, (int)this.posY, (int)this.posZ, 7 );
}
}
}

View File

@ -732,4 +732,30 @@ public class ExplosionChaos {
world.spawnEntityInWorld(mirv8);
}
public static void plasma(World world, int x, int y, int z, int radius)
{
int r = radius;
int r2 = r*r;
int r22 = r2/2;
for (int xx = -r; xx < r; xx++)
{
int X = xx+x;
int XX = xx*xx;
for (int yy = -r; yy < r; yy++)
{
int Y = yy+y;
int YY = XX+yy*yy;
for (int zz = -r; zz < r; zz++)
{
int Z = zz+z;
int ZZ = YY+zz*zz;
if (ZZ<r22+world.rand.nextInt(r22/2))
{
if(world.getBlock(X, Y, Z) != Blocks.bedrock && world.getBlock(X, Y, Z) != ModBlocks.statue_elb && world.getBlock(X, Y, Z) != ModBlocks.statue_elb_g&& world.getBlock(X, Y, Z) != ModBlocks.statue_elb_w && world.getBlock(X, Y, Z) != ModBlocks.statue_elb_f) world.setBlock(X, Y, Z, ModBlocks.plasma);
}
}
}
}
}
}

View File

@ -43,9 +43,12 @@ public class GUIMachineCentrifuge extends GuiContainer {
int i1 = centrifuge.getPowerRemainingScaled(54);
drawTexturedModalRect(guiLeft + 8, guiTop + 69 - i1, 177, 107 - i1, 16, i1);
}
int j1 = centrifuge.getCentrifugeProgressScaled(55);
drawTexturedModalRect(guiLeft + 61, guiTop + 16, 176, 0, j1, 54);
if(centrifuge.isProcessing())
{
int j1 = centrifuge.getCentrifugeProgressScaled(55);
drawTexturedModalRect(guiLeft + 61, guiTop + 16, 176, 0, j1, 54);
}
if(centrifuge.hasPower() && centrifuge.canProcess()) {
drawTexturedModalRect(guiLeft + 25, guiTop + 34, 194, 54, 18, 18);

View File

@ -1,5 +1,9 @@
package com.hbm.items;
import java.util.List;
import com.hbm.lib.Library;
import com.hbm.render.ModelCloak;
import com.hbm.render.ModelGasMask;
import com.hbm.render.ModelGoggles;
@ -8,63 +12,121 @@ import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
public class ArmorModel extends ItemArmor {
@SideOnly(Side.CLIENT)
private ModelGoggles modelGoggles;
private ModelGasMask modelGas;
public ArmorModel(ArmorMaterial armorMaterial, int renderIndex, int armorType)
{
super(armorMaterial, renderIndex, armorType);
}
@Override
public boolean isValidArmor(ItemStack stack, int armorType, Entity entity)
{
return armorType == 0;
}
@Override
@SideOnly(Side.CLIENT)
public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, int armorSlot)
{
if(this == ModItems.goggles)
{
if (armorSlot == 0)
{
if (this.modelGoggles == null) {
this.modelGoggles = new ModelGoggles();
}
return this.modelGoggles;
}
}
if(this == ModItems.gas_mask)
{
if (armorSlot == 0)
{
if (this.modelGas == null) {
this.modelGas = new ModelGasMask();
}
return this.modelGas;
}
}
return null;
}
@Override
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type)
{
if(stack.getItem() == ModItems.goggles)
{
return "hbm:textures/models/Goggles.png";
}
if(stack.getItem() == ModItems.gas_mask)
{
return "hbm:textures/models/GasMask.png";
}
return null;
}
@SideOnly(Side.CLIENT)
private ModelGoggles modelGoggles;
private ModelGasMask modelGas;
private ModelCloak modelCloak;
public ArmorModel(ArmorMaterial armorMaterial, int renderIndex, int armorType) {
super(armorMaterial, renderIndex, armorType);
}
@Override
public boolean isValidArmor(ItemStack stack, int armorType, Entity entity) {
if (this == ModItems.goggles) {
return armorType == 0;
}
if (this == ModItems.gas_mask) {
return armorType == 0;
}
if (this == ModItems.cape_test) {
return armorType == 1;
}
if (this == ModItems.cape_radiation) {
return armorType == 1;
}
if (this == ModItems.cape_gasmask) {
return armorType == 1;
}
if (this == ModItems.cape_schrabidium) {
return armorType == 1;
}
if (this == ModItems.cape_hbm) {
return armorType == 1;
}
return armorType == 0;
}
@Override
@SideOnly(Side.CLIENT)
public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, int armorSlot) {
if (this == ModItems.goggles) {
if (armorSlot == 0) {
if (this.modelGoggles == null) {
this.modelGoggles = new ModelGoggles();
}
return this.modelGoggles;
}
}
if (this == ModItems.gas_mask) {
if (armorSlot == 0) {
if (this.modelGas == null) {
this.modelGas = new ModelGasMask();
}
return this.modelGas;
}
}
if (this == ModItems.cape_test || this == ModItems.cape_radiation || this == ModItems.cape_gasmask || this == ModItems.cape_schrabidium) {
if (armorSlot == 1) {
if (this.modelCloak == null) {
this.modelCloak = new ModelCloak();
}
return this.modelCloak;
}
}
if (this == ModItems.cape_hbm) {
if (armorSlot == 1) {
if (this.modelCloak == null) {
this.modelCloak = new ModelCloak();
}
return this.modelCloak;
}
}
return null;
}
@Override
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) {
if (stack.getItem() == ModItems.goggles) {
return "hbm:textures/models/Goggles.png";
}
if (stack.getItem() == ModItems.gas_mask) {
return "hbm:textures/models/GasMask.png";
}
if (stack.getItem() == ModItems.cape_radiation) {
return "hbm:textures/models/CapeRadiation.png";
}
if (stack.getItem() == ModItems.cape_gasmask) {
return "hbm:textures/models/CapeGasmask.png";
}
if (stack.getItem() == ModItems.cape_schrabidium) {
return "hbm:textures/models/CapeSchrabidium.png";
}
if (stack.getItem() == ModItems.cape_hbm && entity instanceof EntityPlayer && ((EntityPlayer)entity).getUniqueID().toString().equals(Library.HbMinecraft)) {
return "hbm:textures/models/CapeHbm.png";
}
return "hbm:textures/models/CapeUnknown.png";
}
@Override
public void addInformation(ItemStack itemstack, EntityPlayer player, List list, boolean bool) {
if (itemstack.getItem() == ModItems.cape_radiation) {
list.add("Avalible for everyone");
}
if (itemstack.getItem() == ModItems.cape_gasmask) {
list.add("Avalible for everyone");
}
if (itemstack.getItem() == ModItems.cape_schrabidium) {
list.add("Avalible for everyone");
}
if (itemstack.getItem() == ModItems.cape_hbm) {
list.add("Only works for HbMinecraft");
}
}
}

View File

@ -46,8 +46,9 @@ public class ItemDesingator extends Item {
p_77648_1_.stackTagCompound.setInteger("xCoord", p_77648_4_);
p_77648_1_.stackTagCompound.setInteger("zCoord", p_77648_6_);
}
return true;
}
return true;
return false;
}
}

View File

@ -9,6 +9,7 @@ import com.hbm.entity.EntityGrenadeGas;
import com.hbm.entity.EntityGrenadeGeneric;
import com.hbm.entity.EntityGrenadeNuclear;
import com.hbm.entity.EntityGrenadeNuke;
import com.hbm.entity.EntityGrenadePlasma;
import com.hbm.entity.EntityGrenadePoison;
import com.hbm.entity.EntityGrenadeSchrabidium;
import com.hbm.entity.EntityGrenadeStrong;
@ -90,6 +91,10 @@ public class ItemGrenade extends Item {
{
p_77659_2_.spawnEntityInWorld(new EntityGrenadeNuclear(p_77659_2_, p_77659_3_));
}
if(this == ModItems.grenade_plasma)
{
p_77659_2_.spawnEntityInWorld(new EntityGrenadePlasma(p_77659_2_, p_77659_3_));
}
}
return p_77659_1_;
@ -103,6 +108,16 @@ public class ItemGrenade extends Item {
return EnumRarity.rare;
}
if(this == ModItems.grenade_plasma)
{
return EnumRarity.epic;
}
if(this == ModItems.grenade_nuke || this == ModItems.grenade_nuclear)
{
return EnumRarity.uncommon;
}
return EnumRarity.common;
}

View File

@ -1,11 +0,0 @@
package com.hbm.items;
import net.minecraft.item.ItemAxe;
public class ItemModAxe extends ItemAxe {
protected ItemModAxe(ToolMaterial p_i45327_1_) {
super(p_i45327_1_);
}
}

View File

@ -1,11 +0,0 @@
package com.hbm.items;
import net.minecraft.item.ItemPickaxe;
public class ItemModPickaxe extends ItemPickaxe {
protected ItemModPickaxe(ToolMaterial p_i45347_1_) {
super(p_i45347_1_);
}
}

View File

@ -0,0 +1,20 @@
package com.hbm.items;
import net.minecraft.block.Block;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
public class ItemPlasmaBlock extends ItemBlock {
public ItemPlasmaBlock(Block p_i45328_1_) {
super(p_i45328_1_);
}
@Override
public EnumRarity getRarity(ItemStack p_77613_1_)
{
return EnumRarity.epic;
}
}

View File

@ -106,7 +106,8 @@ public class ItemStarterKit extends Item {
player.inventory.addItemStackToInventory(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_nuke_furnace_off), 2));
player.inventory.addItemStackToInventory(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_rtg_furnace_off), 2));
player.inventory.addItemStackToInventory(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_electric_furnace_off), 4));
player.inventory.addItemStackToInventory(new ItemStack(Item.getItemFromBlock(ModBlocks.red_wire_coated), 32));
player.inventory.addItemStackToInventory(new ItemStack(Item.getItemFromBlock(ModBlocks.red_cable), 64));
player.inventory.addItemStackToInventory(new ItemStack(Item.getItemFromBlock(ModBlocks.red_wire_coated), 8));
player.inventory.addItemStackToInventory(new ItemStack(ModItems.pellet_rtg, 8));
player.inventory.addItemStackToInventory(new ItemStack(ModItems.rod_quad_pu238, 1));
player.inventory.addItemStackToInventory(new ItemStack(ModItems.rod_quad_pu238, 1));
@ -131,7 +132,8 @@ public class ItemStarterKit extends Item {
if(this == ModItems.nuke_electric_kit)
{
player.inventory.addItemStackToInventory(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_coal_off), 4));
player.inventory.addItemStackToInventory(new ItemStack(Item.getItemFromBlock(ModBlocks.red_wire_coated), 64));
player.inventory.addItemStackToInventory(new ItemStack(Item.getItemFromBlock(ModBlocks.red_cable), 64));
player.inventory.addItemStackToInventory(new ItemStack(Item.getItemFromBlock(ModBlocks.red_cable), 64));
player.inventory.addItemStackToInventory(new ItemStack(Item.getItemFromBlock(ModBlocks.red_wire_coated), 64));
player.inventory.addItemStackToInventory(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_battery), 6));
player.inventory.addItemStackToInventory(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_electric_furnace_off), 2));
@ -146,6 +148,9 @@ public class ItemStarterKit extends Item {
player.inventory.addItemStackToInventory(new ItemStack(ModItems.battery_advanced, 1));
player.inventory.addItemStackToInventory(new ItemStack(ModItems.battery_advanced, 1));
player.inventory.addItemStackToInventory(new ItemStack(ModItems.battery_schrabidium, 1));
player.inventory.addItemStackToInventory(new ItemStack(ModItems.fusion_core, 1));
player.inventory.addItemStackToInventory(new ItemStack(ModItems.energy_core, 1));
player.inventory.addItemStackToInventory(new ItemStack(ModItems.energy_core, 1));
player.inventory.addItemStackToInventory(new ItemStack(ModItems.plate_aluminium, 32));
player.inventory.addItemStackToInventory(new ItemStack(ModItems.plate_titanium, 32));
player.inventory.addItemStackToInventory(new ItemStack(ModItems.plate_steel, 32));

View File

@ -325,6 +325,7 @@ public class ModItems {
public static Item grenade_electric;
public static Item grenade_poison;
public static Item grenade_gas;
public static Item grenade_plasma;
public static Item grenade_schrabidium;
public static Item grenade_nuke;
public static Item grenade_nuclear;
@ -446,6 +447,12 @@ public class ModItems {
public static Item wand;
public static Item cape_test;
public static Item cape_radiation;
public static Item cape_gasmask;
public static Item cape_schrabidium;
public static Item cape_hbm;
public static Item nuke_starter_kit;
public static Item nuke_advanced_kit;
public static Item nuke_commercially_kit;
@ -791,6 +798,7 @@ public class ModItems {
grenade_electric = new ItemGrenade().setUnlocalizedName("grenade_electric").setCreativeTab(MainRegistry.tabNuke).setTextureName(RefStrings.MODID + ":grenade_electric");
grenade_poison = new ItemGrenade().setUnlocalizedName("grenade_poison").setCreativeTab(MainRegistry.tabNuke).setTextureName(RefStrings.MODID + ":grenade_poison");
grenade_gas = new ItemGrenade().setUnlocalizedName("grenade_gas").setCreativeTab(MainRegistry.tabNuke).setTextureName(RefStrings.MODID + ":grenade_gas");
grenade_plasma = new ItemGrenade().setUnlocalizedName("grenade_plasma").setCreativeTab(MainRegistry.tabNuke).setTextureName(RefStrings.MODID + ":grenade_plasma");
grenade_schrabidium = new ItemGrenade().setUnlocalizedName("grenade_schrabidium").setCreativeTab(MainRegistry.tabNuke).setTextureName(RefStrings.MODID + ":grenade_schrabidium");
grenade_nuke = new ItemGrenade().setUnlocalizedName("grenade_nuke").setCreativeTab(MainRegistry.tabNuke).setTextureName(RefStrings.MODID + ":grenade_nuke");
grenade_nuclear = new ItemGrenade().setUnlocalizedName("grenade_nuclear").setCreativeTab(MainRegistry.tabNuke).setTextureName(RefStrings.MODID + ":grenade_nuclear");
@ -884,7 +892,7 @@ public class ModItems {
t45_legs = new ArmorT45(MainRegistry.enumArmorMaterialT45, 2, 2).setUnlocalizedName("t45_legs").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":t45_legs");
t45_boots = new ArmorT45(MainRegistry.enumArmorMaterialT45, 2, 3).setUnlocalizedName("t45_boots").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":t45_boots");
chainsaw = new ItemModAxe(MainRegistry.enumToolMaterialChainsaw).setUnlocalizedName("chainsaw").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":chainsaw");
chainsaw = new ModAxe(MainRegistry.enumToolMaterialChainsaw).setUnlocalizedName("chainsaw").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":chainsaw");
schrabidium_helmet = new ArmorSchrabidium(MainRegistry.enumArmorMaterialSchrabidium, 7, 0).setUnlocalizedName("schrabidium_helmet").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":schrabidium_helmet");
schrabidium_plate = new ArmorSchrabidium(MainRegistry.enumArmorMaterialSchrabidium, 7, 1).setUnlocalizedName("schrabidium_plate").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":schrabidium_plate");
@ -931,6 +939,12 @@ public class ModItems {
hazmat_legs = new ArmorHazmat(MainRegistry.enumArmorMaterialHazmat, 9, 2).setUnlocalizedName("hazmat_legs").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":hazmat_legs");
hazmat_boots = new ArmorHazmat(MainRegistry.enumArmorMaterialHazmat, 9, 3).setUnlocalizedName("hazmat_boots").setMaxStackSize(1).setTextureName(RefStrings.MODID + ":hazmat_boots");
cape_test = new ArmorModel(MainRegistry.enumArmorMaterialEmerald, 9, 1).setUnlocalizedName("cape_test").setCreativeTab(MainRegistry.tabTest).setMaxStackSize(1).setTextureName(RefStrings.MODID + ":cape_test");
cape_radiation = new ArmorModel(ArmorMaterial.CHAIN, 9, 1).setUnlocalizedName("cape_radiation").setCreativeTab(MainRegistry.tabNuke).setMaxStackSize(1).setTextureName(RefStrings.MODID + ":cape_radiation");
cape_gasmask = new ArmorModel(ArmorMaterial.CHAIN, 9, 1).setUnlocalizedName("cape_gasmask").setCreativeTab(MainRegistry.tabNuke).setMaxStackSize(1).setTextureName(RefStrings.MODID + ":cape_gasmask");
cape_schrabidium = new ArmorModel(MainRegistry.enumArmorMaterialSchrabidium, 9, 1).setUnlocalizedName("cape_schrabidium").setCreativeTab(MainRegistry.tabNuke).setMaxStackSize(1).setTextureName(RefStrings.MODID + ":cape_schrabidium");
cape_hbm = new ArmorModel(MainRegistry.enumArmorMaterialEuphemium, 9, 1).setUnlocalizedName("cape_hbm").setCreativeTab(MainRegistry.tabNuke).setMaxStackSize(1).setTextureName(RefStrings.MODID + ":cape_unknown");
smoke1 = new Item().setUnlocalizedName("smoke1").setTextureName(RefStrings.MODID + ":smoke1");
smoke2 = new Item().setUnlocalizedName("smoke2").setTextureName(RefStrings.MODID + ":smoke2");
smoke3 = new Item().setUnlocalizedName("smoke3").setTextureName(RefStrings.MODID + ":smoke3");
@ -959,6 +973,7 @@ public class ModItems {
GameRegistry.registerItem(test_chestplate, test_chestplate.getUnlocalizedName());
GameRegistry.registerItem(test_leggings, test_leggings.getUnlocalizedName());
GameRegistry.registerItem(test_boots, test_boots.getUnlocalizedName());
GameRegistry.registerItem(cape_test, cape_test.getUnlocalizedName());
//Test Nuke
GameRegistry.registerItem(test_nuke_igniter, test_nuke_igniter.getUnlocalizedName());
@ -1299,10 +1314,17 @@ public class ModItems {
GameRegistry.registerItem(grenade_electric, grenade_electric.getUnlocalizedName());
GameRegistry.registerItem(grenade_poison, grenade_poison.getUnlocalizedName());
GameRegistry.registerItem(grenade_gas, grenade_gas.getUnlocalizedName());
GameRegistry.registerItem(grenade_plasma, grenade_plasma.getUnlocalizedName());
GameRegistry.registerItem(grenade_schrabidium, grenade_schrabidium.getUnlocalizedName());
GameRegistry.registerItem(grenade_nuke, grenade_nuke.getUnlocalizedName());
GameRegistry.registerItem(grenade_nuclear, grenade_nuclear.getUnlocalizedName());
//Capes
GameRegistry.registerItem(cape_radiation, cape_radiation.getUnlocalizedName());
GameRegistry.registerItem(cape_gasmask, cape_gasmask.getUnlocalizedName());
GameRegistry.registerItem(cape_schrabidium, cape_schrabidium.getUnlocalizedName());
GameRegistry.registerItem(cape_hbm, cape_hbm.getUnlocalizedName());
//Tools
GameRegistry.registerItem(schrabidium_sword, schrabidium_sword.getUnlocalizedName());
GameRegistry.registerItem(schrabidium_pickaxe, schrabidium_pickaxe.getUnlocalizedName());

View File

@ -1,6 +1,7 @@
package com.hbm.lib;
import java.util.List;
import java.util.UUID;
import com.hbm.blocks.ModBlocks;
import com.hbm.blocks.TileEntityLaunchPad;
@ -96,6 +97,9 @@ public class Library {
public static String book58 = "§lFood§r\nSurprisingly enough, this mod offers a great variety of different food. Be sure not to eat anything, you may explode/combust/die of radiation poisoning/starve to death/experience a rare case of waffles taking over the world.";
public static String book61;
public static /*UUID*/String HbMinecraft = /*UUID.fromString(*/"192af5d7-ed0f-48d8-bd89-9d41af8524f8"/*)*/;
public static UUID LPkukin = UUID.fromString("937c9804-e11f-4ad2-a5b1-42e62ac73077");
public static boolean checkArmor(EntityPlayer player, Item helmet, Item plate, Item legs, Item boots) {

View File

@ -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.16";
public static final String VERSION = "1.0.17";
public static final String CLIENTSIDE = "com.hbm.main.ClientProxy";
public static final String SERVERSIDE = "com.hbm.main.ServerProxy";
}

View File

@ -45,6 +45,7 @@ import com.hbm.entity.EntityGrenadeGas;
import com.hbm.entity.EntityGrenadeGeneric;
import com.hbm.entity.EntityGrenadeNuclear;
import com.hbm.entity.EntityGrenadeNuke;
import com.hbm.entity.EntityGrenadePlasma;
import com.hbm.entity.EntityGrenadePoison;
import com.hbm.entity.EntityGrenadeSchrabidium;
import com.hbm.entity.EntityGrenadeStrong;
@ -191,6 +192,7 @@ public class ClientProxy extends ServerProxy
RenderingRegistry.registerEntityRenderingHandler(EntityGrenadeSchrabidium.class, new RenderSnowball(ModItems.grenade_schrabidium));
RenderingRegistry.registerEntityRenderingHandler(EntityGrenadeNuke.class, new RenderSnowball(ModItems.grenade_nuke));
RenderingRegistry.registerEntityRenderingHandler(EntityGrenadeNuclear.class, new RenderSnowball(ModItems.grenade_nuclear));
RenderingRegistry.registerEntityRenderingHandler(EntityGrenadePlasma.class, new RenderSnowball(ModItems.grenade_plasma));
RenderingRegistry.registerEntityRenderingHandler(EntitySchrab.class, new RenderFlare());

View File

@ -352,14 +352,18 @@ public class CraftingManager {
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.factory_titanium_hull), 1), new Object[] { "PIP", "I I", "PIP", 'P', ModItems.plate_titanium, 'I', ModItems.ingot_titanium });
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.factory_titanium_furnace), 1), new Object[] { "HMH", "MFM", "HMH", 'H', Item.getItemFromBlock(ModBlocks.factory_titanium_hull), 'M', ModItems.motor, 'F', Item.getItemFromBlock(Blocks.furnace) });
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.factory_titanium_conductor), 1), new Object[] { "SWS", "FFF", "SWS", 'S', ModItems.ingot_titanium, 'W', Item.getItemFromBlock(ModBlocks.red_wire_coated), 'F', ModItems.fuse });
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.factory_titanium_core), 1), new Object[] { "HPH", "PCP", "HPH", 'H', Item.getItemFromBlock(ModBlocks.factory_titanium_hull), 'C', ModItems.circuit_aluminium, 'P', Item.getItemFromBlock(Blocks.piston) });
GameRegistry.addRecipe(new ItemStack(ModItems.factory_core_titanium, 1, ModItems.factory_core_titanium.getMaxDamage()), new Object[] { "BRB", "RHR", "BRB", 'B', new ItemStack(ModItems.battery_generic, 1, ModItems.battery_generic.getMaxDamage()), 'R', Item.getItemFromBlock(Blocks.redstone_block), 'H', Item.getItemFromBlock(ModBlocks.factory_titanium_hull) });
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.factory_advanced_hull), 1), new Object[] { "PIP", "I I", "PIP", 'P', ModItems.plate_advanced_alloy, 'I', ModItems.ingot_advanced_alloy });
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.factory_advanced_furnace), 1), new Object[] { "HMH", "MFM", "HMH", 'H', Item.getItemFromBlock(ModBlocks.factory_advanced_hull), 'M', ModItems.motor, 'F', Item.getItemFromBlock(Blocks.furnace) });
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.factory_advanced_conductor), 1), new Object[] { "SWS", "FFF", "SWS", 'S', ModItems.ingot_advanced_alloy, 'W', Item.getItemFromBlock(ModBlocks.red_wire_coated), 'F', ModItems.fuse });
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.factory_advanced_core), 1), new Object[] { "HPH", "PCP", "HPH", 'H', Item.getItemFromBlock(ModBlocks.factory_advanced_hull), 'C', ModItems.circuit_red_copper, 'P', Item.getItemFromBlock(Blocks.piston) });
GameRegistry.addRecipe(new ItemStack(ModItems.factory_core_advanced, 1, ModItems.factory_core_advanced.getMaxDamage()), new Object[] { "BLB", "SHS", "BLB", 'B', new ItemStack(ModItems.battery_advanced, 1, ModItems.battery_advanced.getMaxDamage()), 'S', Item.getItemFromBlock(ModBlocks.block_sulfur), 'L', Item.getItemFromBlock(ModBlocks.block_lead), 'H', Item.getItemFromBlock(ModBlocks.factory_advanced_hull) });
GameRegistry.addRecipe(new ItemStack(ModItems.factory_core_advanced, 1, ModItems.factory_core_advanced.getMaxDamage()), new Object[] { "BSB", "LHL", "BSB", 'B', new ItemStack(ModItems.battery_advanced, 1, ModItems.battery_advanced.getMaxDamage()), 'S', Item.getItemFromBlock(ModBlocks.block_sulfur), 'L', Item.getItemFromBlock(ModBlocks.block_lead), 'H', Item.getItemFromBlock(ModBlocks.factory_advanced_hull) });
GameRegistry.addRecipe(new ItemStack(ModItems.fuse, 1), new Object[] { " S ", "GAG", " S ", 'S', ModItems.plate_steel, 'G', Item.getItemFromBlock(Blocks.glass_pane), 'A', ModItems.wire_aluminium });
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.reactor_element), 1), new Object[] { "SCS", "CSC", "SCS", 'S', ModItems.ingot_steel, 'C', ModItems.rod_quad_empty });
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.reactor_control), 1), new Object[] { "SLS", "SLS", "SLS", 'S', ModItems.ingot_steel, 'L', ModItems.ingot_lead });
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.reactor_conductor), 1), new Object[] { "SWS", "FFF", "SWS", 'S', ModItems.ingot_steel, 'W', Item.getItemFromBlock(ModBlocks.red_wire_coated), 'F', ModItems.fuse });
@ -419,6 +423,7 @@ public class CraftingManager {
GameRegistry.addRecipe(new ItemStack(ModItems.grenade_gas, 2), new Object[] { " G ", "CGC", " C ", 'G', ModItems.grenade_generic, 'C', ModItems.pellet_gas });
GameRegistry.addRecipe(new ItemStack(ModItems.grenade_schrabidium, 2), new Object[] { " G ", "CFC", " C ", 'G', ModItems.grenade_generic, 'C', ModItems.ingot_schrabidium, 'F', ModItems.grenade_flare });
GameRegistry.addRecipe(new ItemStack(ModItems.grenade_nuclear, 1), new Object[] {"RS ", "ITI", " I ", 'I', ModItems.plate_iron, 'R', ModItems.wire_red_copper, 'S', ModItems.plate_steel, 'T', ModItems.gun_fatman_ammo });
GameRegistry.addRecipe(new ItemStack(ModItems.grenade_plasma, 2), new Object[] { " G ", "SGS", " S ", 'G', ModItems.grenade_generic, 'S', ModItems.wire_advanced_alloy });
GameRegistry.addRecipe(new ItemStack(ModItems.bomb_waffle, 1), new Object[] { "WEW", "MPM", "WEW", 'W', Items.wheat, 'E', Items.egg, 'M', Items.milk_bucket, 'P', ModItems.man_core });
GameRegistry.addRecipe(new ItemStack(ModItems.schnitzel_vegan, 3), new Object[] { "RWR", "WPW", "RWR", 'W', ModItems.nuclear_waste, 'R', Items.reeds, 'P', Items.pumpkin_seeds });
@ -552,6 +557,11 @@ public class CraftingManager {
GameRegistry.addRecipe(new ItemStack(ModItems.goggles, 1), new Object[] { "P P", "GPG", 'G', Item.getItemFromBlock(Blocks.glass_pane), 'P', ModItems.plate_steel });
GameRegistry.addRecipe(new ItemStack(ModItems.gas_mask, 1), new Object[] { "PPP", "GPG", " P ", 'G', Item.getItemFromBlock(Blocks.glass_pane), 'P', ModItems.plate_steel });
GameRegistry.addRecipe(new ItemStack(ModItems.cape_radiation, 1), new Object[] { "W W", "WIW", "WDW", 'W', new ItemStack(Item.getItemFromBlock(Blocks.wool), 1, 11), 'D', new ItemStack(Items.dye, 1, 11), 'I', ModItems.nuclear_waste });
GameRegistry.addRecipe(new ItemStack(ModItems.cape_gasmask, 1), new Object[] { "W W", "WIW", "WDW", 'W', new ItemStack(Item.getItemFromBlock(Blocks.wool), 1, 4), 'D', new ItemStack(Items.dye, 1, 0), 'I', ModItems.gas_mask });
GameRegistry.addRecipe(new ItemStack(ModItems.cape_schrabidium, 1), new Object[] { "W W", "WIW", "WDW", 'W', ModItems.ingot_schrabidium, 'D', new ItemStack(Items.dye, 1, 0), 'I', ModItems.circuit_red_copper });
GameRegistry.addRecipe(new ItemStack(ModItems.cape_hbm, 1), new Object[] { "W W", "WIW", "WDW", 'W', new ItemStack(Item.getItemFromBlock(Blocks.wool), 1, 15), 'D', ModItems.ingot_neptunium, 'I', ModItems.ingot_euphemium });
GameRegistry.addRecipe(new ItemStack(ModItems.igniter, 1), new Object[] { " W", "SC", "CE", 'S', ModItems.plate_steel, 'W', ModItems.wire_schrabidium, 'C', ModItems.circuit_schrabidium, 'E', ModItems.ingot_euphemium });
GameRegistry.addRecipe(new ItemStack(ModItems.euphemium_helmet, 1), new Object[] { "EEE", "E E", 'E', ModItems.ingot_euphemium });
GameRegistry.addRecipe(new ItemStack(ModItems.euphemium_plate, 1), new Object[] { "E E", "EWE", "EEE", 'E', ModItems.ingot_euphemium, 'W', ModItems.watch });

View File

@ -73,6 +73,7 @@ import com.hbm.entity.EntityGrenadeGas;
import com.hbm.entity.EntityGrenadeGeneric;
import com.hbm.entity.EntityGrenadeNuclear;
import com.hbm.entity.EntityGrenadeNuke;
import com.hbm.entity.EntityGrenadePlasma;
import com.hbm.entity.EntityGrenadePoison;
import com.hbm.entity.EntityGrenadeSchrabidium;
import com.hbm.entity.EntityGrenadeStrong;
@ -267,6 +268,7 @@ public class MainRegistry
EntityRegistry.registerModEntity(EntityNukeCloudBig.class, "entity_nuke_cloud_big", 38, this, 1000, 1, true);
EntityRegistry.registerModEntity(EntityGrenadeNuclear.class, "entity_grenade_nuclear", 39, this, 1000, 1, true);
EntityRegistry.registerModEntity(EntityBSmokeFX.class, "entity_b_smoke_fx", 40, this, 1000, 1, true);
EntityRegistry.registerModEntity(EntityGrenadePlasma.class, "entity_grenade_plasma", 41, this, 500, 1, true);
EntityRegistry.registerGlobalEntityID(EntityNuclearCreeper.class, "entity_mob_nuclear_creeper", EntityRegistry.findGlobalUniqueEntityId(), 0x204131, 0x75CE00);
}

View File

@ -0,0 +1,90 @@
package com.hbm.render;
import org.lwjgl.opengl.GL11;
import net.minecraft.client.entity.AbstractClientPlayer;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.MathHelper;
public class ModelCloak extends ModelBiped
{
public ModelCloak()
{
textureWidth = 64;
textureHeight = 32;
}
private void setRotation(ModelRenderer model, float x, float y, float z)
{
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
@Override
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
{
EntityPlayer player = (EntityPlayer)entity;
if(player.isSneaking())
{
this.isSneak = true;
} else {
this.isSneak = false;
}
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
}
@Override
public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7)
{
if(par1Entity instanceof AbstractClientPlayer)
{
AbstractClientPlayer player = (AbstractClientPlayer) par1Entity;
GL11.glPushMatrix();
GL11.glTranslatef(0.0F, 0.0F, 0.125F);
double d3 = player.field_71091_bM + (player.field_71094_bP - player.field_71091_bM) * (double)par7 - (player.prevPosX + (player.posX - player.prevPosX) * (double)par7);
double d4 = player.field_71096_bN + (player.field_71095_bQ - player.field_71096_bN) * (double)par7 - (player.prevPosY + (player.posY - player.prevPosY) * (double)par7);
double d0 = player.field_71097_bO + (player.field_71085_bR - player.field_71097_bO) * (double)par7 - (player.prevPosZ + (player.posZ - player.prevPosZ) * (double)par7);
float f4 = player.prevRenderYawOffset + (player.renderYawOffset - player.prevRenderYawOffset) * par7;
double d1 = (double)MathHelper.sin(f4 * (float)Math.PI / 180.0F);
double d2 = (double)(-MathHelper.cos(f4 * (float)Math.PI / 180.0F));
float f5 = (float)d4 * 10.0F;
if (f5 < -6.0F)
{
f5 = -6.0F;
}
if (f5 > 32.0F)
{
f5 = 32.0F;
}
float f6 = (float)(d3 * d1 + d0 * d2) * 100.0F;
float f7 = (float)(d3 * d2 - d0 * d1) * 100.0F;
if (f6 < 0.0F)
{
f6 = 0.0F;
}
float f8 = player.prevCameraYaw + (player.cameraYaw - player.prevCameraYaw) * par7;
f5 += MathHelper.sin((player.prevDistanceWalkedModified + (player.distanceWalkedModified - player.prevDistanceWalkedModified) * par7) * 6.0F) * 32.0F * f8;
if (player.isSneaking())
{
f5 += 25.0F;
}
GL11.glRotatef(6.0F + f6 / 2.0F + f5, 1.0F, 0.0F, 0.0F);
GL11.glRotatef(f7 / 2.0F, 0.0F, 0.0F, 1.0F);
GL11.glRotatef(-f7 / 2.0F, 0.0F, 1.0F, 0.0F);
GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);
this.bipedCloak.render(par7);
GL11.glPopMatrix();
}
}
}