Hello and again, welcome to the
Minecraft Aperture Enrichment Center!
You all remember the Portal Games? Right?
Ever wanted a WORKING turret inside of Minecraft?
Heck yeah!
Disclamer: They will shoot at any survival-mode player, and are invincible to all, but commands.
Here are the instructions:
1) Get a command block using: /give @p minecraft:command_block
2) Right-click the Command Block, and go into the text box.
3) Next, in the text box write the following:
/summon armor_stand ~ ~1 ~ {Small:1,Invulnerable:1,NoBasePlate:1,PersistenceRequired:1,ArmorItems:[{id:"minecraft:iron_boots",Count:1b},{id:"minecraft:iron_leggings",Count:1b},{id:"minecraft:iron_chestplate",Count:1b},{id:"minecraft:skull",Damage:3,Count:1b,tag:{SkullOwner:{Id:"67aca208-b4c3-433b-9360-5313ca130fd4",Properties:{textures:{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzVmZDc1MTZkZGJjODFhOWM4MWMxZDllMWMyYzk4ODBkMjNhZTE2M2IzZmIyMTZlZTBjYzQzOTE3YTg4MjgifX19"}]}}}}],Passengers:[{id:"guardian",Invulnerable:1,PersistenceRequired:1,Silent:1,ActiveEffects:{Id:14,Amplifier:1,Duration:2000000,ShowParticles:0b}]}]}
Now power the command block with your favorite power source.
Bonus:
Getting rid of the turrets:
These following commands can be used in the player-chat:
/kill @e[type=Armor_Stand]
/kill @e[type=Guardian]
tracking
3986482
minecraft-lazer-turret-and-how-to-get-one
1,165079,329,3672,559826,842002,140820,64651,214207,712893,460644,625964,356071,290694,895971,1030646,15493,171513,336698,476982,98449,817406,1293715,209568,526780,928263,1263961,2177557,2133059
Glad you liked it.