Jump to content

Recommended Posts

Posted

I am trying to make a throwable tomahawk but it won't render. Instead, I get a white block flying through the air.

 

Main Class:

package gameX.WarRevival;

import java.lang.reflect.Proxy;

import gameX.WarRevival.armor.ItemContArmor;
import gameX.WarRevival.armor.ItemRedCoatArmor;
import gameX.WarRevival.item.ItemSteelAxe;
import gameX.WarRevival.item.ItemSteelHoe;
import gameX.WarRevival.item.ItemSteelPickaxe;
import gameX.WarRevival.item.ItemSteelSaber;
import gameX.WarRevival.item.ItemSteelShovel;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.EnumHelper;
import net.minecraftforge.oredict.OreDictionary;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;

@Mod(modid = "wr", name = "War Revival Mod", version = "1.0")
public class WarRevival {

public class itemBullet extends Item {

}

// Creation of new things
@SidedProxy(clientSide="gameX.WarRevival.ClientProxy", serverSide="gameX.WarRevival.ServerProxy")
public static CommonProxy proxy;
public static Block blockUFragment;
public static Item itemRation;
public static Item itemRevFragment;
public static Item itemCivFragment;
public static Item itemWWIFragment;
public static Item itemWWIIFragment;
// Revolutionary War Items
// public static Block blockCannon;
public static Item itemInfantryRifle;
public static Item itemTomahawk;
// public static Item bayonet;
public static Item itemSteelSaber;
public static Item itemSteelPickaxe;
public static Item itemSteelShovel;
public static Item itemSteelAxe;
public static Item itemSteelHoe;
public static Item itemSteelIngot;
public static Item itemWoodenWheel;
public static Item itemBullet;
public static Entity entityBullet;
public static Entity entityTomahawk;

public static Item itemContChest;
public static Item itemContLeggings;
public static Item itemContBoots;
public static Item itemContHelm;

public static Item itemRedcoatChest;
public static Item itemRedcoatLeggings;
public static Item itemRedcoatBoots;
public static Item itemRedcoatHelm;

// Civil War Items
// WWI Items
// WWII Items

public static final Item.ToolMaterial STMaterial = EnumHelper.addToolMaterial("STMaterial", 3, 350, 6.5f, 2.5f, 2);

public static final ItemArmor.ArmorMaterial revArmorMaterial = EnumHelper.addArmorMaterial("revArmorMaterial",300,new int[]{2,4,3,2},15);

@EventHandler
public void preInit(FMLPreInitializationEvent event) {



	// sets textures and name
	itemTomahawk = new ItemTomahawk()
			.setUnlocalizedName("Tomahawk")
			.setTextureName("wr:itemTomahawk")
			.setCreativeTab(tabWarRevival);
	itemBullet = new ItemBullet()
			.setUnlocalizedName("Bullet")
			.setTextureName("wr:itemBullet")
			.setCreativeTab(tabWarRevival);
	itemRedcoatHelm = new ItemRedCoatArmor(revArmorMaterial, 0, 0)
			.setUnlocalizedName("RedcoatHelm")
			.setTextureName("wr:itemRedcoatHelm")
			.setCreativeTab(tabWarRevival);
	itemRedcoatChest = new ItemRedCoatArmor(revArmorMaterial, 0, 1)
			.setUnlocalizedName("RedcoatChest")
			.setTextureName("wr:itemRedCoatChest")
			.setCreativeTab(tabWarRevival);
	itemRedcoatLeggings = new ItemRedCoatArmor(revArmorMaterial, 0, 2)
			.setUnlocalizedName("RedcoatGreaves")
			.setTextureName("wr:itemRedcoatLeggings")
			.setCreativeTab(tabWarRevival);
	itemRedcoatBoots = new ItemRedCoatArmor(revArmorMaterial, 0, 3)
			.setUnlocalizedName("RedcoatBoots")
			.setTextureName("wr:itemRedcoatBoots")
			.setCreativeTab(tabWarRevival);
	itemContChest = new ItemContArmor(revArmorMaterial, 0, 1)
			.setUnlocalizedName("ContinentalArmyChestplate")
			.setTextureName("wr:itemContChest")
			.setCreativeTab(tabWarRevival);
	itemContLeggings = new ItemContArmor(revArmorMaterial, 0, 2)
			.setUnlocalizedName("ContinentalArmyGreaves")
			.setTextureName("wr:itemContLeggings")
			.setCreativeTab(tabWarRevival);
	itemContBoots = new ItemContArmor(revArmorMaterial, 0, 3)
			.setUnlocalizedName("ContinentalArmyBoots")
			.setTextureName("wr:itemContBoots")
			.setCreativeTab(tabWarRevival);
	itemContHelm = new ItemContArmor(revArmorMaterial, 0, 0)
			.setUnlocalizedName("ContinentalArmyHat")
			.setTextureName("wr:itemContHelm")
			.setCreativeTab(tabWarRevival);
	itemRation = new ItemFood(7, 0.7f, true)
			.setUnlocalizedName("Ration")
			.setTextureName("wr:Ration")
			.setCreativeTab(tabWarRevival);
	blockUFragment = new BlockUFragment(Material.rock)
			.setBlockName("UndergroundFragment")
			.setBlockTextureName("wr:blockUFragment")
			.setCreativeTab(tabWarRevival);
	itemRevFragment = new ItemRevFragment()
			.setUnlocalizedName("RevolutionFragment")
			.setTextureName("wr:itemRevFragment")
			.setCreativeTab(tabWarRevival);
	itemCivFragment = new ItemCivFragment()
			.setUnlocalizedName("CivilFragment")
			.setTextureName("wr:CivFragment")
			.setCreativeTab(tabWarRevival);
	itemWWIFragment = new ItemWWIFragment()
			.setUnlocalizedName("WWIFragment")
			.setTextureName("wr:itemWWIFragment")
			.setCreativeTab(tabWarRevival);
	itemWWIIFragment = new ItemWWIIFragment()
			.setUnlocalizedName("WWIIFragment")
			.setTextureName("wr:itemWWIIFragment")
			.setCreativeTab(tabWarRevival);
	itemSteelIngot = new ItemSteelIngot()
			.setUnlocalizedName("SteelIngot")
			.setTextureName("wr:SteelIngot")
			.setCreativeTab(tabWarRevival);
	itemWoodenWheel = new ItemWoodenWheel()
			.setUnlocalizedName("WoodenWheel")
			.setTextureName("wr:woodenwheel")
			.setCreativeTab(tabWarRevival);
	itemSteelSaber = new ItemSteelSaber(STMaterial)
			.setUnlocalizedName("SteelSaber")
			.setTextureName("wr:steelsaber")
			.setCreativeTab(tabWarRevival);
	itemSteelPickaxe = new ItemSteelPickaxe(STMaterial)
			.setUnlocalizedName("SteelPickaxe")
			.setTextureName("wr:steelpickaxe")
			.setCreativeTab(tabWarRevival);
	itemSteelShovel = new ItemSteelShovel(STMaterial)
			.setUnlocalizedName("SteelShovel")
			.setTextureName("wr:steelshovel")
			.setCreativeTab(tabWarRevival);
	itemSteelAxe = new ItemSteelAxe(STMaterial)
			.setUnlocalizedName("SteelAxe")
			.setTextureName("wr:steelaxe")
			.setCreativeTab(tabWarRevival);
	itemSteelHoe = new ItemSteelHoe(STMaterial)
			.setUnlocalizedName("SteelHoe")
			.setTextureName("wr:steelhoe")
			.setCreativeTab(tabWarRevival);


	// Item Registry
	EntityRegistry.registerModEntity(EntityTomahawk.class, "Tomahawk", 101, this, 64, 10, true);

	GameRegistry.registerItem(itemTomahawk, itemTomahawk.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemRation, itemRation.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemRevFragment, itemRevFragment.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemCivFragment, itemCivFragment.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemWWIFragment, itemWWIFragment.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemWWIIFragment, itemWWIIFragment.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemSteelIngot, itemSteelIngot.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemWoodenWheel, itemWoodenWheel.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemBullet, itemBullet.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(itemSteelSaber, itemSteelSaber.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemSteelAxe, itemSteelAxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemSteelHoe, itemSteelHoe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemSteelPickaxe, itemSteelPickaxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemSteelShovel, itemSteelShovel.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(itemRedcoatHelm, itemRedcoatHelm.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemRedcoatChest, itemRedcoatChest.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemRedcoatLeggings, itemRedcoatLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemRedcoatBoots, itemRedcoatBoots.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(itemContHelm, itemContHelm.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemContChest, itemContChest.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemContLeggings, itemContLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemContBoots, itemContBoots.getUnlocalizedName().substring(5));



	// Block Registry
	GameRegistry.registerBlock(blockUFragment, blockUFragment.getUnlocalizedName().substring(5));
	//Other Registry
	GameRegistry.registerWorldGenerator(new FragGeneration(), 0);
}

@EventHandler
public void init(FMLInitializationEvent event) {
	// Crafting Recipes
	GameRegistry.addRecipe(new ItemStack(itemRation), "PSP","PBP", "PPP", 'P',Items.paper, 'S',Items.string, 'B',Items.bread );

	GameRegistry.addRecipe(new ItemStack(itemWoodenWheel), " S ", "SWS", " S ", 'S',Items.stick, 'W',Blocks.planks );

	GameRegistry.addRecipe(new ItemStack(itemSteelSaber), " S ", " S ", " T ", 'S',itemSteelIngot, 'T',Items.stick );

	GameRegistry.addRecipe(new ItemStack(itemSteelHoe), "SS ", " T ", " T ", 'S',itemSteelIngot, 'T',Items.stick );

	GameRegistry.addRecipe(new ItemStack(itemSteelAxe), " SS", " TS", " T " , 'S',itemSteelIngot, 'T',Items.stick);

	GameRegistry.addRecipe(new ItemStack(itemSteelPickaxe), "SSS", " T ", " T ", 'S',itemSteelIngot, 'T',Items.stick );

	GameRegistry.addRecipe(new ItemStack(itemSteelShovel), " S ", " T ", " T ", 'S',itemSteelIngot, 'T',Items.stick );

	GameRegistry.addSmelting(Items.iron_ingot, new ItemStack(itemSteelIngot), 1.0F);

	OreDictionary.registerOre("ingotSteel", WarRevival.itemSteelIngot);
}

@EventHandler
public void postInit(FMLPostInitializationEvent event) {

}

public static CreativeTabs tabWarRevival = new CreativeTabs("tabWarRevival") {
	@Override
	public Item getTabIconItem() {
		return new ItemStack(itemWWIIFragment).getItem();
	}
};
}

 

Render Class:

package gameX.WarRevival.render;

import gameX.WarRevival.EntityTomahawk;
import net.minecraft.client.renderer.entity.RenderSnowball;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.Item;
import net.minecraft.util.ResourceLocation;

public class RenderTomahawak extends RenderSnowball
{
    public RenderTomahawak(Item item) {
	super(item);

}

protected ResourceLocation tomahawkTexture;

    protected void preRenderCallbackTomahawk(EntityTomahawk entity, float f)
    {
    }

    protected void setEntityTexture()
    {
    	tomahawkTexture = new ResourceLocation("wr:textures/entity/tomahawk/entityTomahawk.png");
    }

    /**
    * Returns the location of an entity's texture. Doesn't seem to be called 
    * unless you call Render.bindEntityTexture.
    */
    @Override
    protected ResourceLocation getEntityTexture(Entity entity)
    {
        return tomahawkTexture;
    }
}

 

Entity Class:

package gameX.WarRevival;

import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.projectile.EntityThrowable;
import net.minecraft.util.DamageSource;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;

public class EntityTomahawk extends EntityThrowable
{
    private static final String __OBFID = "CL_00001722";

    public EntityTomahawk(World p_i1773_1_)
    {
        super(p_i1773_1_);
        this.setEntityId(101);
    }

    public EntityTomahawk(World p_i1774_1_, EntityLivingBase p_i1774_2_)
    {
        super(p_i1774_1_, p_i1774_2_);
    }

    public EntityTomahawk(World p_i1775_1_, double p_i1775_2_, double p_i1775_4_, double p_i1775_6_)
    {
        super(p_i1775_1_, p_i1775_2_, p_i1775_4_, p_i1775_6_);
    }

    /**
     * Called when this EntityThrowable hits a block or entity.
     */
    protected void onImpact(MovingObjectPosition p_70184_1_)
    {

        if (p_70184_1_.entityHit != null)
        {
            float tomahawkDamage = 4;
            
            p_70184_1_.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)tomahawkDamage);

            this.playSound("random.bowhit", 1.0F, 1.2F / (this.rand.nextFloat() * 0.2F + 0.9F));

        }

        for (int i = 0; i < 8; ++i)
        {
            this.worldObj.spawnParticle("crit", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
        }

        if (!this.worldObj.isRemote)
        {
        	this.dropItem(WarRevival.itemTomahawk, 1);
            this.setDead();
        }
    }
}

 

I honestly don't know what is happening  because there are no errors.

 

 

 

Posted

I got an error when running the game...

 

Main Class:

package gameX.WarRevival;

import java.lang.reflect.Proxy;

import gameX.WarRevival.armor.ItemContArmor;
import gameX.WarRevival.armor.ItemRedCoatArmor;
import gameX.WarRevival.item.ItemSteelAxe;
import gameX.WarRevival.item.ItemSteelHoe;
import gameX.WarRevival.item.ItemSteelPickaxe;
import gameX.WarRevival.item.ItemSteelSaber;
import gameX.WarRevival.item.ItemSteelShovel;
import gameX.WarRevival.render.RenderTomahawak;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.EnumHelper;
import net.minecraftforge.oredict.OreDictionary;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;

@Mod(modid = "wr", name = "War Revival Mod", version = "1.0")
public class WarRevival {

public class itemBullet extends Item {

}

// Creation of new things
@SidedProxy(clientSide="gameX.WarRevival.ClientProxy", serverSide="gameX.WarRevival.ServerProxy")
public static CommonProxy proxy;
public static Block blockUFragment;
public static Item itemRation;
public static Item itemRevFragment;
public static Item itemCivFragment;
public static Item itemWWIFragment;
public static Item itemWWIIFragment;
// Revolutionary War Items
// public static Block blockCannon;
public static Item itemInfantryRifle;
public static Item itemTomahawk;
// public static Item bayonet;
public static Item itemSteelSaber;
public static Item itemSteelPickaxe;
public static Item itemSteelShovel;
public static Item itemSteelAxe;
public static Item itemSteelHoe;
public static Item itemSteelIngot;
public static Item itemWoodenWheel;
public static Item itemBullet;
public static Entity entityBullet;
public static Entity entityTomahawk;

public static Item itemContChest;
public static Item itemContLeggings;
public static Item itemContBoots;
public static Item itemContHelm;

public static Item itemRedcoatChest;
public static Item itemRedcoatLeggings;
public static Item itemRedcoatBoots;
public static Item itemRedcoatHelm;

// Civil War Items
// WWI Items
// WWII Items

public static final Item.ToolMaterial STMaterial = EnumHelper.addToolMaterial("STMaterial", 3, 350, 6.5f, 2.5f, 2);

public static final ItemArmor.ArmorMaterial revArmorMaterial = EnumHelper.addArmorMaterial("revArmorMaterial",300,new int[]{2,4,3,2},15);

@EventHandler
public void preInit(FMLPreInitializationEvent event) {



	// sets textures and name
	itemTomahawk = new ItemTomahawk()
			.setUnlocalizedName("Tomahawk")
			.setTextureName("wr:itemTomahawk")
			.setCreativeTab(tabWarRevival);
	itemBullet = new ItemBullet()
			.setUnlocalizedName("Bullet")
			.setTextureName("wr:itemBullet")
			.setCreativeTab(tabWarRevival);
	itemRedcoatHelm = new ItemRedCoatArmor(revArmorMaterial, 0, 0)
			.setUnlocalizedName("RedcoatHelm")
			.setTextureName("wr:itemRedcoatHelm")
			.setCreativeTab(tabWarRevival);
	itemRedcoatChest = new ItemRedCoatArmor(revArmorMaterial, 0, 1)
			.setUnlocalizedName("RedcoatChest")
			.setTextureName("wr:itemRedCoatChest")
			.setCreativeTab(tabWarRevival);
	itemRedcoatLeggings = new ItemRedCoatArmor(revArmorMaterial, 0, 2)
			.setUnlocalizedName("RedcoatGreaves")
			.setTextureName("wr:itemRedcoatLeggings")
			.setCreativeTab(tabWarRevival);
	itemRedcoatBoots = new ItemRedCoatArmor(revArmorMaterial, 0, 3)
			.setUnlocalizedName("RedcoatBoots")
			.setTextureName("wr:itemRedcoatBoots")
			.setCreativeTab(tabWarRevival);
	itemContChest = new ItemContArmor(revArmorMaterial, 0, 1)
			.setUnlocalizedName("ContinentalArmyChestplate")
			.setTextureName("wr:itemContChest")
			.setCreativeTab(tabWarRevival);
	itemContLeggings = new ItemContArmor(revArmorMaterial, 0, 2)
			.setUnlocalizedName("ContinentalArmyGreaves")
			.setTextureName("wr:itemContLeggings")
			.setCreativeTab(tabWarRevival);
	itemContBoots = new ItemContArmor(revArmorMaterial, 0, 3)
			.setUnlocalizedName("ContinentalArmyBoots")
			.setTextureName("wr:itemContBoots")
			.setCreativeTab(tabWarRevival);
	itemContHelm = new ItemContArmor(revArmorMaterial, 0, 0)
			.setUnlocalizedName("ContinentalArmyHat")
			.setTextureName("wr:itemContHelm")
			.setCreativeTab(tabWarRevival);
	itemRation = new ItemFood(7, 0.7f, true)
			.setUnlocalizedName("Ration")
			.setTextureName("wr:Ration")
			.setCreativeTab(tabWarRevival);
	blockUFragment = new BlockUFragment(Material.rock)
			.setBlockName("UndergroundFragment")
			.setBlockTextureName("wr:blockUFragment")
			.setCreativeTab(tabWarRevival);
	itemRevFragment = new ItemRevFragment()
			.setUnlocalizedName("RevolutionFragment")
			.setTextureName("wr:itemRevFragment")
			.setCreativeTab(tabWarRevival);
	itemCivFragment = new ItemCivFragment()
			.setUnlocalizedName("CivilFragment")
			.setTextureName("wr:CivFragment")
			.setCreativeTab(tabWarRevival);
	itemWWIFragment = new ItemWWIFragment()
			.setUnlocalizedName("WWIFragment")
			.setTextureName("wr:itemWWIFragment")
			.setCreativeTab(tabWarRevival);
	itemWWIIFragment = new ItemWWIIFragment()
			.setUnlocalizedName("WWIIFragment")
			.setTextureName("wr:itemWWIIFragment")
			.setCreativeTab(tabWarRevival);
	itemSteelIngot = new ItemSteelIngot()
			.setUnlocalizedName("SteelIngot")
			.setTextureName("wr:SteelIngot")
			.setCreativeTab(tabWarRevival);
	itemWoodenWheel = new ItemWoodenWheel()
			.setUnlocalizedName("WoodenWheel")
			.setTextureName("wr:woodenwheel")
			.setCreativeTab(tabWarRevival);
	itemSteelSaber = new ItemSteelSaber(STMaterial)
			.setUnlocalizedName("SteelSaber")
			.setTextureName("wr:steelsaber")
			.setCreativeTab(tabWarRevival);
	itemSteelPickaxe = new ItemSteelPickaxe(STMaterial)
			.setUnlocalizedName("SteelPickaxe")
			.setTextureName("wr:steelpickaxe")
			.setCreativeTab(tabWarRevival);
	itemSteelShovel = new ItemSteelShovel(STMaterial)
			.setUnlocalizedName("SteelShovel")
			.setTextureName("wr:steelshovel")
			.setCreativeTab(tabWarRevival);
	itemSteelAxe = new ItemSteelAxe(STMaterial)
			.setUnlocalizedName("SteelAxe")
			.setTextureName("wr:steelaxe")
			.setCreativeTab(tabWarRevival);
	itemSteelHoe = new ItemSteelHoe(STMaterial)
			.setUnlocalizedName("SteelHoe")
			.setTextureName("wr:steelhoe")
			.setCreativeTab(tabWarRevival);


	// Item Registry
	EntityRegistry.registerModEntity(EntityTomahawk.class, "Tomahawk", 101, this, 64, 10, true);

	GameRegistry.registerItem(itemTomahawk, itemTomahawk.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemRation, itemRation.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemRevFragment, itemRevFragment.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemCivFragment, itemCivFragment.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemWWIFragment, itemWWIFragment.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemWWIIFragment, itemWWIIFragment.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemSteelIngot, itemSteelIngot.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemWoodenWheel, itemWoodenWheel.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemBullet, itemBullet.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(itemSteelSaber, itemSteelSaber.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemSteelAxe, itemSteelAxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemSteelHoe, itemSteelHoe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemSteelPickaxe, itemSteelPickaxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemSteelShovel, itemSteelShovel.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(itemRedcoatHelm, itemRedcoatHelm.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemRedcoatChest, itemRedcoatChest.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemRedcoatLeggings, itemRedcoatLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemRedcoatBoots, itemRedcoatBoots.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(itemContHelm, itemContHelm.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemContChest, itemContChest.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemContLeggings, itemContLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemContBoots, itemContBoots.getUnlocalizedName().substring(5));



	// Block Registry
	GameRegistry.registerBlock(blockUFragment, blockUFragment.getUnlocalizedName().substring(5));
	//Other Registry
	GameRegistry.registerWorldGenerator(new FragGeneration(), 0);
}

@EventHandler
public void init(FMLInitializationEvent event) {
	// Crafting Recipes
	GameRegistry.addRecipe(new ItemStack(itemRation), "PSP","PBP", "PPP", 'P',Items.paper, 'S',Items.string, 'B',Items.bread );

	GameRegistry.addRecipe(new ItemStack(itemWoodenWheel), " S ", "SWS", " S ", 'S',Items.stick, 'W',Blocks.planks );

	GameRegistry.addRecipe(new ItemStack(itemSteelSaber), " S ", " S ", " T ", 'S',itemSteelIngot, 'T',Items.stick );

	GameRegistry.addRecipe(new ItemStack(itemSteelHoe), "SS ", " T ", " T ", 'S',itemSteelIngot, 'T',Items.stick );

	GameRegistry.addRecipe(new ItemStack(itemSteelAxe), " SS", " TS", " T " , 'S',itemSteelIngot, 'T',Items.stick);

	GameRegistry.addRecipe(new ItemStack(itemSteelPickaxe), "SSS", " T ", " T ", 'S',itemSteelIngot, 'T',Items.stick );

	GameRegistry.addRecipe(new ItemStack(itemSteelShovel), " S ", " T ", " T ", 'S',itemSteelIngot, 'T',Items.stick );

	GameRegistry.addSmelting(Items.iron_ingot, new ItemStack(itemSteelIngot), 1.0F);

	RenderingRegistry.registerEntityRenderingHandler(EntityTomahawk.class, new RenderTomahawak(itemTomahawk));

	OreDictionary.registerOre("ingotSteel", WarRevival.itemSteelIngot);
}

@EventHandler
public void postInit(FMLPostInitializationEvent event) {

}

public static CreativeTabs tabWarRevival = new CreativeTabs("tabWarRevival") {
	@Override
	public Item getTabIconItem() {
		return new ItemStack(itemWWIIFragment).getItem();
	}
};
}


 

Entity Class:

package gameX.WarRevival;

import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.projectile.EntityThrowable;
import net.minecraft.util.DamageSource;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;

public class EntityTomahawk extends EntityThrowable
{
    private static final String __OBFID = "CL_00001722";

    public EntityTomahawk(World p_i1773_1_)
    {
        super(p_i1773_1_);
        this.setEntityId(101);
    }

    public EntityTomahawk(World p_i1774_1_, EntityLivingBase p_i1774_2_)
    {
        super(p_i1774_1_, p_i1774_2_);
    }

    public EntityTomahawk(World p_i1775_1_, double p_i1775_2_, double p_i1775_4_, double p_i1775_6_)
    {
        super(p_i1775_1_, p_i1775_2_, p_i1775_4_, p_i1775_6_);
    }

    /**
     * Called when this EntityThrowable hits a block or entity.
     */
    protected void onImpact(MovingObjectPosition p_70184_1_)
    {

        if (p_70184_1_.entityHit != null)
        {
            float tomahawkDamage = 4;
            
            p_70184_1_.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)tomahawkDamage);

            this.playSound("random.bowhit", 1.0F, 1.2F / (this.rand.nextFloat() * 0.2F + 0.9F));

        }

        for (int i = 0; i < 8; ++i)
        {
            this.worldObj.spawnParticle("crit", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
        }

        if (!this.worldObj.isRemote)
        {
        	this.dropItem(WarRevival.itemTomahawk, 1);
            this.setDead();
        }
    }
}

 

Renderer Class:

package gameX.WarRevival.render;

import gameX.WarRevival.EntityTomahawk;
import net.minecraft.client.renderer.entity.RenderSnowball;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.Item;
import net.minecraft.util.ResourceLocation;

public class RenderTomahawak extends RenderSnowball
{
    public RenderTomahawak(Item item) {
	super(item);

}

protected ResourceLocation tomahawkTexture;

    protected void preRenderCallbackTomahawk(EntityTomahawk entity, float f)
    {
    }

    protected void setEntityTexture()
    {
    	tomahawkTexture = new ResourceLocation("wr:textures/entity/tomahawkentityTomahawk.png");
    }

    /**
    * Returns the location of an entity's texture. Doesn't seem to be called 
    * unless you call Render.bindEntityTexture.
    */
    @Override
    protected ResourceLocation getEntityTexture(Entity entity)
    {
        return tomahawkTexture;
    }
}

 

Error Message

 

 

---- Minecraft Crash Report ----

// Would you like a cupcake?

 

Time: 7/1/16 7:29 PM

Description: Registering texture

 

java.lang.NullPointerException: Registering texture

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:63)

at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:35)

at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89)

at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:45)

