[GH-ISSUE #1520] [commands] /ride rejects non-player riders and cannot dismount mob passengers #480

Closed
opened 2026-11-02 15:39:23 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1520

🤖 Filed by an AI assistant (Codex).

Tested 9dd9a836991e263b51d0cec0f690d40a0b09eecc; affects server-thread and old singleplayer, explicitly selected from equivalent disposable worlds.

/summon cow .5 100 3.5 {NoAI:1b,Tags:["vehicle"]}
/summon pig .5 100 5.5 {NoAI:1b,Tags:["rider"]}
/ride @e[tag=rider,limit=1] mount @e[tag=vehicle,limit=1]

Expected: the pig starts riding the cow and follows its position. Native Minecraft 26.3 does this.

Actual: “Pig couldn't start riding Cow”; the pig stays on the floor when the cow moves. The dismount form also fails for a real mob passenger created with Passengers NBT: “Pig is not riding any vehicle”, even while it moves along with the cow.

Fresh live and normal-restart pairs reproduce the dismount failure (cargo-tree-data-{a,b}); the minimal separate-mob mount pair is in b. Native cargo-native-npc-mount-a executes the same separate-mob mount, then moves the cow and successfully dismounts the pig. Native tree-data controls also detach an NBT-created passenger.

Driver: tools/singleplayer_entity_tree_audit.py --case mount --case tree-live.

Hypothesis: cmd_ride handles rider state only for Target::Player, ignoring actual mob mount relationships.

Acceptance: /ride mounts and dismounts eligible non-player riders and updates their real relationship/position in server-thread, including passengers restored from saves.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1520 > 🤖 Filed by an AI assistant (Codex). Tested `9dd9a836991e263b51d0cec0f690d40a0b09eecc`; affects **server-thread and old singleplayer**, explicitly selected from equivalent disposable worlds. ```mcfunction /summon cow .5 100 3.5 {NoAI:1b,Tags:["vehicle"]} /summon pig .5 100 5.5 {NoAI:1b,Tags:["rider"]} /ride @e[tag=rider,limit=1] mount @e[tag=vehicle,limit=1] ``` Expected: the pig starts riding the cow and follows its position. Native Minecraft 26.3 does this. Actual: “Pig couldn't start riding Cow”; the pig stays on the floor when the cow moves. The dismount form also fails for a real mob passenger created with `Passengers` NBT: “Pig is not riding any vehicle”, even while it moves along with the cow. Fresh live and normal-restart pairs reproduce the dismount failure (`cargo-tree-data-{a,b}`); the minimal separate-mob mount pair is in b. Native `cargo-native-npc-mount-a` executes the same separate-mob mount, then moves the cow and successfully dismounts the pig. Native tree-data controls also detach an NBT-created passenger. Driver: `tools/singleplayer_entity_tree_audit.py --case mount --case tree-live`. Hypothesis: `cmd_ride` handles rider state only for `Target::Player`, ignoring actual mob mount relationships. Acceptance: `/ride` mounts and dismounts eligible non-player riders and updates their real relationship/position in server-thread, including passengers restored from saves.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#480
No description provided.