Stability

This commit is contained in:
mDiyo committed 2013-04-17 22:52:40 -07:00
1 parent dd7d35021e
commit 9e642bb13b
61 files changed
+1521 -535

No files matched your search

+19 -4
View File
@@ -1,6 +1,6 @@
package test;
import mods.tinker.tconstruct.entity.BlueSlime;
import mods.tinker.tconstruct.entity.GolemBase;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
@@ -32,12 +32,27 @@ public class XinStick extends Item
@Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
{
//spawnEntity(player.posX, player.posY+1, player.posZ, new BlueSlime(world), world, player);
System.out.println("Health! "+player.getHealth());
healPlayer(player);
spawnEntity(player.posX, player.posY+1, player.posZ, new GolemBase(world), world, player);
//System.out.println("Health! "+player.getHealth());
//healPlayer(player);
return stack;
}
/*public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float clickX, float clickY, float clickZ)
{
EntityLightningBolt entity = new EntityLightningBolt(world, x, y, z);
world.spawnEntityInWorld(entity);
entity = new EntityLightningBolt(world, x-3, y+4, z-3);
world.spawnEntityInWorld(entity);
entity = new EntityLightningBolt(world, x-3, y+4, z+3);
world.spawnEntityInWorld(entity);
entity = new EntityLightningBolt(world, x+3, y+4, z-3);
world.spawnEntityInWorld(entity);
entity = new EntityLightningBolt(world, x+3, y+4, z+3);
world.spawnEntityInWorld(entity);
return false;
}*/
public static void healPlayer(EntityPlayer player)
{
player.setEntityHealth(50);