Jump to content

Custom Arrow-Projectile not rendering crorrectly


Herobone
 Share

Recommended Posts

Hi there!

I want to render my own Texture on an arrow!

 

I know that there are different methods and i tried them. But nothing worked like i wished! My cannon killed entities but it didn't displayed the flying Projectile.

 

Here are the files. If you have to see the full mod, you can find it here on GitHub

 

Main Mod-File:

Spoiler

package com.herobone.heroutils;

import java.lang.reflect.Proxy;

import com.herobone.heroutils.handler.TutorialEventHandler;
import com.herobone.heroutils.proxy.CommonProxy;
import com.herobone.heroutils.registry.BlockRegistry;
import com.herobone.heroutils.registry.CraftingRegistry;
import com.herobone.heroutils.registry.EntityRegister;
import com.herobone.heroutils.registry.ItemRegistry;
import com.herobone.heroutils.registry.SmeltingRegistry;
import com.herobone.heroutils.registry.TabRegister;

import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.ItemRenderer;
import net.minecraft.client.renderer.RenderItem;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraftforge.client.model.obj.OBJLoader;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.*;
import net.minecraftforge.fml.common.Mod.*;
import net.minecraftforge.fml.common.event.*;

@Mod(modid = HeroUtils.MODID, version = HeroUtils.VERSION, name = HeroUtils.NAME, dependencies = "after:CoFHCore;")
public class HeroUtils
{
    public static final String MODID = "heroutils";
    public static final String VERSION = "1.0";
    public static final String NAME = "Herobone-Utils Mod";
    
    @Instance(MODID)
    public static HeroUtils instance = new HeroUtils();
    
    @SidedProxy(modId = MODID, serverSide = "com.herobone.heroutils.proxy.CommonProxy", clientSide = "com.herobone.heroutils.proxy.ClientProxy")
    public static CommonProxy proxy = new CommonProxy();
    
    public static RenderManager renderManager = Minecraft.getMinecraft().getRenderManager();
    public static RenderItem itemRenderer = Minecraft.getMinecraft().getRenderItem();
    
    public TabRegister tab;
    
    public ItemRegistry items;
    public BlockRegistry blocks;
    public EntityRegister entityreg;

    public CraftingRegistry crafting;
    public SmeltingRegistry smelting;
    
    @EventHandler
    public void preinit(FMLPreInitializationEvent event)
    {
    	OBJLoader.INSTANCE.addDomain(HeroUtils.MODID);
    	
    	tab = new TabRegister();
    	
    	items = new ItemRegistry();
    	items.init();
    	items.register();
    	
    	blocks = new BlockRegistry();
    	blocks.init();
    	blocks.register();
    	
    	entityreg = new EntityRegister();
    	entityreg.register();
    	
    	proxy.registerTileEntities();
    }
    
    @EventHandler
    public void init(FMLInitializationEvent event)
    {
    	crafting = new CraftingRegistry();
    	crafting.unregister();
    	crafting.register();
    	
    	smelting = new SmeltingRegistry();
    	smelting.unregister();
    	smelting.register();
    	
    	MinecraftForge.EVENT_BUS.register(new TutorialEventHandler());
    	
    	proxy.init();
    }
    
    @EventHandler
    public void postinit(FMLPostInitializationEvent event)
    {
    	proxy.registerModels();
    }
}

 

 

EntityRegister:

Spoiler

package com.herobone.heroutils.registry;

import com.herobone.heroutils.HeroUtils;
import com.herobone.heroutils.entity.projectile.PlasmaArrow;
import com.herobone.heroutils.utils.NameUtils;

import net.minecraft.entity.Entity;
import net.minecraftforge.fml.common.registry.EntityRegistry;

public class EntityRegister {
	
	public static Entity plasmaprojectile;
	
	public static int ENTITY_ID = 123;

	public void init() {
	}
	
	public void register() {
		registerEnity(PlasmaArrow.class, "PlasmaProjectile");
	}
	
	public static void registerEnity(Class<? extends Entity> classIn, String name) {
		EntityRegistry.registerModEntity(classIn, name, ++ENTITY_ID, HeroUtils.instance, 64, 10, false);
	}
	
}

 

 

ClientProxy:

Spoiler

package com.herobone.heroutils.proxy;

import com.herobone.heroutils.HeroUtils;
import com.herobone.heroutils.entity.SnowRender;
import com.herobone.heroutils.entity.projectile.PlasmaArrow;
import com.herobone.heroutils.registry.BlockRegistry;
import com.herobone.heroutils.registry.EntityRegister;
import com.herobone.heroutils.registry.ItemRegistry;
import com.herobone.heroutils.render.PlasmaArrowRender;

