mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
Stability
This commit is contained in:
1 parent
dd7d35021e
commit
9e642bb13b
61 files changed
+1521
-535
No files matched your search
+19
-4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user