How it works:
To see what's inside of each command block just point your mouse over it.
How to read?
Don't worry that's simple.
Read before the chain on the left and after the one on the right. Start from the bottom to the top following the direction the arrow are pointing.
execute @e[tag=laser] ~ ~ ~ kill @e[type=!ArmorStand,dy=1]
TIP: In order to copy the command selct it and than press Ctrl + C or CMD + C.
This command kills every entity except the armorstand itself in a radius of 0 blocks.
execute @e[tag=laser] ~ ~ ~ execute @e[type=!ArmorStand,dy=1] ~ ~ ~ playsound block.note.pling master @a ~ ~ ~ 1 2
TIP: In order to copy the command selct it and than press Ctrl + C or CMD + C.
This command just plays a sound when an entity is close to the laser.
execute @e[tag=laser] ~ ~ ~ particle portal ~ ~ ~ 0 0.8 0 0 5
TIP: In order to copy the command selct it and than press Ctrl + C or CMD + C.
This command plays the "portal" particle at the position of the armor stand, which simulates the laser.
© Cimap. All Rights Reserved
This website is not endorsed, associated or affiliated with Mojang AB.