Biome changing wands
Hi all trying to make a data pack to kinda replicate a 1.12 mod from back in the day called biome wands.
tbh struggling a bit.
I have started to put together a data pack with the following functions.
when player right clicks with stick: pick random biome: change a 10x10x10 area centered on player to chosen biome: then play sound: message player "biome has been changed"
Whole thing I have done is probably ass but I'm mostly unsure of this code not sure if any would work (will add all biomes to list just want to make sure it works also was playing around to see if any of these variations work):
# Replace the 10x10x10 area with the selected biome
execute if score @s biome matches 0 run fill ~-5 ~-5 ~-5 ~5 ~5 ~5 minecraft:Desert replace
execute if score @s biome matches 1 run fillbiome ~-5 ~-5 ~-5 ~5 ~5 ~5 minecraft:Forest replace
execute if score @s biome matches 2 run fillbiome ~-5 ~-5 ~-5 ~5 ~5 ~5 Plains replace
# Add additional mappings for other biomes
# Notify player and play horn sound
execute as @a run function randombiomechanger:notify_and_play_sound
Continue to help post