Witam czemu mam to wszystko w 1 lini
set player's current inventory's slot 0 to clock named "&6Top 10 czasu na serwerze" with lore (join createTop("czas", 10, all offline players, "&6[INDEX]. &e[PLAYER] &7Gra: &a[VALUE] &7Godzin") with "||")
Witam mam skrypt
command /lp:
trigger:
loop {piece::*}:
if {furnace::%loop-value-1%::itemy::*} is set:
send "set"
loop {furnace::%loop-value-1%::itemy::*}:
send "%{furnace::%loop-value-1%::itemy::*}%"
loop {piec::paliw::*}:
if {furnace::%loop-value-1%::itemy::*} contains coal:
send "2"
loop {piec::przep::*}:
if {furnace::%loop-value-1%::itemy::*} contains iron ore or gold ore or diamond ore:
send "3"
remove loop-value-4 from {furnace::%loop-value-1%::itemy::*}
# chance of 50%:
# remove 1 coal from {furnace::%loop-value-1%::itemy::*}
# chance of 70%:
give 1 melon seeds to {furnace::%loop-value-1%::itemy::*}
add loop-value-3 of {piec::prods::%loop-index-4%} to {furnace::%loop-value-1%::itemy::*}
stop
else:
send "niema rudy"
else:
send "niema drewna"
i zabiasto dodawania do istniejącego zapisanego itemó to robi now
dla jasności mam 60 melon seeds and 60 iron ingot
i chce aby dodawało 61 melon seeds and 61 iron ingot
a robi mi coś takiego 60 melon seeds and 60 iron ingot and melon seeds and iron ingot
Witam mam skrypt na piecyk
on rightclick:
if event-block is furnace:
if {piec::%location of event-block%} is false:
set {_piec} to chest with {piec::rows} rows named {piec::name}
set {piec::%location of event-block%} to true
set {furnace::%location of event-block%::open} to 1
wait 1 tick
clear {_s}
open {_piec} to player
set {_s} to 0
loop {furnace::%location of event-block%::itemy::*}:
add 1 to {_s}
set slot {_s}-1 of player's current inventory to loop-value-1
while inventory name of current inventory of player is {piec::name}:
loop {piec::przep::*}:
loop {piec::paliw::*}:
while {_piec} has (loop-value-2 of loop-value-1):
if {_piec} has (loop-index-2 parsed as item):
remove loop-value-1 from {_piec}
chance of 50%:
remove (loop-index-2 parsed as item) from {_piec}
chance of 70%:
add 1 melon seeds to {_piec}
add loop-value-2 of {piec::prods::%loop-index-1%} to {_piec}
wait {piec::time}
else:
exit loop
wait 1 second
else:
cancel event
send "&4Tylko 1 gracz moze miec otwarty piec"
i chce aby jeśli jest zamknięty to loop co minute i wykonywało się przepalanie
tu zapisuje materiały :{furnace::%location of event-block%::itemy::*}
Witam ma skrypt
command /sf:
trigger:
loop all items in the player's current inventory:
clear {furnace::%location of targeted block%::*}
set {furnace::%location of targeted block%::itemy::*} to loop-item
i on ma zapisywać wszystkie ity w gui z rows 1 ale zapisuje tylko 1 slot i
Witam, nie czyta mi itemów
kod:
on inventory close:
if inventory name of current inventory of player is {piec::name}:
loop all items in the player's current inventory:
add loop-value-1 to {furnace::%location of event-block%::itemy::*}
send "sdf %loop-value-1%"
on place:
if player's tool is oak log:
add location of event-block to {lpg::*}
send "&3Drzewo"
on break:
if event-block is oak log:
if player's tool is nether star:
cancel event
set event-block to air
remove %location% from {lpg::*}
mam błąd z tym
if "%number of all players%" >= 10:
błąd:
Can't compare a text with an integer (chatmenager.sk, line 3: if "%number of all players%" >= 10:')