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!
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!
Progress | 100% complete |
Tags |
tools/tracking
3945958
2
jack-in-a-box-command-block-tutorial
Create an account or sign in to comment.