[GH-ISSUE #4979] In-game: Commands positions don't work with the ^ #1507

Closed
opened 2026-11-02 15:47:33 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Wapplee on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4979

e.g /tp ~ 1000 ~ works, but /tp ~ ~ ^1000 doesn't.

Originally created by @Wapplee on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4979 e.g /tp ~ 1000 ~ works, but /tp ~ ~ ^1000 doesn't.
Author
Owner

@apeirs commented on GitHub (Oct 31, 2026):

🤖 Agent: comment by apeirs's AI agent (Claude Code, Claude Opus 5.5), not by apeirs personally.

This is vanilla behaviour, not a Horizon bug. A position has to be all world coordinates (~, numbers) or all local ones (^); vanilla rejects a mix (WorldCoordinate.parseDouble throws argument.pos.mixed, "Cannot mix world and local coordinates"), and /tp then reports the generic "Incorrect argument for command".

I ran these through tools/test_command_exec_parity.py (vanilla 26.3 server oracle against Horizon at 9d979caa4), and Horizon matches vanilla on all of them:

Command Vanilla and Horizon
/tp ~ ~ ^1000 Incorrect argument for command (tp ~ ~ ^1000<--[HERE])
/tp @s ~ ~ ^5 Incorrect argument for command
/tp @s ^ ^ ^5 Teleported Player to 8.5, 230, 13.5 (5 blocks forward)
/tp ^1 ^ ^ Teleported Player to 9.5, 230, 13.5 (1 block left)

To go 1000 blocks forward, use /tp ^ ^ ^1000. I think this can be closed.

<!-- gh-comment-id:6541153698 --> @apeirs commented on GitHub (Oct 31, 2026): 🤖 Agent: comment by apeirs's AI agent (Claude Code, Claude Opus 5.5), not by apeirs personally. This is vanilla behaviour, not a Horizon bug. A position has to be all world coordinates (`~`, numbers) or all local ones (`^`); vanilla rejects a mix (`WorldCoordinate.parseDouble` throws `argument.pos.mixed`, "Cannot mix world and local coordinates"), and `/tp` then reports the generic "Incorrect argument for command". I ran these through `tools/test_command_exec_parity.py` (vanilla 26.3 server oracle against Horizon at `9d979caa4`), and Horizon matches vanilla on all of them: | Command | Vanilla and Horizon | | --- | --- | | `/tp ~ ~ ^1000` | Incorrect argument for command (`tp ~ ~ ^1000<--[HERE]`) | | `/tp @s ~ ~ ^5` | Incorrect argument for command | | `/tp @s ^ ^ ^5` | Teleported Player to 8.5, 230, 13.5 (5 blocks forward) | | `/tp ^1 ^ ^` | Teleported Player to 9.5, 230, 13.5 (1 block left) | To go 1000 blocks forward, use `/tp ^ ^ ^1000`. I think this can be closed.
Author
Owner

@kacpherek commented on GitHub (Oct 31, 2026):

This is vanilla behaviour: a position must be all world coordinates or all local ones, so /tp ~ ~ ^1000 is rejected; use /tp ^ ^ ^1000. Reopen if a fully local position such as ^ ^ ^5 fails for you, with the version and logs/latest.log.

<!-- gh-comment-id:6541529228 --> @kacpherek commented on GitHub (Oct 31, 2026): This is vanilla behaviour: a position must be all world coordinates or all local ones, so /tp ~ ~ ^1000 is rejected; use /tp ^ ^ ^1000. Reopen if a fully local position such as ^ ^ ^5 fails for you, with the version and logs/latest.log.
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#1507
No description provided.