PaperMC / PaperMC/Paper

FallingBlock clips into block underneath below Y0

Open
#9,123 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: accepted type: bug version: 1.19
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Is your feature request related to a problem?

There is an issue since 1.18 where entities such as tnt and fallingBlock will clip into the block below after they've been shot down. For example sand getting shot down will end up at y-7.00000000001 instead of y-7, causing it to not turn solid but to just break. I have a video demonstrating this.
/summon minecraft:falling_block -9 1.2074466562545139 9 {Motion:[0d,-10d,0d]} this is the command used to replicate the issue easily in vanilla.

Describe the solution you'd like.

It would be nice if there was an option to fix this, in case Mojang/Microsoft doesn't. A fix could be checking if a rounding error happened, and then changing the entity position to properly stack if necessary.

Describe alternatives you've considered.

https://bugs.mojang.com/browse/MC-261789 I made this bug report, but was told it might be a good idea to write a feature suggestion for Paper as well.
There are also a few ways to work around the issues by using different cannoning techniques but they all have big downsides.

Other

https://youtu.be/3qaBCarFNPM this video I mentioned in the first part; shows the bug

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file or test is named. Start by reproducing the issue with the provided /summon minecraft:falling_block command and trace the falling-block collision or position handling; done means the entity no longer clips below Y0 and the sand becomes solid at the expected block position.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, game-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.