From cb0244ce4ad5c4154915d6c5a0ee906a73a6ff7b Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Mon, 12 Oct 2026 16:43:32 +0200 Subject: [PATCH] Fill the mob effect registry so /effect finds its effects The command registries never received the effect ids, so every /effect and mob_effect argument failed to resolve. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/game/chat.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/horizon-client/src/game/chat.rs b/crates/horizon-client/src/game/chat.rs index 812ac6118..12045d391 100644 --- a/crates/horizon-client/src/game/chat.rs +++ b/crates/horizon-client/src/game/chat.rs @@ -282,6 +282,13 @@ impl Game<'_> { out.sort(); out }; + // The mob effect registry: every effect `/effect` and the + // `mob_effect` resource arguments accept. + reg.effects = horizon_client::brewing::EFFECTS + .iter() + .map(|e| format!("minecraft:{}", e.id)) + .collect(); + reg.effects.sort(); reg.enchantments = list("data/minecraft/enchantment"); reg.structures = list("data/minecraft/worldgen/structure"); reg.biomes = list("data/minecraft/worldgen/biome");