Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aliases:
- wood1 = 17:0
- wood2 = 17:1
- wood3 = 17:2
- wood4 = 17:3
- wood5 = 162:0
- wood6 = 162:1
- wood7 = 100:10
- leaves1 = 18:0
- leaves2 = 18:1
- leaves3 = 18:2
- leaves4 = 18:3
- leaves5 = 161:0
- leaves6 = 161:1
- leaves7 = 100
- on join:
- if player has permission "tree.destroy":
- set {treetoggle::%player%} to 1
- else:
- set {treetoggle::%player%} to 0
- on quit:
- delete {treetoggle::%player%}
- on break of wood1:
- {treetoggle::%player%} is 1:
- if player has permission "tree.destroy":
- if player is holding axe:
- loop blocks upwards:
- loop-block is wood1:
- block under is dirt
- drop the loop-block-1 at event-block
- set the loop-block-1 to air
- add 1 to {tool.%player%}
- loop blocks in radius 1 around loop-block:
- if loop-block-1 is leaves1:
- set {tree::%player%} to true
- set the loop-block-1 to air
- else:
- stop
- on break of wood2:
- {treetoggle::%player%} is 1:
- if player has permission "tree.destroy":
- if player is holding axe:
- loop blocks upwards:
- loop-block is wood2:
- block under is dirt
- drop the loop-block-1 at event-block
- set the loop-block-1 to air
- add 1 to {tool.%player%}
- loop blocks in radius 1 around loop-block:
- if loop-block-1 is leaves2:
- set {tree::%player%} to true
- set the loop-block-1 to air
- else:
- stop
- on break of wood3:
- {treetoggle::%player%} is 1:
- if player has permission "tree.destroy":
- if player is holding axe:
- loop blocks upwards:
- loop-block is wood3:
- block under is dirt
- drop the loop-block-1 at event-block
- set the loop-block-1 to air
- add 1 to {tool.%player%}
- loop blocks in radius 1 around loop-block:
- if loop-block-1 is leaves3:
- set {tree::%player%} to true
- set the loop-block-1 to air
- else:
- stop
- on break of wood4:
- {treetoggle::%player%} is 1:
- if player has permission "tree.destroy":
- if player is holding axe:
- loop blocks upwards:
- loop-block is wood4:
- block under is dirt
- drop the loop-block-1 at event-block
- set the loop-block-1 to air
- add 1 to {tool.%player%}
- loop blocks in radius 1 around loop-block:
- if loop-block-1 is leaves4:
- set {tree::%player%} to true
- set the loop-block-1 to air
- else:
- stop
- on break of wood5:
- {treetoggle::%player%} is 1:
- if player has permission "tree.destroy":
- if player is holding axe:
- loop blocks upwards:
- loop-block is wood5:
- block under is dirt
- drop the loop-block-1 at event-block
- set the loop-block-1 to air
- add 1 to {tool.%player%}
- loop blocks in radius 1 around loop-block:
- if loop-block-1 is leaves5:
- set {tree::%player%} to true
- set the loop-block-1 to air
- else:
- stop
- on break of wood6:
- {treetoggle::%player%} is 1:
- if player has permission "tree.destroy":
- if player is holding axe:
- loop blocks upwards:
- loop-block is wood6:
- block under is dirt
- drop the loop-block-1 at event-block
- set the loop-block-1 to air
- add 1 to {tool.%player%}
- loop blocks in radius 1 around loop-block:
- if loop-block-1 is leaves6:
- set {tree::%player%} to true
- set the loop-block-1 to air
- else:
- stop
- on break of wood7:
- {treetoggle::%player%} is 1:
- if player has permission "tree.destroy":
- if player is holding axe:
- loop blocks upwards:
- loop-block is wood7:
- block under is dirt
- drop the loop-block-1 at event-block
- set the loop-block-1 to air
- add 1 to {tool.%player%}
- loop blocks in radius 1 around loop-block:
- if loop-block-1 is leaves7:
- set {tree::%player%} to true
- set the loop-block-1 to air
- else:
- stop
- command /tree [<text>]:
- trigger:
- if player has permission "tree.toggle":
- if arg 1 is "off":
- set {treetoggle::%player%} to 0
- send "&8[&6Tree Assist&8] &7TreeAssist is &cOFF"
- stop
- if arg 1 is "on":
- set {treetoggle::%player%} to 1
- send "&8[&6Tree Assist&8] &7TreeAssist is &aON"
- stop
- else:
- send "&8[&6Tree Assist&8] &c/tree &7(&con&7/&coff&7)"
- stop
- else:
- send "&8[&6Tree Assist&8] &4You don't have permission to use this command!"
- stop
Advertisement
Add Comment
Please, Sign In to add comment