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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user