Jump to content

[1.12] Static and Dynamic Blockmodel?


EvilTwin

Recommended Posts

So the Beacon in Minecraft has a Static Blockmodel (the Beacon) and a dynamic model (the beam), the beam only activates when isComplete equals true, but how does it do this, I've been trying to reproduce this for a while now, and I don't see how I should be able to render the beam, after I rendered the "beacon" itself, I have tried to reproduce  everything in the Block, the TileEntity and the TileEntityRenderer classes, to an extent that it should work. But I can't seem to find the actual event that calls for the rendering of the beam, looking in the ContainerBeacon and GuiBeacon classes didn't help either. 

My problem that I have is that I can't find the line that tells the TileEntityRenderer to actually render the beam. I have two instances in which I can have my own TileEntity update it's model/render the beam, but I don't know how to implement it I mean I can't just add in 

render(TileEntityModEntity te, double x, double y, double z, float partialTicks, int destroyStage, float alpha)

and thats it I have to update the TileEntity somehow right?

When is this render called by the Beacon, when it should render the Beam?

Edited by EvilTwin
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
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.