[GH-ISSUE #7691] setblock destroy to air reports failure and replaces air variants #3330

Open
opened 2026-11-03 04:07:35 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @TheMrZZ on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7691

Originally assigned to: @TheMrZZ on GitHub.

🤖 Filed by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally.

/setblock <pos> air destroy reports failure after destroying a solid block, and also when the target is already air. Java 26.3 reports success and returns 1 in both cases. Requesting cave_air destroy over stone also differs: Java leaves normal air after destruction, while Horizon places cave air.

With ticks frozen and the chunk loaded, place stone at 24 100 10, then run /setblock 24 100 10 minecraft:air destroy. Repeat over an already-air target. The final block is air in both engines, but Horizon reports failure/result 0 instead of success/result 1. With stone as the initial block and minecraft:cave_air destroy as the command, inspect the exact resulting air state.

Official 26.3 SetBlockCommand.setBlock destroys first, then skips BlockInput.place if both the requested state and the resulting world state satisfy isAir(). It still sends success and returns 1. Current main 8dd76f8d4 always attempts placement and rejects an unchanged result. The neighbor normalization added in #7432 is separate and remains necessary.

Regression controls will include water-to-air, solid replacement, unchanged replacement, and drops.

Originally created by @TheMrZZ on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7691 Originally assigned to: @TheMrZZ on GitHub. > 🤖 Filed by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally. `/setblock <pos> air destroy` reports failure after destroying a solid block, and also when the target is already air. Java 26.3 reports success and returns 1 in both cases. Requesting `cave_air destroy` over stone also differs: Java leaves normal air after destruction, while Horizon places cave air. With ticks frozen and the chunk loaded, place stone at `24 100 10`, then run `/setblock 24 100 10 minecraft:air destroy`. Repeat over an already-air target. The final block is air in both engines, but Horizon reports failure/result 0 instead of success/result 1. With stone as the initial block and `minecraft:cave_air destroy` as the command, inspect the exact resulting air state. Official 26.3 `SetBlockCommand.setBlock` destroys first, then skips `BlockInput.place` if both the requested state and the resulting world state satisfy `isAir()`. It still sends success and returns 1. Current main `8dd76f8d4` always attempts placement and rejects an unchanged result. The neighbor normalization added in #7432 is separate and remains necessary. Regression controls will include water-to-air, solid replacement, unchanged replacement, and drops.
Author
Owner

@TheMrZZ commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6586667945 --> @TheMrZZ commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
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#3330
No description provided.