mojira.dev
MC-234154

Boat able to phase through blocks

By placing a boat 5 blocks away from a single water source (in water at level=4), the boat (and thus the player in the boat) can phase through solid blocks below. See the video for where exactly you have to place the boat (with water flowing in the positive x direction, this works by flying at x=.8 of the block and directly looking down for example).

As shown in the second half of the video, this means I can go into an area below the block without destroying it, including bedrock, with only taking half a heart of damage in survival mode.

 

Sidenote: An easier to way to clip boats into blocks, which only seems to work without passengers, is to just have a boat fall onto flowing water of any level.

 

Code Analysis:

The code-point where the actual phasing happens is in the Boat class in method floatBoat, where in the first if clause this.setPos is called with a y value inside of the block below.

this.setPos(this.getX(), (double) (this.getWaterLevelAbove() - this.getBbHeight()) + 0.101D, this.getZ());

 

Standing at y=64 in the flowing water, the following values were put out:

getWaterLevelAbove() = 64.44444
getBbHeight() = 0.5625
(double) (this.getWaterLevelAbove() - this.getBbHeight()) + 0.101D = 63.98294274902344

Linked issues

Attachments

Comments

Avoma

Duplicate of MC-96198. Feel free to add your code analysis to the parent ticket by leaving a comment. 😃

Arisa Bot

Thank you for your report!
We're tracking this issue in MC-96198, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

Nassim Jahnke

(Unassigned)

Unconfirmed

(Unassigned)

1.17.1

Retrieved