[Help] loop value ?

OrocTR

Demir Madencisi
En iyi cevaplar
0
Kod:
command /items:
    trigger:
        loop blocks at {chest::*}:
            if loop-value is a chest:
                clear loop-value's inventory
                send "&aChest refilled"
                loop (random integer between 1 and 30) times:   
                    set {_randomitem} to random element out of {chestitems::*}
                    add {_randomitem} to {chest::%loop-value%}'s inventory
                    send "test"

on place of chest:
    if player is op:
        add "%location of event-block%" to {chest::*}
        send "%location of event-block% eklendi!"
        
on break of chest:
    if player is op:
        remove "%location of event-block%" from {chest::*}
        send "%location of event-block% silindi!"

Yardım edebilecek birisi varmı değerli dostlarım ? :)
 

Ekli dosyalar

  • error123.png
    error123.png
    198.5 KB · Görüntüleme: 480
Üst