import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderArrow;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.client.registry.IRenderFactory;
import net.minecraftforge.fml.client.registry.RenderingRegistry;
import net.minecraftforge.fml.common.network.NetworkRegistry;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class ClientProxy extends CommonProxy {
	
	public void registerModels() {
		registerModel(ItemRegistry.tutitem, 0, new ModelResourceLocation(ItemRegistry.tutitem.getRegistryName(), "inventory"));
		registerModel(ItemRegistry.tutfood, 0, new ModelResourceLocation(ItemRegistry.tutfood.getRegistryName(), "inventory"));
		registerModel(BlockRegistry.tutblock, 0, new ModelResourceLocation(BlockRegistry.tutblock.getRegistryName(), "inventory"));
		registerModel(BlockRegistry.herohead, 0, new ModelResourceLocation(BlockRegistry.herohead.getRegistryName(), "inventory"));
		registerModel(ItemRegistry.gravitybelt, 0, new ModelResourceLocation(ItemRegistry.gravitybelt.getRegistryName(), "inventory"));
		registerModel(ItemRegistry.plasmacannon, 0, new ModelResourceLocation(ItemRegistry.plasmacannon.getRegistryName(), "inventory"));
		registerModel(ItemRegistry.plasmaprojectile, 0, new ModelResourceLocation(ItemRegistry.plasmaprojectile.getRegistryName(), "inventory"));
	}
	
	public void init() {
		RenderingRegistry.registerEntityRenderingHandler(PlasmaArrow.class, new IRenderFactory<PlasmaArrow>() {
			@Override
			public Render<PlasmaArrow> createRenderFor(RenderManager manager)
			{
				return new PlasmaArrowRender<PlasmaArrow>() {

					@Override
					protected ResourceLocation getEntityTexture(PlasmaArrow entity) {
						return new ResourceLocation(HeroUtils.MODID, "textures/entity/projectile.png");
					}
				};
			}
		});
	}

	private void registerModel(Object obj, int meta, ModelResourceLocation loc) {
		Item item = null;
		
		if (obj instanceof Item) {
			item = (Item) obj;
		} else if (obj instanceof Block) {
			item = Item.getItemFromBlock((Block)obj);
		} else {
			throw new IllegalArgumentException();
		}
		
		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, meta, loc);
	}
}

 

 

The Cannon that shoots the projectile (Plasma Cannon (i think it looks great)) (The Energy API is From CoFH and Mekanism)

Spoiler

package com.herobone.heroutils.item;

import java.util.List;

import javax.annotation.Nullable;

import com.herobone.heroutils.entity.projectile.PlasmaArrow;
import com.herobone.heroutils.registry.ItemRegistry;

import mekanism.api.ItemDataUtils;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.entity.projectile.EntityArrow;
import net.minecraft.entity.projectile.EntitySnowball;
import net.minecraft.init.Items;
import net.minecraft.init.MobEffects;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArrow;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.ActionResult;
import net.minecraft.util.EnumActionResult;
import net.minecraft.util.EnumHand;
import net.minecraft.util.EnumParticleTypes;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.RayTraceResult;
import net.minecraft.util.text.TextComponentString;
import net.minecraft.world.World;

public class PlasmaCannon extends ItemEnergized {

	public PlasmaCannon() {
		super(100000);
	}
	
	public static boolean isDeactive = false;
	
	@Override
	public void addInformation(ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) {
		super.addInformation(stack, playerIn, tooltip, advanced);
		
		tooltip.add("\u00A7c" + "Energy: " + getEnergy(stack) + "/" + getMaxEnergy(stack));
	}
	
	private ItemStack findAmmo(EntityPlayer player)
    {
        if(isAmmo(player.getHeldItem(EnumHand.OFF_HAND)))
        {
            return player.getHeldItem(EnumHand.OFF_HAND);
        }
        else if(isAmmo(player.getHeldItem(EnumHand.MAIN_HAND)))
        {
            return player.getHeldItem(EnumHand.MAIN_HAND);
        }
        else {
            for(int i = 0; i < player.inventory.getSizeInventory(); ++i)
            {
                ItemStack itemstack = player.inventory.getStackInSlot(i);

                if(isAmmo(itemstack))
                {
                    return itemstack;
                }
            }

            return null;
        }
    }

    protected boolean isAmmo(@Nullable ItemStack stack)
    {
        return stack != null && stack.getItem() instanceof PlasmaProjectile;
    }
	
	@Override
	public ActionResult onItemRightClick(ItemStack itemStack, World world, EntityPlayer player,
			EnumHand hand) {
		if (!player.isSneaking() && !isDeactive) {
			if (!world.isRemote) {
				if (getEnergy(itemStack) > 100) {
					ItemStack ammo = findAmmo(player);
					if (ammo == null) {
						ammo = new ItemStack(ItemRegistry.plasmaprojectile);
					}
					PlasmaProjectile itemarrow = (PlasmaProjectile)(ammo.getItem() instanceof PlasmaProjectile ? ammo.getItem() : ItemRegistry.plasmaprojectile);
                    PlasmaArrow entityarrow = itemarrow.createArrow(world, itemStack, player);
                    //EntityArrow entityarrow = itemarrow.createArrow(world, itemStack, player);
                    entityarrow.setAim(player, player.rotationPitch, player.rotationYaw, 0.0F, 20F, 1.0F);
					world.spawnEntityInWorld(entityarrow);
					setEnergy(itemStack, getEnergy(itemStack) - 100);
				} else {
					player.addChatMessage(new TextComponentString("§5Energy to low!"));
				}
			}
		} else if (player.isSneaking()) {
			if (!isDeactive) {
				ItemDataUtils.setBoolean(itemStack, "isDeactive", !isDeactive);
				isDeactive = !isDeactive;
				player.addChatMessage(new TextComponentString("Deactivated"));
			} else if (isDeactive) {
				ItemDataUtils.setBoolean(itemStack, "isDeactive", !isDeactive);
				isDeactive = !isDeactive;
				player.addChatMessage(new TextComponentString("Activated"));
			}
		}
		return new ActionResult(EnumActionResult.SUCCESS, itemStack);
	}
	
}

 

 

