Jump to content

Recommended Posts

Posted (edited)

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:

  Reveal hidden contents

 

EntityRegister:

  Reveal hidden contents

 

ClientProxy:

  Reveal hidden contents

 

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

  Reveal hidden contents

 

The Projectile (item):

  Reveal hidden contents

 

 

The Projectile (entity):

  Reveal hidden contents

 

The Projectile-Render:

  Reveal hidden contents

 

 

The Error:

  Reveal hidden contents

 

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!

Posted
  On 6/28/2017 at 2:41 PM, 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:?]

Expand  

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.

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.