Witam, potrzebowałbym pomocy do naprawy tego skryptu... Chciałbym by po kliknięciu prawym przyciskiem myszki na tabliczkę powinno zapisać w pliku bloki.yml i później odtwarzane w takiej kolejności:
1.%now%
2.nazwa gracza który kliknął
3. X
4. Y
5. Z
command /target [<text>]:
permission: target
trigger:
if arg 1 is set:
add arg to yaml list "Nazwy" from file "Bloki.yml"
set yaml value "Block.%arg%.Blok" from file "Bloki.yml" to "%target block%"
set yaml value "Block.%arg%.Data" from file "Bloki.yml" to "%now%"
set yaml value "Block.%arg%.Player" from file "Bloki.yml" to name of player
set yaml value "Block.%arg%.Loc.x" from file "Bloki.yml" to "%x-coordinate of target block%"
set yaml value "Block.%arg%.Loc.y" from file "Bloki.yml" to "%y-coordinate of target block%"
set yaml value "Block.%arg%.Loc.z" from file "Bloki.yml" to "%z-coordinate of target block%"
send "&7Dodano"
else:
send "&7Podaj nazwe!"
command /usuntarget [<text>]:
permission: target.usun
trigger:
if arg 1 is set:
remove arg from yaml list "Nazwy" from file "Bloki.yml"
clear yaml value "Block.%arg%.Loc.x" from file "Bloki.yml"
clear yaml value "Block.%arg%.Loc.y" from file "Bloki.yml"
clear yaml value "Block.%arg%.Loc.z" from file "Bloki.yml"
clear yaml value "Block.%arg%.Data" from file "Bloki.yml"
clear yaml value "Block.%arg%.Player" from file "Bloki.yml"
clear yaml value "Block.%arg%" from file "Bloki.yml"
send "&7Usunieto"
command /bloki:
permission: target.bloki
trigger:
set {_lista::*} to yaml list "Nazwy" from file "Bloki.yml"
open chest with 6 rows named "&6Bloki" to player
set {_s} to 0
loop {_lista::*}:
if {_s} < 6*9:
set {_x} to yaml value "Block.%loop-value%.Loc.x" from file "Bloki.yml"
set {_y} to yaml value "Block.%loop-value%.Loc.y" from file "Bloki.yml"
set {_z} to yaml value "Block.%loop-value%.Loc.z" from file "Bloki.yml"
set {_n} to yaml value "Block.%loop-value%.Data" from file "Bloki.yml"
set {_p} to yaml value "Block.%loop-value%.Player" from file "Bloki.yml"
set {_b} to yaml value "Block.%loop-value%.Blok" from file "Bloki.yml"
set player's current inventory's slot {_s} to ("%{_b}%" parsed as item) named "&f%loop-index%.&6 %loop-value%" with lore "&cLoc - x: &6%{_x}% &c - y: &6%{_y}%&c - z: &6%{_z}%" and "&cData: &6%{_n}%" and "&cPlayer: &6%{_p}%"
add 1 to {_s}
else:
stop
on inventory click:
name of player's current inventory is "&6Bloki"
cancel event
Pytanie
Misio12320 32
Witam, potrzebowałbym pomocy do naprawy tego skryptu... Chciałbym by po kliknięciu prawym przyciskiem myszki na tabliczkę powinno zapisać w pliku bloki.yml i później odtwarzane w takiej kolejności:
1.%now%
2.nazwa gracza który kliknął
3. X
4. Y
5. Z
Odnośnik do komentarza
https://skript.pl/temat/45322-kod-z-zapisem-tabliczek/Udostępnij na innych stronach
13 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.