The Projectile (item):

Spoiler

package com.herobone.heroutils.item;

import com.herobone.heroutils.entity.projectile.PlasmaArrow;
import com.herobone.heroutils.registry.ItemRegistry;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.projectile.EntityArrow;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArrow;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;

public class PlasmaProjectile extends ItemArrow {
	public PlasmaProjectile() {
		super();
	}

	public PlasmaArrow createArrow(World world, ItemStack itemStack, EntityPlayer player) {
		PlasmaArrow plasmaarrow = new PlasmaArrow(world, player) {
			
			@Override
			protected ItemStack getArrowStack() {
				return new ItemStack(ItemRegistry.plasmaprojectile);
			}
		};
		return plasmaarrow;
	}
}

 

 

 

The Projectile (entity):

Spoiler

package com.herobone.heroutils.entity.projectile;

import com.herobone.heroutils.HeroUtils;
import com.herobone.heroutils.registry.ItemRegistry;

import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.projectile.EntityArrow;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumParticleTypes;
import net.minecraft.util.datafix.DataFixer;
import net.minecraft.world.World;

public class PlasmaArrow extends EntityArrow {

	private int duration;

	public PlasmaArrow(World worldIn)
    {
        super(worldIn);
        this.pickupStatus = EntityArrow.PickupStatus.DISALLOWED;
        this.setSize(0.5F, 0.5F);
    }

    public PlasmaArrow(World worldIn, double x, double y, double z)
    {
        this(worldIn);
        this.setPosition(x, y, z);
    }

    public PlasmaArrow(World worldIn, EntityLivingBase shooter)
    {
        this(worldIn, shooter.posX, shooter.posY + (double)shooter.getEyeHeight() - 0.10000000149011612D, shooter.posZ);
        this.shootingEntity = shooter;

        if (shooter instanceof EntityPlayer)
        {
            this.pickupStatus = EntityArrow.PickupStatus.ALLOWED;
        }
    }
	
	@Override
    public void onUpdate()
    {
        super.onUpdate();
 
        for (int i = 0; i < 10; i++)
        {
            double x = (double)(rand.nextInt(10) - 5) / 8.0D;
            double y = (double)(rand.nextInt(10) - 5) / 8.0D;
            double z = (double)(rand.nextInt(10) - 5) / 8.0D;
            worldObj.spawnParticle(EnumParticleTypes.END_ROD, posX, posY, posZ, x, y, z, new int[0]);
        }
    }

	@Override
	protected ItemStack getArrowStack() {
		return new ItemStack(ItemRegistry.plasmaprojectile);
	}
	
    protected void arrowHit(EntityLivingBase living)
    {
        super.arrowHit(living);
    }

}

 

 

The Projectile-Render:

Spoiler

 


package com.herobone.heroutils.render;

import com.herobone.heroutils.HeroUtils;
import com.herobone.heroutils.entity.projectile.PlasmaArrow;

