[PR #2944] [MERGED] Armor stands press pressure plates; match vanilla's op warning in item tooltips #4699

Closed
opened 2026-11-03 05:07:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2944
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/armor-stand-plates-op-warning


📝 Commits (2)

  • d485c68 Let armor stands press pressure plates and tripwires
  • 7acfc65 Match vanilla's op warning on item tooltips

📊 Changes

3 files changed (+47 additions, -11 deletions)

View changed files

📝 crates/horizon-client/src/block_entity_item.rs (+19 -0)
📝 crates/horizon-client/src/game.rs (+10 -3)
📝 crates/horizon-client/src/game/stations.rs (+18 -8)

📄 Description

What and why

  • A normal armor stand now presses stone and wooden pressure plates, weighted plates and tripwires, like any other living entity. Before, plates ignored stands, so a stand on a plate did nothing. Marker armor stands still do nothing, as in vanilla. Small stands use their real, smaller box.
  • The red "Warning: Use of this item might lead to command execution..." tooltip now matches vanilla more closely: the first line is bold, and spawn eggs that carry data for an op-only entity (falling block, command block minecart, spawner minecart) show it too. Items that are not block items never show it for block entity data, as in vanilla. It still needs game master permission and sits below the advanced tooltip lines.

Vanilla reference

  • ArmorStand.java:478 isIgnoringBlockTriggers returns isMarker().
  • BasePressurePlateBlock.java:141 getEntityCount (everything that is not spectator and does not ignore block triggers); PressurePlateBlock.java:34 (MOBS counts LivingEntity, EVERYTHING counts Entity); WeightedPressurePlateBlock.java:26; TripWireBlock.java:165.
  • ItemStack.java:107 OP_NBT_WARNING (line 1 red and bold, lines 2 and 3 red), :937 and :1031.
  • BlockItem.java:188 and SpawnEggItem.java:180 shouldPrintOpWarning; BlockEntityTypes.java:218 and EntityTypes.java:1222 OP_ONLY_CUSTOM_DATA.

Self-check

clippy and fmt pass for horizon-client. Not run in game.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2944 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/armor-stand-plates-op-warning` --- ### 📝 Commits (2) - [`d485c68`](https://github.com/horizon-rust/horizon/commit/d485c688d6a1087227141868ef4493a2cd81db34) Let armor stands press pressure plates and tripwires - [`7acfc65`](https://github.com/horizon-rust/horizon/commit/7acfc655e80325a71cbf2afcdf8a58f171f15b9a) Match vanilla's op warning on item tooltips ### 📊 Changes **3 files changed** (+47 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/block_entity_item.rs` (+19 -0) 📝 `crates/horizon-client/src/game.rs` (+10 -3) 📝 `crates/horizon-client/src/game/stations.rs` (+18 -8) </details> ### 📄 Description ## What and why - A normal armor stand now presses stone and wooden pressure plates, weighted plates and tripwires, like any other living entity. Before, plates ignored stands, so a stand on a plate did nothing. Marker armor stands still do nothing, as in vanilla. Small stands use their real, smaller box. - The red "Warning: Use of this item might lead to command execution..." tooltip now matches vanilla more closely: the first line is bold, and spawn eggs that carry data for an op-only entity (falling block, command block minecart, spawner minecart) show it too. Items that are not block items never show it for block entity data, as in vanilla. It still needs game master permission and sits below the advanced tooltip lines. ## Vanilla reference - ArmorStand.java:478 `isIgnoringBlockTriggers` returns `isMarker()`. - BasePressurePlateBlock.java:141 `getEntityCount` (everything that is not spectator and does not ignore block triggers); PressurePlateBlock.java:34 (MOBS counts `LivingEntity`, EVERYTHING counts `Entity`); WeightedPressurePlateBlock.java:26; TripWireBlock.java:165. - ItemStack.java:107 `OP_NBT_WARNING` (line 1 red and bold, lines 2 and 3 red), :937 and :1031. - BlockItem.java:188 and SpawnEggItem.java:180 `shouldPrintOpWarning`; BlockEntityTypes.java:218 and EntityTypes.java:1222 `OP_ONLY_CUSTOM_DATA`. ## Self-check clippy and fmt pass for horizon-client. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:16 +07:00
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#4699
No description provided.