23 lines
433 B
Mcfunction
23 lines
433 B
Mcfunction
# 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
|