Files
unstable_army
Code
13 44
unstable_army/data/unstable_army/function/setup.mcfunction
tag @s remove ua_new
execute store result score @s ua_name run random value 1..8
execute if score @s ua_name matches 1 run data merge entity @s {CustomName:'{"text":"Null","color":"dark_gray"}'}
execute if score @s ua_name matches 2 run data merge entity @s {CustomName:'{"text":"Vex","color":"dark_gray"}'}
execute if score @s ua_name matches 3 run data merge entity @s {CustomName:'{"text":"Shade","color":"dark_gray"}'}
execute if score @s ua_name matches 4 run data merge entity @s {CustomName:'{"text":"Echo","color":"dark_gray"}'}
execute if score @s ua_name matches 5 run data merge entity @s {CustomName:'{"text":"Phantom","color":"dark_gray"}'}
execute if score @s ua_name matches 6 run data merge entity @s {CustomName:'{"text":"Cipher","color":"dark_gray"}'}
execute if score @s ua_name matches 7 run data merge entity @s {CustomName:'{"text":"Hollow","color":"dark_gray"}'}
execute if score @s ua_name matches 8 run data merge entity @s {CustomName:'{"text":"Void","color":"dark_gray"}'}
item replace entity @s armor.head with minecraft:netherite_helmet[trim={material:"minecraft:amethyst",pattern:"minecraft:spire"}]
item replace entity @s armor.chest with minecraft:netherite_chestplate[trim={material:"minecraft:amethyst",pattern:"minecraft:spire"}]
item replace entity @s armor.legs with minecraft:netherite_leggings[trim={material:"minecraft:amethyst",pattern:"minecraft:spire"}]
item replace entity @s armor.feet with minecraft:netherite_boots[trim={material:"minecraft:amethyst",pattern:"minecraft:spire"}]
item replace entity @s weapon.mainhand with minecraft:netherite_sword
item replace entity @s weapon.offhand with minecraft:shield[custom_name='{"text":"Null Guard","color":"dark_purple","italic":false}']
data merge entity @s {ArmorDropChances:[0.0f,0.0f,0.0f,0.0f],HandDropChances:[0.0f,0.0f]}