at net.minecraft.client.renderer.entity.Render.bindTexture(Render.java:60)

at net.minecraft.client.renderer.entity.Render.bindEntityTexture(Render.java:55)

at net.minecraft.client.renderer.entity.RenderSnowball.doRender(RenderSnowball.java:51)

at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:300)

at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:278)

at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:251)

at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:527)

at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1300)

at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067)

at net.minecraft.client.Minecraft.run(Minecraft.java:962)

at net.minecraft.client.main.Main.main(Main.java:164)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)

at GradleStart.main(Unknown Source)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:63)

at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:35)

 

-- Resource location being registered --

Details:

Resource location: ~~NULL~~

Texture object class: net.minecraft.client.renderer.texture.SimpleTexture

Stacktrace:

at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89)

at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:45)

at net.minecraft.client.renderer.entity.Render.bindTexture(Render.java:60)

at net.minecraft.client.renderer.entity.Render.bindEntityTexture(Render.java:55)

at net.minecraft.client.renderer.entity.RenderSnowball.doRender(RenderSnowball.java:51)

 

-- Entity being rendered --

Details:

Entity Type: wr.Tomahawk (gameX.WarRevival.EntityTomahawk)

Entity ID: 432

Entity Name: entity.wr.Tomahawk.name

Entity's Exact location: -148.42, 67.77, 86.33

