są 2 opcje:
1 opcja
to moze dac np "twoje 7 liczb to 0-2-4-7-9-3-4"
jak zmienisz ten "-" w 5 linijce np na _ to bedzie "0_2_4_7_9_3_4" mozna tez usunac wtedy bedzie "0247934"
2 opcja
tylko ze tu nie masz opcja ingerencji pomiedzy liczby i na 100% nie bedzie np "0234745" bo minimalna to "1000000"
to są głupie błędy a pozatym myślałem że np /gra start można z poziomu konsoli wpisać ale ok a tak na przyszłośc zwracaj sie z chociaż minimalnym szacunkiem dla osoby która poświęca czas i ZA DARMO chce ci pomóc
masz poprawiony i sprawdzony kod (ponieważ wcześniej nie sprawdzałem kodu na serwerze [na żywca])
polecam pobaw sie z tym " %player's mc version% "
np:
on connect:
if "%player's mc version%" contains "1.8":
kick player due to "Zmien wersje na 1.7 :)"
on command "/g create":
if number of all stone in player's inventory >= 64:
if number of all golden apple:1 in player's inventory >= 4:
remove 60 stone from player
remove 4 golden apple:1 from player
send "utworzono gildie"
stop
else:
add "4 koxy" to {_::*}
else:
add "64 kamienia" to {_::*}
send "&cNie posiadasz %{_::*}%"
tutaj sprawdza czy gracz ma 64 stone i 4 koxy myśle ze dokonczysz sam bo nie podałes itemków które mają być za gildie a pozatym tu masz cały schemat
command /usun:
trigger:
clear {sklepy::*}
set {_} to location of player
every 1 tick:
loop {sklepy::*}:
loop all entities in radius 3 around block at loop-value:
if name of loop-entity is "%loop-index%":
teleport loop-entity to block at loop-value
on damage:
if victim is villager:
loop {sklepy::*}:
if loop-value is location of block at location at victim:
cancel event
command /npc [<text>] [<text>]:
trigger:
if player is op:
if arg-1 is "stworz":
if block under player is not air:
spawn villager at location of block at location of player
apply slowness 1000 to last spawned entity for 100 days
set {_} to size of {sklepy::*}
add 1 to {_}
set name of last spawned entity to "sklep%{_}%"
set {sklepy::sklep%{_}%} to location of block at location of player
delete trades of last spawned entity
if arg-1 is "usun":
if arg-2 is set:
loop all entities in radius 10 around player:
if name of loop-entity is "%arg-2%":
clear {sklepy::%arg-2%}
kill loop-entity
send "&2Usunieto sklep o nazwie %arg-2%"
exit loop
on rightclick on villager:
if player is sneaking:
set {edytowanie::%player%} to true
loop {sklepy::*}:
if location of block at location of event-entity is loop-value:
cancel event
open chest with 3 rows named "%name of event-entity%" to player
wait 1 tick
loop 8 times:
clear {_trade}
clear {_trade1}
clear {_trade2}
clear {_trade3}
set {_trade} to loop-number offer of clicked entity
if {_trade} is set:
set {_trade1} to first item of {_trade}
set {_trade2} to second item of {_trade}
set {_trade3} to third item of {_trade}
set slot loop-number -1 of player's current inventory to {_trade1}
set slot loop-number +8 of player's current inventory to {_trade2}
set slot loop-number +17 of player's current inventory to {_trade3}
format slot 8 of player with anvil named "&6Zmien nazwe" to close then run "zmiennazwe %player% %name of event-entity%"
format slot 26 of player with red wool named "&cUsun villagera" to close then run [execute player command "npc usun %name of event-entity%"]
on inventory close:
if {edytowanie::%player%} is true:
loop {sklepy::*}:
if inventory name of player's current inventory is "%loop-index%":
loop all entities in radius 10 around player:
if name of loop-entity is "%loop-index%":
loop 8 times:
clear {_next}
set {_trade1} to slot loop-number -1 of player's current inventory
set {_trade2} to slot loop-number +8 of player's current inventory
set {_trade3} to slot loop-number +17 of player's current inventory
delete trades of loop-entity
if {_trade1} is not air:
if {_trade2} is not air:
if {_trade3} is not air:
set {_t%loop-number%} to {_trade1} and {_trade2} for {_trade3} with 9999999999 max uses
set {_next} to 1
if {_next} is not set:
if {_trade1} is not air:
if {_trade2} is air:
if {_trade3} is not air:
set {_t%loop-number%} to {_trade1} for {_trade3} with 9999999999 max uses
loop 8 times:
add {_t%loop-number%} to trades of loop-entity
clear {edytowanie::%player%}
command /zmiennazwe [<player>] [<text>]:
executable by: console
trigger:
set {zmiananazwy::%player-arg%} to "%arg-2%"
send "&6Napisz nowa nazwe sklepu na chacie" to player-arg
on chat:
if {zmiananazwy::%player%} is set:
loop all entities in radius 10 around player:
if name of loop-entity is "%{zmiananazwy::%player%}%":
set name of loop-entity to "%message%"
exit loop
loop {sklepy::*}:
if {zmiananazwy::%player%} is loop-index:
set {_} to {sklepy::%loop-index%}
clear {sklepy::%loop-index%}
set {sklepy::%message%} to {_}
clear {zmiananazwy::%player%}
cancel event
send "&2Zmieniono nazwe na: %message%"
command /wiesz [<text>] [<text>]:
trigger:
set name of player's tool to arg-1
set lore of player's tool to arg-2
proszę trochę nad tym siedziałem wiec liczę na plusa a wiec tak:
1 /npc stworz ---- tworzy NPC.
2 klikamy na niego PPM z shiftem.
3 Otwiera nam się GUI do edytowania sklepu.
4 Nazwę zmieniamy kowadlem a usuwamy go czerwoną wełną.
5 W nazwach możemy używać kolorów z bukkita &6,&3,&l,&k itd.
6.1 Edytowanie itemów do sprzedaży wygląda tak https://zapodaj.net/ddf4e82276e22.png.html
6.2 A efekt tak https://zapodaj.net/85a0eb35412e2.png.html
7 Można dodać 8 tradów
8.1 można także dodać tylko 1 item do wymiany w taki sposób https://zapodaj.net/93b21c26b2546.png.html
8.2 A efekt tak https://zapodaj.net/81672e9004413.png.html
9 Jeśli nie włożymy itemów poprawnie znikną więc uwaga
Myślę że pomogłem jedyne co proszę w zamian to kilka plusików
on chat:
add 1 to {wiadomosci::liczba}
every 1 second:
add 1 to {wiadomosci::czas}
on command /srednia:
trigger:
set {_} to {wiadomosci::liczba}/{wiadomosci::czas} parsed as number
senb "Średnia ilosc wiadomosci wynosi %{_}%"
command /mieczyk:
trigger:
give player diamond sword named "mieczyk" of unbreaking 10000
on damage:
if attacker's tool is diamond sword named "mieczyk" of unbreaking 10000:
spawn 5 of particle heart at location of attacker
jak chcesz @wiktorelex w yml to SkUtilities jest najlepsze i bez niego nie da sie zrobić yml listy musisz go mieć jak chesz to podaj na czym moge ci przesłaś działający z mojego serwera
command /dodaj [<item>]:
trigger:
add arg-1 to {LOSOWANIE::*}
send "Dodano %arg-1% do losowania"
command /losowanie:
trigger:
set {_} to random element out of {LOSOWANIE::*}
give {_} to player
on place:
if tool of player is mossy cobblestone of thorns 10:
send "&aPostawiles CobbleX'a!"
add location of event-block to {KCobbleX::cobblexy::*}
on break:
if event-block is mossy cobblestone:
loop {KCobbleX::cobblexy::*}:
if location of event-block is loop-value:
remove location of event-block from {KCobbleX::cobblexy::*}
send "Lol :D"
command /test [<integer>]:
trigger:
add 1 mossy cobblestone of thorns 10 named "&aCobbleX" with lore "&7Postaw na ziemi i rozwal!" to player
prosze bez testów zrobione nie działa ponieważ dałes cantains a trzeba w takim wypadku loopować
można tak
every 59 seconds:
if "%hour%" is "8:00":
set {dozwolone} to false
if "%hour%" is "22:00":
set {dozwolone} to true
command /komenda:
trigger:
if {dozwolone} is true:
#kod#