perromercenary00 Posted March 5, 2023 Posted March 5, 2023 (edited) 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 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 March 7, 2023 by perromercenary00 solved Quote
Alpvax Posted March 7, 2023 Posted March 7, 2023 You need to set/force the pose to Pose.SWIMMING Quote
perromercenary00 Posted March 7, 2023 Author Posted March 7, 2023 On 3/7/2023 at 1:09 PM, Alpvax said: You need to set/force the pose to Pose.SWIMMING Expand 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 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 Quote
Alpvax Posted March 8, 2023 Posted March 8, 2023 When the player doesn't need to be crawling you need to set the forced pose back to null Quote
Recommended Posts
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.