Basic arrows

This commit is contained in:
mDiyo committed 2013-07-10 04:39:53 -07:00
1 parent b40106b3e9
commit cdeece329a
165 files changed
+3511 -518

No files matched your search

+10 -3
View File
@@ -1,6 +1,6 @@
package test;
import mods.tinker.tconstruct.entity.Crystal;
import mods.tinker.tconstruct.entity.*;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
@@ -35,8 +35,9 @@ public class XinStick extends Item
//if (!world.isRemote)
//MinecraftServer.getServer().getConfigurationManager().transferPlayerToDimension((EntityPlayerMP) player, -7);
//player.travelToDimension(-7);
Crystal entity = new Crystal(world);
//entity.setOwner(player);
clearInventoryExeptHotbar(player);
MiniGardy entity = new MiniGardy(world);
entity.setOwner(player);
//entity.username = "NekoGloop";
spawnEntity(player.posX, player.posY+1, player.posZ, entity, world, player);
//healPlayer(player);
@@ -44,6 +45,12 @@ public class XinStick extends Item
return stack;
}
public void clearInventoryExeptHotbar(EntityPlayer player)
{
for (int i = 9; i < 36; i++)
player.inventory.mainInventory[i] = null;
}
/*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);