Hello, I appreciate the help, but I don't quite see how I would do that. Here is my launcher item class when I spawn the entity, if you could let me know how I would do that I would appreciate that =)
package teampap.grenade.items;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.item.EntityTNTPrimed;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import teampap.grenade.lib.Constants;
public class ItemTNTLauncher extends Item
{
private String name = "tntLauncher";
public ItemTNTLauncher()
{
setUnlocalizedName(Constants.MODID + "_" + name);
setCreativeTab(CreativeTabs.tabCombat);
}
public ItemStack onItemRightClick(ItemStack item, World world, EntityPlayer player)
{
item.damageItem(1, player);
if (!world.isRemote)
{
world.spawnEntityInWorld(new EntityTNTPrimed(world, player.posX, player.posY, player.posZ, player));
}
return item;
}
}