diff --git a/crates/horizon-client/src/game.rs b/crates/horizon-client/src/game.rs index c97af3a47..bac5e184c 100644 --- a/crates/horizon-client/src/game.rs +++ b/crates/horizon-client/src/game.rs @@ -4233,6 +4233,10 @@ impl Game<'_> { self.swing_arm(); return Ok(true); } + if self.use_redstone_ore(hit.pos, held.as_ref())? { + self.swing_arm(); + return Ok(true); + } match self.use_respawn_anchor(hit.pos, held.as_ref())? { respawn_anchor::AnchorUse::Charged => { self.swing_arm(); diff --git a/crates/horizon-client/src/game/sculk.rs b/crates/horizon-client/src/game/sculk.rs index abcecf841..bd0e79f54 100644 --- a/crates/horizon-client/src/game/sculk.rs +++ b/crates/horizon-client/src/game/sculk.rs @@ -1577,6 +1577,30 @@ impl Game<'_> { } } + /// `RedStoneOreBlock.useItemOn`: a right-click lights the ore whatever the + /// hand holds. False (PASS) when the hand holds a block item, which goes on + /// to be placed; true (SUCCESS) otherwise. + pub(super) fn use_redstone_ore( + &mut self, + pos: [i32; 3], + held: Option<&horizon_client::items::ItemStack>, + ) -> Result { + if !matches!( + &*self.block_name(pos), + "minecraft:redstone_ore" | "minecraft:deepslate_redstone_ore" + ) { + return Ok(false); + } + self.attack_block(pos)?; + let block_item = held.is_some_and(|s| { + self.res + .items() + .get(&s.item) + .is_some_and(|i| i.block.is_some()) + }); + Ok(!block_item) + } + fn tick_mob_sculk_events(&mut self) { let snapshot: Vec<(u32, [f64; 3], bool, bool, Species, Option)> = self .mobs