[İSTEK] Belirlediğimiz İsimdeki Mob

imFoRTe

Zombi Katili
En iyi cevaplar
0
event-entity'i victim yap.

Çözümünü Bilen Yok Mu Ya?
@Bartuzen @Minecraftplayerr @Rosenrot
Kod:
on damage of a zombie:
    victim's name is "Deneme Zombisi"
    attacker is a player
    if health of victim is less than 10:
        {vuranlarlistesi::*} does not contain attacker
        add attacker to {vuranlarlistesi::*}

on death of zombie:
    victim's name is "Deneme Zombisi"
    attacker is a player
    loop {vuranlarlistesi::*}:
        loop-value contains attacker
        give a paper to loop-value
 
Son düzenleme:

Rosenrot

LAGOMORPHA
En iyi cevaplar
0

Çözümünü Bilen Yok Mu Ya?
@Bartuzen @Minecraftplayerr @Rosenrot
Kod:
on damage of a zombie:
    victim's name is "Deneme Zombisi"
    attacker is a player
    if health of victim is less than 10:
        {vuranlarlistesi::*} does not contain attacker
        add attacker to {vuranlarlistesi::*}

on death of zombie:
    victim's name is "Deneme Zombisi"
    attacker is a player
    loop {vuranlarlistesi::*}:
        loop-value contains attacker
        give a paper to loop-value
broadcast "%loop-value%" ile debug yap eger playerlerin isimlerini broadcastlıyorsa
PHP:
give a paper to loop-value
bunu silip
PHP:
make console execute command "give %loop-value% paper 1"
bunu kullan
 

imFoRTe

Zombi Katili
En iyi cevaplar
0
@Rosenrot
Kod:
on damage of a zombie:
    event-entity's name is "Deneme Zombisi"
    attacker is a player
    if health of event-entity is less than 10:
        {vuranlarlistesi::*} does not contain attacker
        add attacker to {vuranlarlistesi::*}

on death of zombie:
    event-entity's name is "Deneme Zombisi"
    attacker is a player
    loop {vuranlarlistesi::*}:
        loop-value contains attacker
        broadcast "%loop-value%"
    delete {vuranlarlistesi::*}
 

Rosenrot

LAGOMORPHA
En iyi cevaplar
0
@Rosenrot
Kod:
on damage of a zombie:
    event-entity's name is "Deneme Zombisi"
    attacker is a player
    if health of event-entity is less than 10:
        {vuranlarlistesi::*} does not contain attacker
        add attacker to {vuranlarlistesi::*}

on death of zombie:
    event-entity's name is "Deneme Zombisi"
    attacker is a player
    loop {vuranlarlistesi::*}:
        loop-value contains attacker
        broadcast "%loop-value%"
    delete {vuranlarlistesi::*}

sorun degil o sadece uyarı server durdugunda o variabledeki şeyler silinir
 
Üst