###REAL legacy code ported to functions...oh dear

scoreboard players add @e[type=armor_stand,name=GoldyKyu] GoldyKyu 1
execute at @e[type=armor_stand,scores={GoldyKyu=75}] run summon falling_block ~ ~-2 ~ {CustomName:"\"KyuX\"",CustomNameVisible:0,Motion:[0.0,-2.5,0.0],BlockState:{Name:"minecraft:black_concrete"},Time:1,DropItem:0}
execute at @e[type=falling_block,name=KyuX] positioned ~ ~-1 ~ run particle witch ~ ~ ~ 1 .1 .1 .1 10
execute at @e[type=falling_block,name=KyuX] positioned ~ ~-1 ~ run particle cloud ~ ~ ~ 1 .1 .1 .1 10
execute at @e[type=armor_stand,scores={GoldyKyu=63..74}] run summon minecraft:zombified_piglin ~ 130 ~ {NoGravity:1,Tags:["KyuGoldPig"],Anger:12000,HandItems:[{id:"minecraft:golden_sword",Count:1b},{}],Attributes:[{Name:generic.movementSpeed,Base:0.25},{Name:generic.followRange,Base:50}],PersistenceRequired:1,ActiveEffects:[{Id:11,Amplifier:4,Duration:200,ShowParticles:0b}]}
#execute at @e[type=falling_block,name=KyuX] positioned ~ 4 ~ run execute at @e[distance=..2,type=falling_block,name=KyuX] run summon armor_stand ~ ~ ~ {CustomName:"\"KyuX2\"",NoGravity:1,Invulnerable:1,Invisible:1}
#function zzzzdonotuse:fix/fixgoldblock

##2 above commands are part of a conditional command block pair I couldn't be bothered to make work in functions. After those run, the 2nd part of this function will run.
