PaperMC / PaperMC/Paper

Y-coordinate problem with mannequins, gravity, and scale

Open
#13,663 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: needs triage
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

Hello, I'm having trouble disabling gravity on mannequins and scaling them.

If I set a mannequin to scale 1 (default) with Y coordinates of 81, everything works perfectly (the mannequin on the left in the photo).

However, if I change the scale to 1.5, with the same parameters and Y coordinates of 81, the mannequin doesn't maintain the set Y coordinate (it drops by -0.5) (the mannequin on the right).

Image

(photo to illustrate the difference):
Image

version paper:
Image

my setup for the mannequins:
'test1':
location:
world: world
x: -32.5
y: 81.0
z: -33.5
yaw: 0.0
pitch: 0.0
profile:
texture: "player:Shiino__"
model: WIDE
pose: STANDING
main_hand: RIGHT
immovable: true
invulnerable: true
gravity: false
glowing: true
glow_color: WHITE
hidden_layers: []
scale: 1
'test2':
location:
world: world
x: -28.5
y: 81.0
z: -33.5
yaw: 0.0
pitch: 0.0
profile:
texture: "player:Shiino__"
model: WIDE
pose: STANDING
main_hand: RIGHT
immovable: true
invulnerable: true
gravity: false
glowing: true
glow_color: WHITE
hidden_layers: []
scale: 1.5

Observed/Actual behavior

The Y coordinates are not respected when the scale is changed.

Steps/models to reproduce

Spawn two mannequins with gravity disabled, leave one with a scale of 1 (to check), and another with a scale of 1.5.

Plugin and Datapack List

private plugins

Paper version

1.21.11-117

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

Start by reproducing the two mannequin configurations from the issue on Paper 1.21.11-117, comparing scale 1 and 1.5 with gravity disabled at Y=81. Trace the mannequin spawning and scaling entry points, then verify that a scaled mannequin remains at the configured Y coordinate.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.