execute store result score $raj_minion_loc kattersstructures.technical run random value 1..4

execute if score $raj_minion_loc kattersstructures.technical matches 1 if predicate kattersstructures:percentages/15 run summon allay ~ ~2 ~3 {Silent:1b,Invulnerable:1b,DeathLootTable:"kattersstructures:placeholder",CanDuplicate:0b,Tags:["katter.raj.mini.vehicle","nmr_has_display","nmr_speed_set","nmr_resized"],Passengers:[{id:"minecraft:guardian",DeathLootTable:"kattersstructures:placeholder",Tags:["katter.raj.mini.rider","nmr_has_display","nmr_speed_set","nmr_resized"],attributes:[{id:"minecraft:scale",base:0.3}]}],active_effects:[{id:"minecraft:invisibility",amplifier:0,duration:-1,show_particles:0b}],attributes:[{id:"minecraft:scale",base:0.5}]}
execute if score $raj_minion_loc kattersstructures.technical matches 2 if predicate kattersstructures:percentages/15 run summon allay ~ ~2 ~-3 {Silent:1b,Invulnerable:1b,DeathLootTable:"kattersstructures:placeholder",CanDuplicate:0b,Tags:["katter.raj.mini.vehicle","nmr_has_display","nmr_speed_set","nmr_resized"],Passengers:[{id:"minecraft:guardian",DeathLootTable:"kattersstructures:placeholder",Tags:["katter.raj.mini.rider","nmr_has_display","nmr_speed_set","nmr_resized"],attributes:[{id:"minecraft:scale",base:0.3}]}],active_effects:[{id:"minecraft:invisibility",amplifier:0,duration:-1,show_particles:0b}],attributes:[{id:"minecraft:scale",base:0.5}]}
execute if score $raj_minion_loc kattersstructures.technical matches 3 if predicate kattersstructures:percentages/15 run summon allay ~3 ~2 ~ {Silent:1b,Invulnerable:1b,DeathLootTable:"kattersstructures:placeholder",CanDuplicate:0b,Tags:["katter.raj.mini.vehicle","nmr_has_display","nmr_speed_set","nmr_resized"],Passengers:[{id:"minecraft:guardian",DeathLootTable:"kattersstructures:placeholder",Tags:["katter.raj.mini.rider","nmr_has_display","nmr_speed_set","nmr_resized"],attributes:[{id:"minecraft:scale",base:0.3}]}],active_effects:[{id:"minecraft:invisibility",amplifier:0,duration:-1,show_particles:0b}],attributes:[{id:"minecraft:scale",base:0.5}]}
execute if score $raj_minion_loc kattersstructures.technical matches 4 if predicate kattersstructures:percentages/15 run summon allay ~-3 ~2 ~ {Silent:1b,Invulnerable:1b,DeathLootTable:"kattersstructures:placeholder",CanDuplicate:0b,Tags:["katter.raj.mini.vehicle","nmr_has_display","nmr_speed_set","nmr_resized"],Passengers:[{id:"minecraft:guardian",DeathLootTable:"kattersstructures:placeholder",Tags:["katter.raj.mini.rider","nmr_has_display","nmr_speed_set","nmr_resized"],attributes:[{id:"minecraft:scale",base:0.3}]}],active_effects:[{id:"minecraft:invisibility",amplifier:0,duration:-1,show_particles:0b}],attributes:[{id:"minecraft:scale",base:0.5}]}

execute if predicate kattersstructures:percentages/15 run effect give @s minecraft:darkness 20 0 true