Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

Posted

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

  • Author
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 

 

 

 

 

 

 

 

 

 

 

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.