7mm

mcsk

7mm
Jul 13th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. # /////
  2. # WoolBreaker
  3. # /////
  4.  
  5. function sideBreak(block: text, loc: location):
  6. wait 5 tick
  7. if "%block north {_loc}%" is {_block}:
  8. set block north {_loc} to air
  9. sideBreak("%{_block}%", (location of block at block north {_loc}))
  10. if "%block south {_loc}%" is {_block}:
  11. set block south {_loc} to air
  12. sideBreak("%{_block}%", (location of block at block south {_loc}))
  13. if "%block east {_loc}%" is {_block}:
  14. set block east {_loc} to air
  15. sideBreak("%{_block}%", (location of block at block east {_loc}))
  16. if "%block west {_loc}%" is {_block}:
  17. set block west {_loc} to air
  18. sideBreak("%{_block}%", (location of block at block west {_loc}))
  19. if "%block above {_loc}%" is {_block}:
  20. set block above {_loc} to air
  21. sideBreak("%{_block}%", (location of block at block above {_loc}))
  22. if "%block below {_loc}%" is {_block}:
  23. set block below {_loc} to air
  24. sideBreak("%{_block}%", (location of block at block below {_loc}))
  25.  
  26. on break:
  27. player's held item isn't (stick or wool)
  28. {setsideremove.list::*} contains type of event-block
  29. sideBreak("%type of event-block%", location of event-block)
  30.  
  31. command /setsideremove <text>:
  32. permission: skript.admin
  33. trigger:
  34. if arg 1 is "add":
  35. add player's held item to {setsideremove.list::*}
  36. if arg 1 is "remove":
  37. remove all player's held item from {setsideremove.list::*}
Add Comment
Please, Sign In to add comment