ChaoticRedstone

How To Make Blocks Explode When Mined or Interacted!

Jun 26th, 2016
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. Watch the YouTube video for help:https://www.youtube.com/watch?v=jbQzSRvnirg&feature=youtu.be
  2.  
  3. To change the block you want to explode when interacted, change the scoreboard stat. to one the following:
  4. - brewingstandInteraction
  5. - cauldronUsed
  6. - enderchestOpened
  7. You can find more on the official Minecraft Website: http://minecraft.gamepedia.com/Scoreboard
  8.  
  9. To change the block you want to explode when mined, change the BLOCKNAME in stat.mineBlock.BLOCKNAME to one the block you want
  10. Ex. stat.mineBlock.redstone_block
  11.  
  12. //exploding chests, crafting tables, furnaces and beacons
  13. 1. Add the scoreboards
  14. > /scoreboard objectives add craft stat.craftingTableInteraction
  15. > /scoreboard objectives add furnace stat.furnaceInteraction
  16. > /scoreboard objectives add chest stat.chestOpened
  17. > /scoreboard objectives add beacon stat.beaconInteraction
  18.  
  19. 2. Checking for block interacted, then spawning tnt
  20. > /execute @a[score_craft_min=1] ~ ~ ~ /summon PrimedTnt ~ ~1 ~
  21. > /execute @a[score_furnace_min=1] ~ ~ ~ /summon PrimedTnt ~ ~1 ~
  22. > /execute @a[score_chest_min=1] ~ ~ ~ /summon PrimedTnt ~ ~1 ~
  23. > /execute @a[score_beacon_min=1] ~ ~ ~ /summon PrimedTnt ~ ~1 ~
  24.  
  25. 3. Reset scoreboards
  26. > /scoreboard players set @a craft 0
  27. > /scoreboard players set @a furnace 0
  28. > /scoreboard players set @a chest 0
  29. > /scoreboard players set @a beacon 0
  30.  
  31. //exploding diamond ore, log and stone
  32. 1. Add the scoreboards
  33. > /scoreboard objectives add dia stat.mineBlock.minecraft.diamond_ore
  34. > /scoreboard objectives add log stat.mineBlock.minecraft.log
  35. > /scoreboard objectives add stone stat.mineBlock.minecraft.stone
  36.  
  37. 2. Checking for mined block, then spawning tnt
  38. > /execute @a[score_dia_min=1] ~ ~ ~ /summon PrimedTnt ~ ~1 ~
  39. > /execute @a[score_log_min=1] ~ ~ ~ /summon PrimedTnt ~ ~1 ~
  40. > /execute @a[score_stone_min=1] ~ ~ ~ /summon PrimedTnt ~ ~1 ~
  41.  
  42. 3. Reset scoreboards
  43. > /scoreboard players set @a dia 0
  44. > /scoreboard players set @a log 0
  45. > /scoreboard players set @a stone 0
Advertisement
Add Comment
Please, Sign In to add comment