Jump to content

[1.10] Rendering something similar to leashes


TheTrollguy_

Recommended Posts

Hi, I was searching through Minecarft's files but I can't find how it renders the leash that connects the player and the leashed mob. I'm trying to make a chain that connects only to blocks just like the leash would to mobs and player. Where can I find the class and what would I need to do?

 

My idea now is to when I right click the block it should spawn an invisible entity inside the block and then the leash should connect to the player and then when I righr click to another block it again spawns the invisible entity and adds the leash to that block(as far as I know the principle is the same because lash knots are entities). This is just the base,I know there are multiple factors I'll have to consider when making those

 

Link to comment
Share on other sites

Hi, I was searching through Minecarft's files but I can't find how it renders the leash that connects the player and the leashed mob. I'm trying to make a chain that connects only to blocks just like the leash would to mobs and player. Where can I find the class and what would I need to do?

 

My idea now is to when I right click the block it should spawn an invisible entity inside the block and then the leash should connect to the player and then when I righr click to another block it again spawns the invisible entity and adds the leash to that block(as far as I know the principle is the same because lash knots are entities). This is just the base,I know there are multiple factors I'll have to consider when making those

 

Leashes are rendered by RenderLiving#renderLeash

  • Thanks 1
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.