tag @s add script_2a

# playsound tile.piston.in @a 1784.51 12.43 1218.00
execute @s[scores={players=1..}] ~ ~ ~ replaceitem entity @e[type=tsu:storage_unit,x=1784,y=12,z=1217,r=5] slot.inventory 13 tsu:laser_blaster
execute @s[scores={players=2..}] ~ ~ ~ replaceitem entity @e[type=tsu:storage_unit,x=1784,y=12,z=1217,r=5] slot.inventory 12 tsu:laser_blaster
execute @s[scores={players=3..}] ~ ~ ~ replaceitem entity @e[type=tsu:storage_unit,x=1784,y=12,z=1217,r=5] slot.inventory 14 tsu:laser_blaster
execute @s[scores={players=4..}] ~ ~ ~ replaceitem entity @e[type=tsu:storage_unit,x=1784,y=12,z=1217,r=5] slot.inventory 11 tsu:laser_blaster
execute @s[scores={players=5..}] ~ ~ ~ replaceitem entity @e[type=tsu:storage_unit,x=1784,y=12,z=1217,r=5] slot.inventory 15 tsu:laser_blaster
execute @s[scores={players=6..}] ~ ~ ~ replaceitem entity @e[type=tsu:storage_unit,x=1784,y=12,z=1217,r=5] slot.inventory 10 tsu:laser_blaster
execute @s[scores={players=7..}] ~ ~ ~ replaceitem entity @e[type=tsu:storage_unit,x=1784,y=12,z=1217,r=5] slot.inventory 16 tsu:laser_blaster
execute @s[scores={players=8..}] ~ ~ ~ replaceitem entity @e[type=tsu:storage_unit,x=1784,y=12,z=1217,r=5] slot.inventory 9 tsu:laser_blaster
execute @s[scores={players=9..}] ~ ~ ~ replaceitem entity @e[type=tsu:storage_unit,x=1784,y=12,z=1217,r=5] slot.inventory 17 tsu:laser_blaster

# Checking if player has the laser blaster
    setblock 1783 8 1215 redstone_block