minecraft-expanded-datapack/data/undeadm-m2/functions/wandering_trader_data/names.mcfunction

17 lines
1.1 KiB
Mcfunction

# make name visible
data merge entity @s {CustomNameVisible:1}
# names :D
function undeadm-random:rand10
execute if score $value rnd_random matches 1 run data merge entity @s {CustomName:'{"text":"Maelys"}'}
execute if score $value rnd_random matches 2 run data merge entity @s {CustomName:'{"text":"Ariel"}'}
execute if score $value rnd_random matches 3 run data merge entity @s {CustomName:'{"text":"Veronica"}'}
execute if score $value rnd_random matches 4 run data merge entity @s {CustomName:'{"text":"Carl"}'}
execute if score $value rnd_random matches 5 run data merge entity @s {CustomName:'{"text":"Emp"}'}
execute if score $value rnd_random matches 6 run data merge entity @s {CustomName:'{"text":"Timoteus"}'}
execute if score $value rnd_random matches 7 run data merge entity @s {CustomName:'{"text":"Breeze"}'}
execute if score $value rnd_random matches 8 run data merge entity @s {CustomName:'{"text":"Kelsier"}'}
execute if score $value rnd_random matches 9 run data merge entity @s {CustomName:'{"text":"Eri"}'}
execute if score $value rnd_random matches 10 run data merge entity @s {CustomName:'{"text":"Alie"}'}
scoreboard players reset $value rnd_random