import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.VertexBuffer;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
import net.minecraft.util.math.MathHelper;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public abstract class PlasmaArrowRender<T extends PlasmaArrow> extends Render<T>
{
    public PlasmaArrowRender()
    {
        super(HeroUtils.renderManager);
    }

    /**
     * Renders the desired {@code T} type Entity.
     */
    public void doRender(T entity, double x, double y, double z, float entityYaw, float partialTicks)
    {
        this.bindEntityTexture(entity);
        GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
        GlStateManager.pushMatrix();
        GlStateManager.disableLighting();
        GlStateManager.translate((float)x, (float)y, (float)z);
        GlStateManager.rotate(entity.prevRotationYaw + (entity.rotationYaw - entity.prevRotationYaw) * partialTicks - 90.0F, 0.0F, 1.0F, 0.0F);
        GlStateManager.rotate(entity.prevRotationPitch + (entity.rotationPitch - entity.prevRotationPitch) * partialTicks, 0.0F, 0.0F, 1.0F);
        Tessellator tessellator = Tessellator.getInstance();
        VertexBuffer vertexbuffer = tessellator.getBuffer();
        int i = 0;
        float f = 0.0F;
        float f1 = 0.5F;
        float f2 = 0.0F;
        float f3 = 0.15625F;
        float f4 = 0.0F;
        float f5 = 0.15625F;
        float f6 = 0.15625F;
        float f7 = 0.3125F;
        float f8 = 0.05625F;
        GlStateManager.enableRescaleNormal();
        float f9 = (float)entity.arrowShake - partialTicks;

        if (f9 > 0.0F)
        {
            float f10 = -MathHelper.sin(f9 * 3.0F) * f9;
            GlStateManager.rotate(f10, 0.0F, 0.0F, 1.0F);
        }

        GlStateManager.rotate(45.0F, 1.0F, 0.0F, 0.0F);
        GlStateManager.scale(0.05625F, 0.05625F, 0.05625F);
        GlStateManager.translate(-4.0F, 0.0F, 0.0F);

        if (this.renderOutlines)
        {
            GlStateManager.enableColorMaterial();
            GlStateManager.enableOutlineMode(this.getTeamColor(entity));
        }

        GlStateManager.glNormal3f(0.05625F, 0.0F, 0.0F);
        vertexbuffer.begin(7, DefaultVertexFormats.POSITION_TEX);
        vertexbuffer.pos(-7.0D, -2.0D, -2.0D).tex(0.0D, 0.15625D).endVertex();
        vertexbuffer.pos(-7.0D, -2.0D, 2.0D).tex(0.15625D, 0.15625D).endVertex();
        vertexbuffer.pos(-7.0D, 2.0D, 2.0D).tex(0.15625D, 0.3125D).endVertex();
        vertexbuffer.pos(-7.0D, 2.0D, -2.0D).tex(0.0D, 0.3125D).endVertex();
        tessellator.draw();
        GlStateManager.glNormal3f(-0.05625F, 0.0F, 0.0F);
        vertexbuffer.begin(7, DefaultVertexFormats.POSITION_TEX);
        vertexbuffer.pos(-7.0D, 2.0D, -2.0D).tex(0.0D, 0.15625D).endVertex();
        vertexbuffer.pos(-7.0D, 2.0D, 2.0D).tex(0.15625D, 0.15625D).endVertex();
        vertexbuffer.pos(-7.0D, -2.0D, 2.0D).tex(0.15625D, 0.3125D).endVertex();
        vertexbuffer.pos(-7.0D, -2.0D, -2.0D).tex(0.0D, 0.3125D).endVertex();
        tessellator.draw();

        for (int j = 0; j < 4; ++j)
        {
            GlStateManager.rotate(90.0F, 1.0F, 0.0F, 0.0F);
            GlStateManager.glNormal3f(0.0F, 0.0F, 0.05625F);
            vertexbuffer.begin(7, DefaultVertexFormats.POSITION_TEX);
            vertexbuffer.pos(-8.0D, -2.0D, 0.0D).tex(0.0D, 0.0D).endVertex();
            vertexbuffer.pos(8.0D, -2.0D, 0.0D).tex(0.5D, 0.0D).endVertex();
            vertexbuffer.pos(8.0D, 2.0D, 0.0D).tex(0.5D, 0.15625D).endVertex();
            vertexbuffer.pos(-8.0D, 2.0D, 0.0D).tex(0.0D, 0.15625D).endVertex();
            tessellator.draw();
        }

        if (this.renderOutlines)
        {
            GlStateManager.disableOutlineMode();
            GlStateManager.disableColorMaterial();
        }

        GlStateManager.disableRescaleNormal();
        GlStateManager.enableLighting();
        GlStateManager.popMatrix();
        super.doRender(entity, x, y, z, entityYaw, partialTicks);
    }
}

 

 

The Error:

Spoiler

