command /brush [<text>] [<integer>]:
permission: op
trigger:
if arg 1 is not set:
send "&aPoprawne uzycie: /brush daj/wlacz/wylacz [3|5]"
if arg 1 is "daj":
if arg 2 is not set:
send "&aWybierz jakiego chcesz brusha, wpisz 3 lub 5"
if arg 2 is 3:
give player blaze rod named "&6Brush" with lore "&63x3" and "&6Pozwala niszczyc bloki przez graczem"
if arg 2 is 5:
give player blaze rod named "&6Brush" with lore "&65x5" and "&6Pozwala niszczyc bloki przez graczem"
if arg 1 is "wlacz":
replace "&cOFF" with "" in name of player's tool
if arg 1 is "wylacz":
set name of player's tool to "&6Brush &cOFF"
on right click:
if name of player's tool contains "&cOFF":
cancel event
send "&6Brush jest wyłączony"
else:
if 1st line of lore of player's held item contains "3":
set {_t} to target block
distance between {_t} and player is less or equal to 4
loop blocks in radius 3 of {_t}:
set loop-block to air
chance of 0.01:
send "&cWydropiłeś 1$!"
add 1 to player's balance
if 1st line of lore of player's held item contains "5":
set {_t} to target block
distance between {_t} and player is less or equal to 6
loop blocks in radius 5 of {_t}:
set loop-block to air
chance of 0.01:
send "&cWydropiłeś 1$!"
add 1 to player's balance
Prosze, nie potrzebuje hajsu