After placing the command  blocks as shown in the video, paste the commands starting from the bottom command block going towards the upper one.


Mine:

/execute @a ~ ~ ~ detect ~ ~-1 ~ stone_button 1 execute @p ~ ~ ~ detect ~ ~-3 ~ cobblestone -1 summon tnt


​/execute @a ~ ~ ~ detect ~ ~-1 ~ stone_button 1 execute @p ~ ~ ~ detect ~ ~-3 ~ cobblestone -1 effect @p slowness 4 20


​/execute @a ~ ~ ~ detect ~ ~-1 ~ stone_button 1 execute @p ~ ~ ~ detect ~ ~-3 ~ cobblestone -1 setblock ~ ~-2 ~ air 0


Quicksand:

​/execute @a ~ ~ ~ detect ~ ~-2 ~ sand -1 execute @p ~ ~ ~ detect ~ ~-3 ~ web -1 effect @p mining_fatigue 30 100


​/execute @a ~ ~ ~ detect ~ ~-2 ~ sand -1 execute @p ~ ~ ~ detect ~ ~-3 ~ web -1 tp @p ~ ~-1 ~


Pit:

​/testforblock -8 79 39 stone_button 9


​/fill -5 78 42 -11 78 36 air


MCPE TRAPS

Command blocks

Tutorial viewed            times