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 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-12 16:43:32 +02:00
parent 81783a5125
commit cb0244ce4a
+7
View File
@@ -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");