[PR #2251] [MERGED] Fire the brewed_potion advancement trigger on taking a potion #4144

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

📋 Pull Request Information

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

Base: main ← Head: fix/brewed-potion-trigger


📝 Commits (4)

  • ef711f8 Fire the brewed_potion trigger when a potion is taken from a brewing stand
  • 3842d85 Match the brewed_potion trigger's potion condition as a PotionsPredicate
  • d558a4a Merge origin/main into fix/brewed-potion-trigger
  • 9f04b02 Merge origin/main into fix/brewed-potion-trigger

📊 Changes

5 files changed (+97 additions, -9 deletions)

View changed files

📝 crates/horizon-client/src/advancements.rs (+45 -0)
📝 crates/horizon-client/src/game.rs (+4 -0)
📝 crates/horizon-client/src/game/advancements.rs (+16 -0)
📝 crates/horizon-client/src/game/lan_crafting.rs (+9 -0)
📝 crates/horizon-client/src/menu.rs (+23 -9)

📄 Description

What and why

Taking a potion out of a brewing stand never fired the minecraft:brewed_potion trigger, so "Local Brewery" (nether/brew_potion) could not be earned.

The brewing stand menu now reports each potion taken from a bottle slot, and the trigger fires for it. This covers clicking, shift-clicking and swapping. On a server the guest's brewing stand window runs it as the guest, so it goes to the guest's advancements.

As in vanilla, any potion taken counts, not only one that was just brewed. A glass bottle has no potion contents and does not count.

Vanilla reference

  • BrewingStandMenu.PotionSlot.onTake: CriteriaTriggers.BREWED_POTION.trigger(serverPlayer, potionContents) when the taken stack has potion contents.
  • BrewedPotionTrigger.TriggerInstance.matches: the optional potion condition.

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/2251 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/brewed-potion-trigger` --- ### 📝 Commits (4) - [`ef711f8`](https://github.com/horizon-rust/horizon/commit/ef711f8b1f356c1f1b6745b366a00c38f19076b4) Fire the brewed_potion trigger when a potion is taken from a brewing stand - [`3842d85`](https://github.com/horizon-rust/horizon/commit/3842d851d8f088a138e5a09bd42cb054ac88ffa9) Match the brewed_potion trigger's potion condition as a PotionsPredicate - [`d558a4a`](https://github.com/horizon-rust/horizon/commit/d558a4abf3842ef8e3c92e9e8207c46e5c1b857d) Merge origin/main into fix/brewed-potion-trigger - [`9f04b02`](https://github.com/horizon-rust/horizon/commit/9f04b02e12d7fcfaf57e57fbd9ce6961f91459fd) Merge origin/main into fix/brewed-potion-trigger ### 📊 Changes **5 files changed** (+97 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/advancements.rs` (+45 -0) 📝 `crates/horizon-client/src/game.rs` (+4 -0) 📝 `crates/horizon-client/src/game/advancements.rs` (+16 -0) 📝 `crates/horizon-client/src/game/lan_crafting.rs` (+9 -0) 📝 `crates/horizon-client/src/menu.rs` (+23 -9) </details> ### 📄 Description ## What and why Taking a potion out of a brewing stand never fired the `minecraft:brewed_potion` trigger, so "Local Brewery" (`nether/brew_potion`) could not be earned. The brewing stand menu now reports each potion taken from a bottle slot, and the trigger fires for it. This covers clicking, shift-clicking and swapping. On a server the guest's brewing stand window runs it as the guest, so it goes to the guest's advancements. As in vanilla, any potion taken counts, not only one that was just brewed. A glass bottle has no potion contents and does not count. ## Vanilla reference - `BrewingStandMenu.PotionSlot.onTake`: `CriteriaTriggers.BREWED_POTION.trigger(serverPlayer, potionContents)` when the taken stack has potion contents. - `BrewedPotionTrigger.TriggerInstance.matches`: the optional `potion` condition. ## 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:59 +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#4144
No description provided.