on load:
clear {msg::*}
add "pierwsza" to {msg::*}
add "druga" to {msg::*}
add "trzecie" to {msg::*}
every 60 second:
set {_x} to random element out of {msg::*}
send colored {_x} to all players
on load:
createCooldown("npc", 5 second)
on citizen right click:
if citizen is named "Nowy Gracz":
if getCooldown(player, "npc"):
setCooldown(player, "npc")
Send "..."
else:
send "Musisz odczekać 5sekund!"
Wymagany skrypt AxCooldown
command /randkoomenda:
Trigger:
Set {_x::*} to "kom1" and "kom2", "kom3", "kom4"
set {_cmd} to random element out of {_x::*}
execute player command "%{_cmd}%"
Yaml najlepiej tylko przy zdarzeniach które nie wykonują się często. Pobieranie/zapis trochę trwa.
Myślę że najlepiej zrobić w zmiennych i jeżeli chcesz dostęp w yml to w on load zapisywać wartości do plików i zapisywać zmienne.
aha.
options:
blacklist: diamond or emerald
command /clearlag:
trigger:
loop all dropped items:
if type of (items within entity loop-entity) is not {@blacklist}:
delete loop-entity
else:
send "&7Item: &6%items within entity loop-entity% &7Lezy na kordach: %location of loop-entity%" to all players
on walking on ender portal frame:
if distance between player and {mapa} <= 0.2:
if player's level >= 20:
execute console command "warp mapa1 %player%"
stop
send "&7Wymagany level 20"
command /mapa [<text>]:
permission: mapaset
permission message: &cBrak permissi!
trigger:
if arg 1 is "wejscie":
set {mapa} to location of player
send "&aUstawiles lokalizacje z ktorej ma teleportowac!"
stop
send "&cPoprawne uzycie /mapa wejscie"
command /lore [<text>]:
permission: nice.vip
permission message: &8Nie masz na to pozwolenia.
aliases: opis
trigger:
if arg 1 is set:
set player's tool to player's tool with lore (colored arg)
send "&bNowy opis &austawiony: &c%colored arg%" to player
stop
send "&cPoprawne uzycie: &a/opis <opis>"
wgl masz skQuery?, podaj wersje skripta i serwera