Added recipe and rendering tweaks for killer Joe.

This commit is contained in:
CrazyPants committed 2014-08-13 20:41:37 +08:00
1 parent 59f0c4d498
commit 59cca8cd58
5 files changed
+22 -5

No files matched your search

@@ -54,6 +54,10 @@ public class MachineRecipes {
ItemStack zg = new ItemStack(EnderIO.blockZombieGenerator, 1, 0);
GameRegistry.addShapedRecipe(zg, "eee", "qzq", "qcq", 'e', electricSteel, 'q', fusedQuartz, 'z', new ItemStack(Items.skull, 1, 2),'c', capacitor);
//KillerJoe
ItemStack kj = new ItemStack(EnderIO.blockKillerJoe, 1, 0);
GameRegistry.addShapedRecipe(kj, "sss", "qzq", "qqq", 's', darkSteel, 'q', fusedQuartz, 'z', new ItemStack(Items.skull, 1, 2));
ItemStack wirelessCharger = new ItemStack(EnderIO.blockWirelessCharger);
GameRegistry.addShapedRecipe(wirelessCharger, "svs", "imi", "scs", 's', electricSteel, 'i', silicon, 'm', machineChassi, 'c', capacitor3, 'v', vibCry);
@@ -76,11 +76,14 @@ public class ZombieGeneratorRenderer extends TileEntitySpecialRenderer implement
CubeRenderer.render(bb, icon);
GL11.glPushAttrib(GL11.GL_ENABLE_BIT);
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glDepthMask(false);
tes.draw();
GL11.glDepthMask(true);
GL11.glDisable(GL11.GL_BLEND);
GL11.glPopAttrib();
}
}
@@ -1,6 +1,7 @@
package crazypants.enderio.machine.killera;
import net.minecraft.block.Block;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
@@ -40,7 +41,12 @@ public class BlockKillerJoe extends AbstractMachineBlock<TileKillerJoe> {
protected BlockKillerJoe() {
super(ModObject.blockKillerJoe, TileKillerJoe.class);
setStepSound(Block.soundTypeGlass);
setStepSound(Block.soundTypeGlass);
}
@Override
public float getExplosionResistance(Entity par1Entity, World world, int x, int y, int z, double explosionX, double explosionY, double explosionZ) {
return 2000;
}
@Override
@@ -29,7 +29,7 @@ import crazypants.vecmath.Vector3d;
public class KillerJoeRenderer extends TileEntitySpecialRenderer implements IItemRenderer {
private static final String TEXTURE = "enderio:models/ZombieJar.png";
private static final String TEXTURE = "enderio:models/KillerJoe.png";
private static final ItemStack DEFAULT_SWORD = new ItemStack(Items.iron_sword);
@@ -137,12 +137,16 @@ public class KillerJoeRenderer extends TileEntitySpecialRenderer implements IIte
CubeRenderer.render(bb, icon);
GL11.glPushAttrib(GL11.GL_ENABLE_BIT);
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glDepthMask(false);
GL11.glColor3f(1, 1, 1);
tes.draw();
GL11.glDepthMask(true);
GL11.glDisable(GL11.GL_BLEND);
GL11.glPopAttrib();
}
}