Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=======[Scinacz]=======#
- #Autor: Seekeer #
- #Wersja 1.0 #
- #Nazwa: Scinacz #
- #=======[Scinacz]=======#
- #Zmienne
- Variables:
- {right.click.%player%} = 0
- #Opcje
- Options:
- #Nazwa
- tag: &8[&6&lScinacz&8]&r
- #Kod
- On rightclick:
- player has permission "seek.drzewo":
- if player is holding axe:
- if {right.click.%player%} is 1:
- set {right.click.%player%} to 0
- send "{@tag} &Scinacz &4wylaczony."
- else:
- send "{@tag} &Scinacz &2wlaczony."
- set {right.click.%player%} to 1
- stop
- On break of wood:
- if {right.click.%player%} is 1:
- player is holding axe:
- loop blocks upwards:
- loop-block is wood:
- add 1 to {tool.%player%}
- loop blocks in radius 2 around loop-block:
- if loop-block-2 is leaves:
- set {tree.%player%} to true
- set the loop-block-2 to air
- if {tree.%player%} is true:
- loop blocks upwards:
- if loop-block is wood:
- drop the loop-block-1 at event-block
- set the loop-block-1 to air
- loop blocks in radius 4 around loop-block:
- if loop-block-2 is wood:
- drop the loop-block-2 at event-block
- set the loop-block-2 to air
- set {tree.%player%} to false
- damage player's tool by {tool.%player%}
- set {tool.%player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment