minecraft-expanded-datapack/data/undeadm-m2/functions/generate_villager.mcfunction

23 lines
433 B
Mcfunction
Raw Permalink Normal View History

# generatecustom name
function undeadm-m2:villager_data/names
# assign city
execute at @s run function undeadm-m2:villager_data/get_city
# generating favourite mineral
function random:rand10
scoreboard players operation @s Vfav_mineral = $value rnd_random
# 1 coal
# 2 diamond
# 3 iron
# 4 copper
# 5 gold
# 6 netherite
# 7 amethyst
# 8 emerald
# 9 quartz
# 10 ruby
scoreboard players reset $value rnd_random
tag @s add generated