[PR #2183] [MERGED] Shovels put out lit campfires #4081

Closed
opened 2026-11-03 04:14:33 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2183
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: fix/campfire-shovel-douse


📝 Commits (2)

  • 1991789 Shovels put out a lit campfire
  • 0c8e803 Merge main into fix/campfire-shovel-douse

📊 Changes

3 files changed (+78 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/animate_tick.rs (+20 -3)
📝 crates/horizon-client/src/game.rs (+5 -0)
➕ crates/horizon-client/src/game/campfire_douse.rs (+53 -0)

📄 Description

What and why

Right-clicking a lit campfire with a shovel did nothing. In vanilla it puts the fire out: you hear the extinguish sound, a cloud of smoke rises, the campfire becomes unlit and the shovel loses 1 durability.

This adds that use for any item in #minecraft:douses_campfires (the shovels), on both campfires and soul campfires. It sits with the other block-first uses in use_hand, so it follows the same rules as them: it is skipped while sneaking with something in a hand, works from either hand, and the swing and advancement trigger happen as for other block uses. LAN guests use the same path, so they can douse too; the smoke is drawn only on the machine of the player who used the shovel.

make_campfire_smoke gets the smoking flag that vanilla's makeParticles has, for the extra plain smoke puff.

Vanilla reference

  • CampfireBlock.useItemOn: item in douses_campfires and LIT is true, then level.levelEvent(null, 1009, pos, 0) (server), douse(...), setBlockAndUpdate(pos, state.setValue(LIT, false)), hurtAndBreak(1), SUCCESS
  • CampfireBlock.douse: on the client 20 calls of makeParticles(level, pos, signalFire, true), then the BLOCK_CHANGE game event from the player
  • CampfireBlock.makeParticles: the campfire smoke, plus a SMOKE particle at the logs when smoking
  • ServerPlayerGameMode.useItemOn: ITEM_USED_ON_BLOCK is triggered when the block use succeeds
  • VanillaItemTagsProvider: DOUSES_CAMPFIRES holds the shovels

Self-check

cargo check -p horizon-client passes.


🔄 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/2183 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/campfire-shovel-douse` --- ### 📝 Commits (2) - [`1991789`](https://github.com/horizon-rust/horizon/commit/199178907cf702a2949fb9494c40cf1e3c16c3f6) Shovels put out a lit campfire - [`0c8e803`](https://github.com/horizon-rust/horizon/commit/0c8e8037dfde4312dd101c067987803dd0b947c4) Merge main into fix/campfire-shovel-douse ### 📊 Changes **3 files changed** (+78 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/animate_tick.rs` (+20 -3) 📝 `crates/horizon-client/src/game.rs` (+5 -0) ➕ `crates/horizon-client/src/game/campfire_douse.rs` (+53 -0) </details> ### 📄 Description ## What and why Right-clicking a lit campfire with a shovel did nothing. In vanilla it puts the fire out: you hear the extinguish sound, a cloud of smoke rises, the campfire becomes unlit and the shovel loses 1 durability. This adds that use for any item in `#minecraft:douses_campfires` (the shovels), on both campfires and soul campfires. It sits with the other block-first uses in `use_hand`, so it follows the same rules as them: it is skipped while sneaking with something in a hand, works from either hand, and the swing and advancement trigger happen as for other block uses. LAN guests use the same path, so they can douse too; the smoke is drawn only on the machine of the player who used the shovel. `make_campfire_smoke` gets the `smoking` flag that vanilla's `makeParticles` has, for the extra plain smoke puff. ## Vanilla reference - `CampfireBlock.useItemOn`: item in `douses_campfires` and `LIT` is true, then `level.levelEvent(null, 1009, pos, 0)` (server), `douse(...)`, `setBlockAndUpdate(pos, state.setValue(LIT, false))`, `hurtAndBreak(1)`, SUCCESS - `CampfireBlock.douse`: on the client 20 calls of `makeParticles(level, pos, signalFire, true)`, then the `BLOCK_CHANGE` game event from the player - `CampfireBlock.makeParticles`: the campfire smoke, plus a `SMOKE` particle at the logs when `smoking` - `ServerPlayerGameMode.useItemOn`: `ITEM_USED_ON_BLOCK` is triggered when the block use succeeds - `VanillaItemTagsProvider`: `DOUSES_CAMPFIRES` holds the shovels ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:14:33 +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#4081
No description provided.