Jump to content

Recommended Posts

Posted

For some reason my entity doesnt want to spawn (doesnt spawn in world or using its own mob egg). ive looked through the code but cant seem to find whats wrong. Im guessing its something to do with the actual entity cause when i use the mob egg, the hitbox on the ground doesnt go away so its not a texture issue. Any help is appreciated! :)

 

Entity class

 

  Reveal hidden contents

 

 

Model Class

 

  Reveal hidden contents

 

 

RenderEntity class

 

  Reveal hidden contents

 

 

ClientProxy

 

  Reveal hidden contents

 

 

 

entity handler

 

  Reveal hidden contents

 

 

Phew, and finnaly in my main class there is: (postInit)

 

  Reveal hidden contents

 

 

I also get an error when using the mob egg:

 

 

  Reveal hidden contents
Posted

Crap! i forgot to post it! , i do have an error:

 

java.lang.reflect.InvocationTargetException

at sun.reflect.GeneratedConstructorAccessor29.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at net.minecraft.world.SpawnerAnimals.findChunksForSpawning(SpawnerAnimals.java:164)

at net.minecraft.world.WorldServer.tick(WorldServer.java:169)

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

Caused by: java.lang.IllegalArgumentException: Attribute is already registered!

at net.minecraft.entity.ai.attributes.ServersideAttributeMap.registerAttribute(ServersideAttributeMap.java:41)

at com.manslaughter777.crystaldimension.entity.EntityCrystopian.applyEntityAttributes(EntityCrystopian.java:100)

at net.minecraft.entity.EntityLivingBase.<init>(EntityLivingBase.java:156)

at net.minecraft.entity.EntityLiving.<init>(EntityLiving.java:78)

at net.minecraft.entity.EntityCreature.<init>(EntityCreature.java:36)

at net.minecraft.entity.monster.EntityMob.<init>(EntityMob.java:21)

at com.manslaughter777.crystaldimension.entity.EntityCrystopian.<init>(EntityCrystopian.java:24)

... 10 more

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.