on rightclick on light gray stained glass pane:
give player 1 apple
set clicked block to air
add location of event-block to {blocks::*}
wait 30 seconds
set clicked block to light gray stained glass pane
remove location of event-block from {blocks::*}
on load:
loop {blocks::*}:
set block at loop-value to light gray stained glass pane
command /kara [<player>] [<integer>]:
trigger:
set {_czas} to arg 2 * 60
teleport arg 1 to %lokalizacja%
set {kara::%arg 1%} to true
send "&7Nalozono na ciebie kare!@" to arg 1
while {_czas} > 0:
wait 1 second
remove 1 from {_czas}
send "&7Kara sie zakonczyla"
set {kara::%arg 1%} to false
teleport arg 1 to %lokalizacja 2%
on command:
if {kara::%player%} is true:
cancel event
send "&7Nie mozesz tego wykonywac"
pod %lokalizacje% daj swoje lokalizacje tych miejsc
Dodać jego pozycje do jakiejś zmiennej grupowej i przy kliknięciu sprawdzać czy lista posiada jego lokalizację
if {lista::*} contain location of clicked block:
add location of clicked block to {lidta::'}
on command:
if arguments is set:
set {argument} to arguments
else:
set {argument} to ""
if {seecmds.%executor%} is true:
send "&8[&6&lSEECMD&8]&C%{PLAYER}% used command: &7/%{command}% %{argument}%" to all players
stop
command /seecmd:
trigger:
if player has permission "Vatrix.seecmd":
if {seecmds.%player%} is not set:
set {seecmds.%player%} to true
if {seecmds.%player%} is false:
set {seecmds.%player%} to true
send "&8» &aMozliwosc widzenia komend graczy zostala wlaczona." to player
stop
if {seecmds.%player%} is true:
set {seecmds.%player%} to false
send "&8» &cMozliwosc widzenia komend graczy zostala wylaczona." to player
stop
else:
send "&8» &cNie masz dostepu do tej komendy! &7(vatrix.seecmd)"
on command:
if executor is console:
set {PLAYER} to player
options:
limit: 15
on craft:
if event-item is enchantment table:
if {limit::%event-item%} is not set:
set {limit::%event-item%} to 0
if {limit::%event-item%} >= 15:
cancel event
send "Zostal osiagniety limit na scraftowanie tego przedmiotu!"
else if {limit::%event-item%} < 15:
if "%event.getClick()%" is "shift left" or "shift right":
send "&7Nie mozesz craftowac tego przedmiotu z shiftem!"
cancel event
stop
add 1 to {limit::%event-item%}
send "Pozostalo: %15-{limit::%event-item%}%"
on join:
if {sendBlokc::*} contain player:
while player is online:
send "zniszczono"
wait 1 second
on break:
if event-block is <twoj blok>:
add player to {sendBlokc::*}
while player is online:
send "zniszczono"
wait 1 second
options:
limit: 15
on load:
set {limit::stone button} to 0
set {limit::wood button} to 0
on craft:
if {limit::%event-item%} >= 15:
cancel event
send "Zostal osiagniety limit na scraftowanie tego przedmiotu!"
else if {limit::%event-item%} < 15:
if "%event.getClick()%" is "shift left" or "shift right":
send "&7Nie mozesz craftowac tego przedmiotu z shiftem!"
cancel event
stop
add 1 to {limit::%event-item%}
send "Pozostalo: %15-{limit::%event-item%}%"
skript mirror