Entity's Block location: World: (-149,67,86), Chunk: (at 11,4,6 in -10,5; contains blocks -160,0,80 to -145,255,95), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)

Entity's Momentum: -1.47, -0.25, 0.11

 

-- Renderer details --

Details:

Assigned renderer: gameX.WarRevival.render.RenderTomahawak@2a9cbc23

Location: -1.34,-0.31,-0.07 - World: (-2,-1,-1), Chunk: (at 14,-1,15 in -1,-1; contains blocks -16,0,-16 to -1,255,-1), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)

Rotation: -85.59056

Delta: 0.8884517

Stacktrace:

at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:300)

at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:278)

at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:251)

at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:527)

at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1300)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player664'/244, l='MpServer', x=-146.91, y=68.11, z=86.39]]

Chunk stats: MultiplayerChunkCache: 540, 540

Level seed: 0

Level generator: ID 00 - default, ver 1. Features enabled: false

Level generator options:

Level spawn location: World: (-160,64,80), Chunk: (at 0,4,0 in -10,5; contains blocks -160,0,80 to -145,255,95), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)

Level time: 118815 game time, 99485 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false

Forced entities: 120 total; [EntityItemFrame['entity.ItemFrame.name'/31, l='MpServer', x=-253.50, y=72.50, z=-13.94], EntityItemFrame['entity.ItemFrame.name'/32, l='MpServer', x=-252.50, y=72.50, z=-13.94], EntityItemFrame['entity.ItemFrame.name'/33, l='MpServer', x=-251.50, y=72.50, z=-13.94], EntityItemFrame['entity.ItemFrame.name'/34, l='MpServer', x=-250.50, y=72.50, z=-13.94], EntityItemFrame['entity.ItemFrame.name'/35, l='MpServer', x=-249.50, y=72.50, z=-13.94], EntityCreeper['Creeper'/54, l='MpServer', x=-225.50, y=31.00, z=163.50], EntityCow['Cow'/62, l='MpServer', x=-214.88, y=65.00, z=85.06], EntityZombie['Zombie'/63, l='MpServer', x=-216.44, y=22.00, z=116.47], EntitySpider['Spider'/64, l='MpServer', x=-218.82, y=22.00, z=116.72], EntityCreeper['Creeper'/65, l='MpServer', x=-217.31, y=21.00, z=116.50], EntityCreeper['Creeper'/66, l='MpServer', x=-213.50, y=20.00, z=130.50], EntitySpider['Spider'/67, l='MpServer', x=-218.97, y=20.00, z=134.40], EntityBat['Bat'/68, l='MpServer', x=-211.75, y=29.10, z=141.69], EntityZombie['Zombie'/69, l='MpServer', x=-210.47, y=29.00, z=138.97], EntitySpider['Spider'/70, l='MpServer', x=-217.21, y=20.00, z=135.97], EntitySpider['Spider'/71, l='MpServer', x=-215.75, y=20.00, z=133.56], EntitySkeleton['Skeleton'/72, l='MpServer', x=-209.33, y=20.00, z=132.53], EntitySkeleton['Skeleton'/73, l='MpServer', x=-207.69, y=19.00, z=136.10], EntitySkeleton['Skeleton'/74, l='MpServer', x=-215.03, y=20.00, z=135.06], EntitySkeleton['Skeleton'/75, l='MpServer', x=-215.03, y=22.00, z=130.56], EntityCreeper['Creeper'/76, l='MpServer', x=-222.50, y=34.00, z=133.50], EntityCreeper['Creeper'/77, l='MpServer', x=-222.50, y=34.00, z=134.50], EntitySkeleton['Skeleton'/78, l='MpServer', x=-214.50, y=37.00, z=132.50], EntitySkeleton['Skeleton'/79, l='MpServer', x=-215.50, y=37.00, z=133.50], EntityCreeper['Creeper'/80, l='MpServer', x=-222.59, y=13.00, z=144.06], EntityBat['Bat'/81, l='MpServer', x=-215.31, y=19.00, z=165.27], EntitySlime['Slime'/83, l='MpServer', x=-201.69, y=26.00, z=138.31], EntityCreeper['Creeper'/84, l='MpServer', x=-206.67, y=19.00, z=134.44], EntitySkeleton['Skeleton'/85, l='MpServer', x=-200.91, y=31.00, z=142.66], EntityZombie['Zombie'/86, l='MpServer', x=-196.84, y=31.00, z=137.78], EntitySkeleton['Skeleton'/87, l='MpServer', x=-194.50, y=35.00, z=133.50], EntitySpider['Spider'/88, l='MpServer', x=-203.85, y=36.00, z=132.11], EntityZombie['Zombie'/89, l='MpServer', x=-200.53, y=35.00, z=136.00], EntityZombie['Zombie'/90, l='MpServer', x=-203.53, y=35.00, z=141.00], EntityCreeper['Creeper'/91, l='MpServer', x=-187.97, y=13.00, z=77.63], EntityChicken['Chicken'/92, l='MpServer', x=-177.44, y=62.40, z=101.56], EntitySquid['Squid'/93, l='MpServer', x=-185.50, y=57.28, z=136.50], EntityCreeper['Creeper'/94, l='MpServer', x=-186.56, y=33.00, z=144.00], EntityZombie['Zombie'/96, l='MpServer', x=-177.50, y=24.00, z=163.50], EntitySkeleton['Skeleton'/101, l='MpServer', x=-161.12, y=50.00, z=23.15], EntitySkeleton['Skeleton'/102, l='MpServer', x=-166.41, y=48.00, z=39.94], EntityEnderman['Enderman'/103, l='MpServer', x=-163.77, y=37.00, z=138.69], EntityCreeper['Creeper'/104, l='MpServer', x=-163.00, y=49.00, z=128.44], EntitySkeleton['Skeleton'/105, l='MpServer', x=-175.50, y=36.00, z=156.50], EntitySkeleton['Skeleton'/106, l='MpServer', x=-163.50, y=42.00, z=159.50], EntityBat['Bat'/108, l='MpServer', x=-160.11, y=45.05, z=162.29], EntityBat['Bat'/112, l='MpServer', x=-144.69, y=22.00, z=19.21], EntityCreeper['Creeper'/113, l='MpServer', x=-154.50, y=52.00, z=18.50], EntityCreeper['Creeper'/114, l='MpServer', x=-158.34, y=51.00, z=16.97], EntityCreeper['Creeper'/115, l='MpServer', x=-148.99, y=50.00, z=25.50], EntitySkeleton['Skeleton'/116, l='MpServer', x=-159.50, y=20.00, z=46.09], EntityItemFrame['entity.ItemFrame.name'/117, l='MpServer', x=-144.06, y=65.50, z=81.50], EntityItemFrame['entity.ItemFrame.name'/118, l='MpServer', x=-144.06, y=65.50, z=82.50], EntityItemFrame['entity.ItemFrame.name'/119, l='MpServer', x=-144.06, y=65.50, z=83.50], EntityItemFrame['entity.ItemFrame.name'/120, l='MpServer', x=-144.06, y=66.50, z=83.50], EntityItemFrame['entity.ItemFrame.name'/121, l='MpServer', x=-144.06, y=66.50, z=82.50], EntityItemFrame['entity.ItemFrame.name'/122, l='MpServer', x=-144.06, y=66.50, z=81.50], EntityItemFrame['entity.ItemFrame.name'/123, l='MpServer', x=-144.06, y=67.50, z=81.50], EntityItemFrame['entity.ItemFrame.name'/124, l='MpServer', x=-144.06, y=67.50, z=82.50], EntityItemFrame['entity.ItemFrame.name'/125, l='MpServer', x=-144.06, y=67.50, z=83.50], EntityItemFrame['entity.ItemFrame.name'/126, l='MpServer', x=-144.06, y=68.50, z=83.50], EntityItemFrame['entity.ItemFrame.name'/127, l='MpServer', x=-144.06, y=68.50, z=82.50], EntityItemFrame['entity.ItemFrame.name'/128, l='MpServer', x=-144.06, y=68.50, z=81.50], EntityItemFrame['entity.ItemFrame.name'/129, l='MpServer', x=-144.06, y=69.50, z=81.50], EntityItemFrame['entity.ItemFrame.name'/130, l='MpServer', x=-144.06, y=69.50, z=82.50], EntityItemFrame['entity.ItemFrame.name'/131, l='MpServer', x=-144.06, y=69.50, z=83.50], EntityItemFrame['entity.ItemFrame.name'/132, l='MpServer', x=-144.06, y=70.50, z=83.50], EntityItemFrame['entity.ItemFrame.name'/133, l='MpServer', x=-144.06, y=70.50, z=82.50], EntityItemFrame['entity.ItemFrame.name'/134, l='MpServer', x=-144.06, y=70.50, z=82.50], EntityItemFrame['entity.ItemFrame.name'/135, l='MpServer', x=-144.06, y=70.50, z=81.50], EntityItemFrame['entity.ItemFrame.name'/136, l='MpServer', x=-144.06, y=71.50, z=81.50], EntityItemFrame['entity.ItemFrame.name'/137, l='MpServer', x=-144.06, y=71.50, z=82.50], EntityItemFrame['entity.ItemFrame.name'/138, l='MpServer', x=-144.06, y=71.50, z=83.50], EntityItemFrame['entity.ItemFrame.name'/139, l='MpServer', x=-144.06, y=71.50, z=80.50], EntityItemFrame['entity.ItemFrame.name'/140, l='MpServer', x=-144.06, y=71.50, z=84.50], EntityItem['item.item.spiderEye'/141, l='MpServer', x=-144.88, y=64.13, z=116.41], EntityZombie['Zombie'/142, l='MpServer', x=-160.24, y=36.00, z=139.29], EntityBat['Bat'/151, l='MpServer', x=-136.47, y=26.19, z=45.79], EntityBat['Bat'/152, l='MpServer', x=-138.25, y=37.10, z=95.75], EntitySkeleton['Skeleton'/153, l='MpServer', x=-134.67, y=37.00, z=95.66], EntityCreeper['Creeper'/154, l='MpServer', x=-138.50, y=35.00, z=94.50], EntitySkeleton['Skeleton'/155, l='MpServer', x=-129.75, y=35.00, z=99.31], EntitySkeleton['Skeleton'/156, l='MpServer', x=-137.53, y=35.00, z=95.01], EntitySkeleton['Skeleton'/157, l='MpServer', x=-137.31, y=36.00, z=101.69], EntityCreeper['Creeper'/158, l='MpServer', x=-138.41, y=36.00, z=103.03], EntitySquid['Squid'/159, l='MpServer', x=-136.45, y=56.35, z=105.47], EntityCreeper['Creeper'/160, l='MpServer', x=-135.59, y=41.00, z=139.09], EntityZombie['Zombie'/161, l='MpServer', x=-133.00, y=40.00, z=137.56], EntityZombie['Zombie'/170, l='MpServer', x=-114.38, y=28.00, z=92.00], EntityBat['Bat'/171, l='MpServer', x=-123.44, y=33.00, z=97.71], EntityZombie['Zombie'/172, l='MpServer', x=-111.63, y=25.00, z=115.16], EntityCreeper['Creeper'/173, l='MpServer', x=-110.31, y=29.00, z=103.00], EntityCreeper['Creeper'/174, l='MpServer', x=-115.53, y=37.85, z=113.70], EntityBat['Bat'/175, l='MpServer', x=-114.57, y=38.13, z=113.64], EntitySquid['Squid'/176, l='MpServer', x=-123.37, y=56.35, z=101.76], EntityTomahawk['entity.wr.Tomahawk.name'/432, l='MpServer', x=-148.42, y=67.77, z=86.33], EntityCreeper['Creeper'/177, l='MpServer', x=-112.50, y=37.00, z=112.50], EntitySquid['Squid'/183, l='MpServer', x=-108.50, y=59.35, z=21.59], EntitySquid['Squid'/186, l='MpServer', x=-97.93, y=60.25, z=31.72], EntitySquid['Squid'/187, l='MpServer', x=-106.50, y=59.00, z=24.30], EntitySquid['Squid'/188, l='MpServer', x=-106.17, y=59.69, z=22.47], EntitySquid['Squid'/189, l='MpServer', x=-102.22, y=60.38, z=23.69], EntitySquid['Squid'/190, l='MpServer', x=-107.66, y=60.00, z=22.90], EntitySquid['Squid'/191, l='MpServer', x=-96.25, y=58.96, z=23.39], EntitySpider['Spider'/193, l='MpServer', x=-109.50, y=11.00, z=75.50], EntityCreeper['Creeper'/194, l='MpServer', x=-106.50, y=11.00, z=74.50], EntityCreeper['Creeper'/195, l='MpServer', x=-107.50, y=11.00, z=72.50], EntityCreeper['Creeper'/196, l='MpServer', x=-105.50, y=11.00, z=72.50], EntityZombie['Zombie'/197, l='MpServer', x=-108.50, y=11.00, z=71.50], EntityZombie['Zombie'/198, l='MpServer', x=-109.50, y=11.00, z=73.50], EntityItem['item.item.rottenFlesh'/199, l='MpServer', x=-104.91, y=64.13, z=64.13], EntityItem['item.item.arrow'/200, l='MpServer', x=-110.34, y=66.13, z=82.13], EntityItem['item.item.bone'/201, l='MpServer', x=-109.94, y=66.13, z=83.19], EntityBat['Bat'/202, l='MpServer', x=-108.28, y=31.30, z=97.75], EntityBat['Bat'/203, l='MpServer', x=-108.11, y=37.00, z=120.93], EntityBat['Bat'/204, l='MpServer', x=-99.17, y=25.88, z=136.49], EntitySquid['Squid'/207, l='MpServer', x=-96.61, y=57.20, z=35.39], EntitySkeleton['Skeleton'/208, l='MpServer', x=-85.51, y=28.69, z=147.54], EntityZombie['Zombie'/209, l='MpServer', x=-87.50, y=32.00, z=153.50], EntityClientPlayerMP['Player664'/244, l='MpServer', x=-146.91, y=68.11, z=86.39]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)

