CbrdPHQp
Język: Skript
|
Autor: Anonimowy
on place: if {stoniarki::*} contains location of event-block: cancel event stop if player's tool is stone named "&cWolna Stoniarka": add location of event-block to {stoniarki::wolne::*} else if player's tool is stone named "&6Średnia Stoniarka": add location of event-block to {stoniarki::srednie::*} else if player's tool is stone named "&aSzybka Stoniarka": add location of event-block to {stoniarki::szybkie::*} on mine of stone: if player's tool's type is golden pickaxe: if {stoniarki::wolne::*} contains location of event-block: remove location of event-block from {stoniarki::wolne::*} set {_stoniarka} to stone named "&cWolna Stoniarka" else if {stoniarki::srednie::*} contains location of event-block: remove location of event-block from {stoniarki::srednie::*} set {_stoniarka} to stone named "&6Średnia Stoniarka" else if {stoniarki::szybkie::*} contains location of event-block: remove location of event-block from {stoniarki::szybkie::*} set {_stoniarka} to stone named "&aSzybka Stoniarka" if player has enough space for {_stoniarka}: give player {_stoniarka} else: drop {_stoniarka} at event-block else: if {stoniarki::wolne::*} contains location of event-block: wait 3 seconds set event-block to stone else if {stoniarki::srednie::*} contains location of event-block: wait 30 ticks set event-block to stone else if {stoniarki::szybkie::*} contains location of event-block: wait 10 ticks set event-block to stone command /stoniarka [<integer=1>] [<text="wolna">]: executable by: players permission: twoja.permisja permission message: &4Nie posiadasz dostępu do tej komendy. trigger: if arg 2 is "wolna": give player arg-1 of stone named "&cWolna Stoniarka" send "&aOtrzymałeś &6%arg-1% &awolnych stoniarek!" to player else if arg 2 is "srednia" or "średnia": give player arg-1 of stone named "&6Średnia Stoniarka" send "&aOtrzymałeś &6%arg-1% &aśrednich stoniarek!" to player else if arg 2 is "szybka": give player arg-1 of stone named "&aSzybka Stoniarka" send "&aOtrzymałeś &6%arg-1% &aszybkich stoniarek!" to player