Minecraft Maps / Redstone Device

Jack in a box | Command Block Tutorial

  • 352 views, 2 today
  • 2
  • 1
FunkyMunkey's Avatar FunkyMunkey
Level 35 : Artisan Taco
10
Hello PMC!!!

Today I have for you: Jack in a box!

To make it: Put a command block on top of a chest and paste in this command:
/summon ArmorStand ~ ~-1.5 ~ {CustomName:"JACK",Invisible:1,NoGravity:1}
Next, paste this command into another command block:
/scoreboard objectives add BOX stat.chestOpened
After powering each of these command blocks once, you can feel free to delete them.

Get a repeating and always active command block and paste in this command:
/execute @a[score_BOX_min=1] ~ ~ ~ execute @e[name=JACK,r=5] ~ ~ ~ summon Creeper ~ ~ ~ {Motion:[0.0,0.3,-0.5],ignited:1,ExplosionRadius:-1,Fuse:20,Rotation:[180f,0f]}
Lastly get a chain and always active command block and paste in this command:
/scoreboard players reset @a BOX

You should be set! When you open the chest, a creeper pops up and explodes in your face. It doesn't damage the player or any block around it, so no need to worry!

Please leave a diamond, maybe even a favorite! Subscribe and stay tuned!



Progress100% complete
Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome