Jump to content

A player riding a player covers the field of view


Recommended Posts

Hi everyone! I've recently started learning to program in java and have been trying a few various things with Minecraft modding.  The practice I'm currently working on is a mod to interrupt a player's death and disable them until another player comes to rescue them and carry them back to their bed.  Everything so far works perfectly, but an annoyance I'm grappling with is that the victim's legs cover the entire field of view of the rescuer (the victim 'rides' the rescuer).  Is there any way I can go about altering where the victim sits (putting them more on the back of the rescuer rather than the face), or make them partially transparent?  The only solution I was able to find so far was to make the victim invisible (setInvisible(true)) but that's less than desirable.  From what I understand by reading around, something such as modifying EntityPlayer's isInvisibleToPlayer() method to return true when being carried isn't possible since you can't modify the base methods.  Additionally, I tried modifying the field "renderOffsetY" and its pals to no avail.


If you need anything further, let me know and I'll include it.  Thanks for your time!

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

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.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.