2017-06-28 16:32:39,089 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-06-28 16:32:39,091 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[16:32:39] [main/INFO] [GradleStart]: Extra: []
[16:32:39] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/juliu/.gradle/caches/minecraft/assets, --assetIndex, 1.10, --accessToken{REDACTED}, --version, 1.10.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[16:32:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[16:32:39] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[16:32:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:32:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[16:32:39] [main/INFO] [FML]: Forge Mod Loader version 12.18.3.2316 for Minecraft 1.10.2 loading
[16:32:39] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_131, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_131\jre
[16:32:39] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2017-06-28 16:32:39,547 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-06-28 16:32:39,620 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-06-28 16:32:39,622 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[16:32:39] [main/WARN] [FML]: The coremod codechicken.lib.asm.CCLCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[16:32:39] [main/WARN] [FML]: The coremod cofh.asm.LoadingPlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[16:32:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:32:39] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[16:32:39] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[16:32:39] [main/INFO] [GradleStart]: Injecting location in coremod codechicken.lib.asm.CCLCorePlugin
[16:32:39] [main/INFO] [GradleStart]: Injecting location in coremod cofh.asm.LoadingPlugin
[16:32:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:32:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[16:32:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:32:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:32:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:32:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:32:39] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[16:32:42] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[16:32:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:32:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:32:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[16:32:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:32:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:32:43] [main/INFO] [GradleStart]: Remapping AccessTransformer rules...
[16:32:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[16:32:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[16:32:43] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[16:32:44] [Client thread/INFO]: Setting user: Player843
[16:32:48] [Client thread/WARN]: Skipping bad option: lastServer:
[16:32:48] [Client thread/INFO]: LWJGL Version: 2.9.4
[16:32:50] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:225]: ---- Minecraft Crash Report ----

WARNING: coremods are present:
  CoFH Loading Plugin (CoFHCore-1.10.2-4.1.8.12-universal.jar)
  CCLCorePlugin (CodeChickenLib-1.10.2-2.5.9.267-universal.jar)
Contact their authors BEFORE contacting forge

// Ooh. Shiny.

Time: 28.06.17 16:32
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


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

-- System Details --
Details:
	Minecraft Version: 1.10.2
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_131, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 831768824 bytes (793 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	FML: 
	Loaded coremods (and transformers): 
CoFH Loading Plugin (CoFHCore-1.10.2-4.1.8.12-universal.jar)
  cofh.asm.CoFHClassTransformer
  cofh.asm.repack.codechicken.lib.asm.ClassHierarchyManager
CCLCorePlugin (CodeChickenLib-1.10.2-2.5.9.267-universal.jar)
  codechicken.lib.asm.ClassHeirachyManager
  codechicken.lib.asm.CCL_ASMTransformer
	GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13474 Compatibility Profile Context 22.19.162.4' Renderer: 'Radeon (TM) RX 470 Graphics'
[16:32:50] [Client thread/INFO] [FML]: MinecraftForge v12.18.3.2316 Initialized
[16:32:50] [Client thread/INFO] [FML]: Replaced 231 ore recipes
[16:32:50] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[16:32:50] [Client thread/INFO] [FML]: Searching C:\Users\user\Documents\MinecraftMods\HeroUtils-master\run\mods for mods
[16:32:51] [Client thread/WARN] [FML]: ****************************************
[16:32:51] [Client thread/WARN] [FML]: * The modid CodeChickenLib is not the same as it's lowercase version. Lowercasing will be enforced in 1.11
[16:32:51] [Client thread/WARN] [FML]: *  at net.minecraftforge.fml.common.FMLModContainer.sanityCheckModId(FMLModContainer.java:145)
[16:32:51] [Client thread/WARN] [FML]: *  at net.minecraftforge.fml.common.FMLModContainer.<init>(FMLModContainer.java:130)
[16:32:51] [Client thread/WARN] [FML]: *  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[16:32:51] [Client thread/WARN] [FML]: *  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[16:32:51] [Client thread/WARN] [FML]: *  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[16:32:51] [Client thread/WARN] [FML]: *  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)...
[16:32:51] [Client thread/WARN] [FML]: ****************************************
[16:32:51] [Client thread/WARN] [CodeChickenLib]: Mod CodeChickenLib is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 2.5.9.267
[16:32:51] [Client thread/INFO] [ccl-entityhook]: Mod ccl-entityhook is missing the required element 'name'. Substituting ccl-entityhook
[16:32:51] [Client thread/WARN] [ccl-entityhook]: Mod ccl-entityhook is missing the required element 'version' and no fallback can be found. Substituting '1.0'.
[16:32:51] [Client thread/INFO] [FML]: Forge Mod Loader has identified 11 mods to load
[16:32:52] [Client thread/INFO] [FML]: Found mod(s) [cofhcore] containing declared API package cofh.api.energy (owned by CoFHAPI) without associated API reference
[16:32:52] [Client thread/INFO] [FML]: Found mod(s) [heroutils] containing declared API package cofh.api.item (owned by cofhapi) without associated API reference
[16:32:52] [Client thread/INFO] [FML]: Found mod(s) [heroutils] containing declared API package cofh.api (owned by cofhlib) without associated API reference
[16:32:52] [Client thread/INFO] [FML]: Found mod(s) [cofhcore] containing declared API package cofh.api.item (owned by CoFHAPI) without associated API reference
[16:32:52] [Client thread/INFO] [FML]: Found mod(s) [heroutils] containing declared API package cofh.api.energy (owned by cofhapi) without associated API reference
[16:32:52] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, <CoFH ASM>, heroutils, CodeChickenLib, ccl-entityhook, cofhcore, crossbowmod, thermalexpansion, thermalfoundation] at CLIENT
[16:32:52] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, <CoFH ASM>, heroutils, CodeChickenLib, ccl-entityhook, cofhcore, crossbowmod, thermalexpansion, thermalfoundation] at SERVER
[16:32:52] [Thread-6/INFO] [FML]: Using sync timing. 200 frames of Display.update took 143412204 nanos
[16:32:53] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Herobone-Utils Mod, FMLFileResourcePack:CodeChicken Lib, FMLFileResourcePack:ccl-entityhook, FMLFileResourcePack:CoFH Core, FMLFileResourcePack:Crossbow Mod, FMLFileResourcePack:Thermal Expansion, FMLFileResourcePack:Thermal Foundation
[16:32:53] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[16:32:53] [Client thread/INFO] [FML]: Found 423 ObjectHolder annotations
[16:32:53] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[16:32:53] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[16:32:53] [Client thread/INFO] [FML]: Applying holder lookups
[16:32:53] [Client thread/INFO] [FML]: Holder lookups applied
[16:32:53] [Client thread/INFO] [FML]: Applying holder lookups
[16:32:53] [Client thread/INFO] [FML]: Holder lookups applied
[16:32:53] [Client thread/INFO] [FML]: Applying holder lookups
[16:32:53] [Client thread/INFO] [FML]: Holder lookups applied
[16:32:54] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[16:32:54] [Forge Version Check/INFO] [ForgeVersionCheck]: [thermalexpansion] Starting version check at https://raw.github.com/cofh/version/master/thermalexpansion_update.json
[16:32:54] [Client thread/INFO] [CoFHWorld]: Registering default Templates...
[16:32:54] [Client thread/INFO] [CoFHWorld]: Registering default generators...
[16:32:54] [Client thread/INFO] [CoFHWorld]: Verifying or creating base world generation directory...
[16:32:54] [Client thread/INFO] [CoFHWorld]: Complete.
[16:32:54] [Client thread/INFO] [FML]: OBJLoader: Domain heroutils has been added.
[16:32:55] [Forge Version Check/INFO] [ForgeVersionCheck]: [thermalexpansion] Found status: UP_TO_DATE Target: null
[16:32:55] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[16:32:55] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: AHEAD Target: null
[16:32:55] [Forge Version Check/INFO] [ForgeVersionCheck]: [cofhcore] Starting version check at https://raw.github.com/cofh/version/master/cofhcore_update.json
[16:32:55] [Forge Version Check/INFO] [ForgeVersionCheck]: [cofhcore] Found status: UP_TO_DATE Target: null
[16:32:55] [Forge Version Check/INFO] [ForgeVersionCheck]: [thermalfoundation] Starting version check at https://raw.github.com/cofh/version/master/thermalfoundation_update.json
[16:32:56] [Forge Version Check/INFO] [ForgeVersionCheck]: [thermalfoundation] Found status: UP_TO_DATE Target: null
[16:32:57] [Client thread/INFO] [FML]: Applying holder lookups
[16:32:57] [Client thread/INFO] [FML]: Holder lookups applied
[16:32:57] [Client thread/INFO] [FML]: Injecting itemstacks
[16:32:57] [Client thread/INFO] [FML]: Itemstack injection complete
[16:33:02] [Sound Library Loader/INFO]: Starting up SoundSystem...
[16:33:02] [Thread-8/INFO]: Initializing LWJGL OpenAL
[16:33:02] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[16:33:02] [Thread-8/INFO]: OpenAL initialized.
[16:33:03] [Sound Library Loader/INFO]: Sound engine started
[16:33:07] [Client thread/INFO] [FML]: OBJLoader.MaterialLibrary: key 'Ns' (model: 'heroutils:models/item/plasmaCannon.mtl') is not currently supported, skipping
[16:33:07] [Client thread/INFO] [FML]: OBJModel: A color has already been defined for material 'Material.003' in 'heroutils:models/item/plasmaCannon.mtl'. The color defined by key 'Ks' will not be applied!
[16:33:07] [Client thread/INFO] [FML]: OBJLoader.MaterialLibrary: key 'Ke' (model: 'heroutils:models/item/plasmaCannon.mtl') is not currently supported, skipping
[16:33:07] [Client thread/INFO] [FML]: OBJLoader.MaterialLibrary: key 'Ni' (model: 'heroutils:models/item/plasmaCannon.mtl') is not currently supported, skipping
[16:33:07] [Client thread/INFO] [FML]: OBJLoader.MaterialLibrary: key 'illum' (model: 'heroutils:models/item/plasmaCannon.mtl') is not currently supported, skipping
[16:33:07] [Client thread/INFO] [FML]: OBJModel: A color has already been defined for material 'Material.004' in 'heroutils:models/item/plasmaCannon.mtl'. The color defined by key 'Ks' will not be applied!
[16:33:07] [Client thread/INFO] [FML]: OBJLoader.Parser: command 's' (model: 'heroutils:models/item/plasmacannon.obj') is not currently supported, skipping. Line: 19 's off'
[16:33:10] [Client thread/INFO] [FML]: Max texture size: 16384
[16:33:10] [Client thread/INFO]: Created: 16x16 textures-atlas
[16:33:11] [Client thread/INFO] [FML]: Injecting itemstacks
[16:33:11] [Client thread/INFO] [FML]: Itemstack injection complete
[16:33:11] [Client thread/INFO] [CoFHWorld]: Found 4 World Generation files and 0 folders present in C:\Users\juliu\Documents\MinecraftMods\HeroUtils-master\run\config\cofh\world.
[16:33:12] [Client thread/INFO] [CoFHWorld]: Reading world generation info from: cofh\world\thermalfoundation_clathrates.json:
[16:33:12] [Client thread/INFO] [CoFHWorld]: Finished reading cofh\world\thermalfoundation_clathrates.json
[16:33:12] [Client thread/INFO] [CoFHWorld]: Reading world generation info from: cofh\world\thermalfoundation_oil.json:
[16:33:12] [Client thread/INFO] [CoFHWorld]: Finished reading cofh\world\thermalfoundation_oil.json
[16:33:12] [Client thread/INFO] [CoFHWorld]: Reading world generation info from: cofh\world\thermalfoundation_ores.json:
[16:33:12] [Client thread/INFO] [CoFHWorld]: Finished reading cofh\world\thermalfoundation_ores.json
[16:33:12] [Client thread/INFO] [cofhcore]: CoFH Core: Load Complete.
[16:33:12] [Client thread/INFO] [thermalfoundation]: [Whitelist] Reading established Whitelist from file.
[16:33:12] [Client thread/INFO] [thermalfoundation]: Thermal Foundation: Load Complete.
[16:33:12] [Client thread/INFO] [thermalexpansion]: Thermal Expansion: Load Complete.
[16:33:12] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 11 mods
[16:33:12] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Herobone-Utils Mod, FMLFileResourcePack:CodeChicken Lib, FMLFileResourcePack:ccl-entityhook, FMLFileResourcePack:CoFH Core, FMLFileResourcePack:Crossbow Mod, FMLFileResourcePack:Thermal Expansion, FMLFileResourcePack:Thermal Foundation
[16:33:17] [Client thread/INFO]: SoundSystem shutting down...
[16:33:17] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[16:33:17] [Sound Library Loader/INFO]: Starting up SoundSystem...
[16:33:17] [Thread-10/INFO]: Initializing LWJGL OpenAL
[16:33:17] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[16:33:17] [Thread-10/INFO]: OpenAL initialized.
[16:33:18] [Sound Library Loader/INFO]: Sound engine started
[16:33:22] [Client thread/INFO] [FML]: OBJLoader.MaterialLibrary: key 'Ns' (model: 'heroutils:models/item/plasmaCannon.mtl') is not currently supported, skipping
[16:33:22] [Client thread/INFO] [FML]: OBJModel: A color has already been defined for material 'Material.003' in 'heroutils:models/item/plasmaCannon.mtl'. The color defined by key 'Ks' will not be applied!
[16:33:22] [Client thread/INFO] [FML]: OBJLoader.MaterialLibrary: key 'Ke' (model: 'heroutils:models/item/plasmaCannon.mtl') is not currently supported, skipping
[16:33:22] [Client thread/INFO] [FML]: OBJLoader.MaterialLibrary: key 'Ni' (model: 'heroutils:models/item/plasmaCannon.mtl') is not currently supported, skipping
[16:33:22] [Client thread/INFO] [FML]: OBJLoader.MaterialLibrary: key 'illum' (model: 'heroutils:models/item/plasmaCannon.mtl') is not currently supported, skipping
[16:33:22] [Client thread/INFO] [FML]: OBJModel: A color has already been defined for material 'Material.004' in 'heroutils:models/item/plasmaCannon.mtl'. The color defined by key 'Ks' will not be applied!
[16:33:24] [Client thread/INFO] [FML]: Max texture size: 16384
[16:33:25] [Client thread/INFO]: Created: 1024x1024 textures-atlas
[16:33:26] [Client thread/WARN]: Skipping bad option: lastServer:
[16:33:27] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[16:33:42] [Server thread/INFO]: Starting integrated minecraft server version 1.10.2
[16:33:42] [Server thread/INFO]: Generating keypair
[16:33:42] [Server thread/ERROR] [fml.ModTracker]: This world was saved with mod Baubles which appears to be missing, things may not work well
[16:33:42] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[16:33:42] [Server thread/INFO] [FML]: Found a missing id from the world examplemod:tutblock
[16:33:42] [Server thread/INFO] [FML]: Found a missing id from the world examplemod:herohead
[16:33:42] [Server thread/INFO] [FML]: Found a missing id from the world baubles:Ring
[16:33:42] [Server thread/ERROR] [FML]: There are unidentified mappings in this world - we are going to attempt to process anyway
[16:33:42] [Server thread/ERROR] [FML]: Unidentified item: baubles:Ring, id 4100
[16:33:47] [Server thread/INFO] [FML]: World backup created at C:\Users\user\Documents\MinecraftMods\HeroUtils-master\run\saves\New World-20170628-163347.zip.
[16:33:47] [Server thread/WARN] [FML]: This world contains block and item mappings that may cause world breakage
[16:33:47] [Server thread/INFO] [FML]: Applying holder lookups
[16:33:47] [Server thread/INFO] [FML]: Holder lookups applied
[16:33:47] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@74ac47ae)
[16:33:48] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@74ac47ae)
[16:33:48] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@74ac47ae)
[16:33:48] [Server thread/INFO]: Preparing start region for level 0
[16:33:49] [Server thread/INFO]: Preparing spawn area: 45%
[16:33:49] [Server thread/INFO]: Changing view distance to 12, from 10
[16:33:51] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[16:33:51] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[16:33:51] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 11 mods : CodeChickenLib@2.5.9.267,cofhcore@4.1.8,FML@8.0.99.99,thermalexpansion@5.1.7,thermalfoundation@2.1.3,Forge@12.18.3.2316,mcp@9.19,heroutils@1.0,crossbowmod@1.6,<CoFH ASM>@000,ccl-entityhook@1.0
[16:33:51] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[16:33:51] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[16:33:51] [Server thread/INFO]: Player843[local:E:af5c5765] logged in with entity id 302 at (-114.2378032529698, 85.22055223289318, 189.53339884721453)
[16:33:51] [Server thread/INFO]: Player843 joined the game
[16:33:52] [Server thread/INFO]: Saving and pausing game...
[16:33:52] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[16:33:52] [Client thread/INFO]: [CHAT] Hello Player843
[16:33:52] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@653c89a9[id=45c2c1e2-9dd4-3d62-8e53-82e2b4b32b4a,name=Player843,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
	at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:65) ~[YggdrasilAuthenticationService.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) [YggdrasilMinecraftSessionService.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:59) [YggdrasilMinecraftSessionService$1.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:56) [YggdrasilMinecraftSessionService$1.class:?]
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:165) [YggdrasilMinecraftSessionService.class:?]
	at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3060) [Minecraft.class:?]
	at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [SkinManager$3.class:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_131]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
