Published Aug 19th, 2016, 8/19/16 3:56 am
- 6,522 views, 3 today
- 6
- 2
- 15
53
Want a good security measure for guarding your precious items, or perhaps want a good trap mechanism for your map? Well, you've come to the right place. In a few easy steps, create your very own working security lasers in Minecraft!
Step 1) Get yourself a repeating command block, and type in
/entitydata @e[type=Bat,r=32] {NoAI:1}
Step 2) Create your security laser by spawning bats along where you want your laser to be.
Step 3) Inside another repeating command block, type in this command:
/execute @e[type=Bat,r=32] ~ ~ ~ particle reddust ~ ~ ~ 0 0 0 150 force @a
The bats you've just spawned should immediately start spawning red particles.
Step 4) Now, for the final touch: with the help of another repeating command block, type in
/execute @e[type=Bat,r=32] ~ ~ ~ kill @a[r=1]
Walking into the particle-emitting bats should now kill you immediately.
Step 5) Now, finally, give all bats within a 32 block radius the invisibility effect by typing in this command:
/effect @e[type=Bat,r=32] minecraft:invisibility 9999 1 true
Then, when you're done, make them invulnerable using this command (to prevent players from killing the bats)
/entitydata @e[type=Bat,r=32] {Invulnerable:1}
Tah-dah! You're done making your very own security laser system! You can also give the laser a more tripwire-like property by replacing the step 4 with this step:
1) Inside a repeating command block, type in
/execute @e[type=Bat,r=32] ~ ~ ~ testfor @a[r=1]
2) Now, place a comparator in front of the command block, right-click it, then place a repeater in front of it to strengthen its redstone signal.
3) Wire it up to whatever redstone contraption you wish to power! For instance, a security alarm (note blocks or a /playsound command block).
Think this tutorial was useful to you? If so, don't hesitate to leave a diamond (it really helps), and also consider subscribing for more upcoming material!
P.S. If you really DO use this contraption for your map or something, please consider giving credit to me for the security laser design...I mean, it took me quite a bit of time to come up with this :/
Step 1) Get yourself a repeating command block, and type in
/entitydata @e[type=Bat,r=32] {NoAI:1}
Step 2) Create your security laser by spawning bats along where you want your laser to be.
Step 3) Inside another repeating command block, type in this command:
/execute @e[type=Bat,r=32] ~ ~ ~ particle reddust ~ ~ ~ 0 0 0 150 force @a
The bats you've just spawned should immediately start spawning red particles.
Step 4) Now, for the final touch: with the help of another repeating command block, type in
/execute @e[type=Bat,r=32] ~ ~ ~ kill @a[r=1]
Walking into the particle-emitting bats should now kill you immediately.
Step 5) Now, finally, give all bats within a 32 block radius the invisibility effect by typing in this command:
/effect @e[type=Bat,r=32] minecraft:invisibility 9999 1 true
Then, when you're done, make them invulnerable using this command (to prevent players from killing the bats)
/entitydata @e[type=Bat,r=32] {Invulnerable:1}
Tah-dah! You're done making your very own security laser system! You can also give the laser a more tripwire-like property by replacing the step 4 with this step:
1) Inside a repeating command block, type in
/execute @e[type=Bat,r=32] ~ ~ ~ testfor @a[r=1]
2) Now, place a comparator in front of the command block, right-click it, then place a repeater in front of it to strengthen its redstone signal.
3) Wire it up to whatever redstone contraption you wish to power! For instance, a security alarm (note blocks or a /playsound command block).
Think this tutorial was useful to you? If so, don't hesitate to leave a diamond (it really helps), and also consider subscribing for more upcoming material!
P.S. If you really DO use this contraption for your map or something, please consider giving credit to me for the security laser design...I mean, it took me quite a bit of time to come up with this :/
Tags |
3784656
6
Create an account or sign in to comment.
/summon Bat ~ ~ ~ {NoAI:1} security:1b
Do the similar way as what the original Steps 2~5 do in this post, but modify all selectors @e[type=Bat,r=32] into @e[type=Bat,r=32,tag=security]
It seems that with this security system on, any players may be killed once they touch a bat.
But, the problem is that bats may be spawn naturally, too, even in Peaceful Mode!
I have 2 suggestions to solve this problem...
Solution #1: Run the command: /gamerule doMobSpawning false, and never let other players spawn bats nearby the security system. But, if you wish to let other mobs spawn naturally, this way might not fit you...
Solution #2: This way is a bit more complicated... Give your bats a specified name, and this method is thus slightly modified as below:
1) Directly type the following command in your chat box for several times as you move along the expected locations of the security laser:
/summon Bat ~ ~ ~ {NoAI:1,CustomName:"Security",Invulnerable:1}
2) Do the similar way as what the original Steps 2~5 do in this post, but modify all selectors @e[type=Bat,r=32] into @e[type=Bat,r=32,name=Security]
Try if any of them work! :D