PaperMC / PaperMC/Paper

Some Structuren BoundingBoxes have a weird offset

Open
#10,975 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: low status: input wanted type: bug upstream: vanilla version: 1.21
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

Some structures return an incorrect position of the bounding box.
The following structures usually return the bounding box too high:
Cold Ocean Ruins, WarmOcean Ruins, Beached Shipwreck, Shipwreck, Buried Treasure
The following structures usually return bounding boxes that are too low:
Jungle Pyramid, Igloo
All other structures seem to be correct.

The problem only seems to occur in newly created chunks. After a server restart, the bounding box is displayed correctly.

Observed/Actual behavior

Newly loaded chunk:
Alt text

After a server restart:
Alt text

Steps/models to reproduce
  • Install the StructureBoundingBoxTestPlugin.
  • Go to the structure described in the problem above. And see at which position the bounding box with diamond blocks is displayed.
  • Restart the server and go to the same structure and the bounding box seems to be in the right place.
Plugin and Datapack List

[12:07:15 INFO]: Server Plugins (1):
[12:07:15 INFO]: Bukkit Plugins:
[12:07:15 INFO]: - StructureBoundingBoxTestPlugin

[12:07:54 INFO]: There are 3 data pack(s) enabled: [vanilla (built-in)], [file/bukkit (world)], [paper (built-in)]
[12:07:54 INFO]: There are no more data packs available

Paper version

[12:08:25 INFO]: Checking version, please wait...
[12:08:25 INFO]: This server is running Paper version 1.21-37-master@dd49fba (2024-06-24T02:08:49Z) (Implementing API version 1.21-R0.1-SNAPSHOT)
You are running the latest version

Other

No response

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

Use the StructureBoundingBoxTestPlugin reproduction to compare bounding boxes for the listed structures in newly created or loaded chunks and after a server restart. Verify the offset directions and determine whether all affected structures become correct after restart. Done means the bounding boxes appear at the correct positions without requiring a restart.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.