[16:33:52] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[16:33:52] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[16:33:58] [Server thread/INFO]: Player843 has just earned the achievement [Taking Inventory]
[16:33:58] [Client thread/INFO]: [CHAT] Player843 has just earned the achievement [Taking Inventory]
[16:34:24] [Server thread/ERROR]: "Silently" catching entity tracking error.
net.minecraft.util.ReportedException: Adding entity to track
	at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:251) [EntityTracker.class:?]
	at net.minecraftforge.fml.common.registry.EntityRegistry.tryTrackingEntity(EntityRegistry.java:360) [EntityRegistry.class:?]
	at net.minecraft.entity.EntityTracker.trackEntity(EntityTracker.java:80) [EntityTracker.class:?]
	at net.minecraft.world.ServerWorldEventHandler.onEntityAdded(ServerWorldEventHandler.java:39) [ServerWorldEventHandler.class:?]
	at net.minecraft.world.World.onEntityAdded(World.java:1239) [World.class:?]
	at net.minecraft.world.WorldServer.onEntityAdded(WorldServer.java:1178) [WorldServer.class:?]
	at net.minecraft.world.World.spawnEntityInWorld(World.java:1230) [World.class:?]
	at net.minecraft.world.WorldServer.spawnEntityInWorld(WorldServer.java:1124) [WorldServer.class:?]
	at com.herobone.heroutils.item.PlasmaCannon.onItemRightClick(PlasmaCannon.java:91) [PlasmaCannon.class:?]
	at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:180) [ItemStack.class:?]
	at net.minecraft.server.management.PlayerInteractionManager.processRightClick(PlayerInteractionManager.java:391) [PlayerInteractionManager.class:?]
	at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:740) [NetHandlerPlayServer.class:?]
	at net.minecraft.network.play.client.CPacketPlayerTryUseItem.processPacket(CPacketPlayerTryUseItem.java:43) [CPacketPlayerTryUseItem.class:?]
	at net.minecraft.network.play.client.CPacketPlayerTryUseItem.processPacket(CPacketPlayerTryUseItem.java:9) [CPacketPlayerTryUseItem.class:?]
	at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:21) [PacketThreadUtil$1.class:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_131]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
	at net.minecraft.util.Util.runTask(Util.java:28) [Util.class:?]
	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:743) [MinecraftServer.class:?]
	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:688) [MinecraftServer.class:?]
	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:156) [IntegratedServer.class:?]
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:537) [MinecraftServer.class:?]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Caused by: java.lang.IllegalArgumentException: Don't know how to add class com.herobone.heroutils.item.PlasmaProjectile$1!
	at net.minecraft.entity.EntityTrackerEntry.createSpawnPacket(EntityTrackerEntry.java:654) ~[EntityTrackerEntry.class:?]
	at net.minecraft.entity.EntityTrackerEntry.updatePlayerEntity(EntityTrackerEntry.java:390) ~[EntityTrackerEntry.class:?]
	at net.minecraft.entity.EntityTrackerEntry.updatePlayerEntities(EntityTrackerEntry.java:490) ~[EntityTrackerEntry.class:?]
	at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:225) ~[EntityTracker.class:?]
	... 22 more
