From c3e19973cf424ab77b8259f25fd32af6d0b992a4 Mon Sep 17 00:00:00 2001 From: Kacpherek Date: Tue, 27 Oct 2026 22:08:13 +0100 Subject: [PATCH] Fire item_used_on_block for a compass used on a lodestone Vanilla fires ITEM_USED_ON_BLOCK when a compass locks onto a lodestone (ServerPlayerGameMode via useOn). --- crates/horizon-client/src/game/maps.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/horizon-client/src/game/maps.rs b/crates/horizon-client/src/game/maps.rs index e2680ec84..0a76183bb 100644 --- a/crates/horizon-client/src/game/maps.rs +++ b/crates/horizon-client/src/game/maps.rs @@ -739,6 +739,7 @@ impl Game<'_> { return false; } let at = [x, y, z].map(|v| f64::from(v) + 0.5); + self.trigger_block("minecraft:item_used_on_block", hit.pos, stack); self.audio .play("minecraft:item.lodestone_compass.lock", Some(at), 1.0, 1.0); let target = Tag::compound([(