at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2566)

at net.minecraft.client.Minecraft.run(Minecraft.java:984)

at net.minecraft.client.main.Main.main(Main.java:164)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)

at GradleStart.main(Unknown Source)

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 10 (amd64) version 10.0

Java Version: 1.8.0_74, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 744081360 bytes (709 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94

FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 4 mods loaded, 4 mods active

States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)

UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)

UCHIJAAAA Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)

UCHIJAAAA wr{1.0} [War Revival Mod] (bin)

GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.3.0' Renderer: 'NVS 5100M/PCIe/SSE2'

Launched Version: 1.7.10

LWJGL: 2.9.1

OpenGL: NVS 5100M/PCIe/SSE2 GL version 3.3.0, NVIDIA Corporation

GL Caps: Using GL 1.3 multitexturing.

Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.

Anisotropic filtering is supported and maximum anisotropy is 16.

Shaders are available because OpenGL 2.1 is supported.

 

Is Modded: Definitely; Client brand changed to 'fml,forge'

Type: Client (map_client.txt)

Resource Packs: []

Current Language: English (US)

Profiler Position: N/A (disabled)

Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Anisotropic Filtering: Off (1)

 

 

Am I just not specifying the texture path correctly?

Posted

You didn't call #setEntityTexture, and assume that #tomahawkTexture be initialized...

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.