Jump to content

Recommended Posts

Posted

I'm working on a spell-casting mob and was thinking I would be clever and just create a fake spell entity within the mob's render class, and render that as appropriate, since I don't actually want to spawn the spell into the world just yet.

 

Anyway, Minecraft doesn't seem to like that so much:

 

  Reveal hidden contents

 

 

Here is what I tried in the mob's render class:

 

  Reveal hidden contents

 

 

Here is the RenderEntityMagicSpell class - works fine for real spell entities rendering in the world:

 

  Reveal hidden contents

 

 

Clearly the problem is that Render#bindEntityTexture is not able to get the correct texture, but after going through the stack trace and trying to trace the method calls, I still cannot fathom why.

 

Does anyone have experience doing something like this?

Posted

Hi

 

I don't have experience doing this, but at the risk of stating the obvious I assume that in net.minecraft.client.renderer.entity.Render.bindTexture(Render.java:62), either renderManager or renderEngine is null?

 

        this.renderManager.renderEngine.bindTexture(p_110776_1_);

 

If you can figure out why that is, you'd be a lot closer..?

 

-TGG

 

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.