Jump to content

[solved][1.19.2] force crawl position on player entity and how to prevent getting suffocation damage


perromercenary00

Recommended Posts

im retaking the work on the toilet block 

 

 

this toilet actually works but there's two issues that bother me the first one is visual coze the toilet takes the player entity and carry it trough the tunnel in standing position,  the tunnel is just one block high and player eye position is at 1.8 soo it clips inside the block above and you cannot see where the water is taking you also that's kill the player by suffocation damage in long runs

toilet01-edit.gif


 

that is 
 i need a coded way to force the player to crawl position and also a way to avoid getting suffocation damage

thanks for your ideas .


 

Edited by perromercenary00
solved
Link to comment
Share on other sites

5 hours ago, Alpvax said:

You need to set/force the pose to Pose.SWIMMING

hthanks its works buts also  brings  a new issue 

player.setForcedPose(Pose.SWIMMING);

causes the player to crawl but gets stuck crawling and the only way is close reopen the map 

 

crawling-edit2.gif

 

i would perfect to has some kind of 

int time = 20;

player.setForcedPose(Pose.SWIMMING, time);

and before time expires check the conditions to crawl another 20 ticks 

still usable know i have to find a way to store a list of entities inside the toilet entity and a way to pass that list from server side to client side 

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

  • perromercenary00 changed the title to [solved][1.19.2] force crawl position on player entity and how to prevent getting suffocation damage

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.



×
×
  • Create New...

Important Information

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