Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /////
- # WoolBreaker
- # /////
- function sideBreak(block: text, loc: location):
- wait 5 tick
- if "%block north {_loc}%" is {_block}:
- set block north {_loc} to air
- sideBreak("%{_block}%", (location of block at block north {_loc}))
- if "%block south {_loc}%" is {_block}:
- set block south {_loc} to air
- sideBreak("%{_block}%", (location of block at block south {_loc}))
- if "%block east {_loc}%" is {_block}:
- set block east {_loc} to air
- sideBreak("%{_block}%", (location of block at block east {_loc}))
- if "%block west {_loc}%" is {_block}:
- set block west {_loc} to air
- sideBreak("%{_block}%", (location of block at block west {_loc}))
- if "%block above {_loc}%" is {_block}:
- set block above {_loc} to air
- sideBreak("%{_block}%", (location of block at block above {_loc}))
- if "%block below {_loc}%" is {_block}:
- set block below {_loc} to air
- sideBreak("%{_block}%", (location of block at block below {_loc}))
- on break:
- player's held item isn't (stick or wool)
- {setsideremove.list::*} contains type of event-block
- sideBreak("%type of event-block%", location of event-block)
- command /setsideremove <text>:
- permission: skript.admin
- trigger:
- if arg 1 is "add":
- add player's held item to {setsideremove.list::*}
- if arg 1 is "remove":
- remove all player's held item from {setsideremove.list::*}
Add Comment
Please, Sign In to add comment