[16:34:28] [Server thread/INFO]: Saving and pausing game...
[16:34:28] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[16:34:28] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[16:34:28] [Server thread/INFO]: Saving chunks for level 'New World'/The End

 

 

I know it's much code, but I hope u can help me!

 

Thanks Herobone

Edited by Herobone
Making it look better (c:

If my English is not perfect it is not my fault! It's the fault of my teacher, parents, friends and google translator!

Link to comment
Share on other sites

On 6/28/2017 at 7:41 AM, Herobone said:

Caused by: java.lang.IllegalArgumentException: Don't know how to add class com.herobone.heroutils.item.PlasmaProjectile$1! at net.minecraft.entity.EntityTrackerEntry.createSpawnPacket(EntityTrackerEntry.java:654) ~[EntityTrackerEntry.class:?]

Have you looked at what line 654 is trying to do (I haven't, so I can't tell you). If you can't see how you (or your data) got there from your code, then you should rerun in the debugger.

 

NB: The log also shows core mods. Forge sometimes doesn't play nice with other core mods. Can you first develop and debug your Forge mod apart from those core mods before trying to integrate with them? This would simplify many things (even if the error persists, the logs, warning messages etc will be more familiar to the regulars here).

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

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
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.

 Share



×
×
  • Create New...

Important Information

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