Skocz do zawartości
  • 0

Stoniarki, drop (zloty kilof)


KrychaMC09

Pytanie

Witam!

Mam błąd związany tak naprawde z stoniarkami mianowicie jak wykopie stoniarkę złotym kilofem to z dropu mam 100% ze wypadnie diament

Kody dropu i stoniarek:

Stoniarki kod:

on place stone:
    if player's tool is stone named "&eStoniarka" with lore "&8» &eStoniarka &7generuje sie co &e1.5s":
        send "&8» &7Postawiles &estoniarke!"
        set {stoniarka::%event-block%} to true
on break of stone:
    if {stoniarka::%event-block%} is true:
        if player's tool is golden pickaxe:
            send "&8» &7Zniszczyles &estoniarke!"
            set {stoniarka::%event-block%} to false
            give 1 stone named "&eStoniarka" with lore "&8» &eStoniarka &7generuje sie co &e1.5s" to player
        else:
            wait 1.5 seconds
            set event-block to stone
command /stoniarka [<number>] [<player>]:
    permission: stoniarka.admin
    permission message: &8» &cNie posiadasz permisji!
    trigger:
        if arg 1 is not set:
            send "&8» &7Poprawne uzycie: &e/stoniarka <ilosc> <nick>"
        else:
            if arg 2 is not set:
                send "&8» &7Poprawne uzycie: &e/stoniarka <ilosc> <nick>"
            else:
                if arg 2 is online:
                    give arg-1 of stone named "&eStoniarka" with lore "&8» &eStoniarka &7generuje sie co &e1.5s" to arg-2
on break of stone:
    cancel event
    set block to air
    if {cobblestone::%player%} is true:
        if {dropdoeq::%player%} is true:
            give 1 cobblestone to player
        else:
            drop 1 cobblestone

Drop kod:

Proszę o pomoc bardzo!

Glicz

Wstawiam kod dropu w code.skript.pl

Notatka dodana przez Glicz

Odnośnik do komentarza
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

dodaj 1 taba do tych linijek! :) 

        if {diament::%player%} is true:
            if {dropdoeq::%player%} is true:
                give 1 diamond to player
            else:
                drop 1 diamond

 

        if {wegiel::%player%} is true:
            if {dropdoeq::%player%} is true:
                give 1 coal to player
            else:
                drop 1 coal

 

Edytowane przez CoFFeIN04
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
3 minuty temu, CoFFeIN04 napisał:

dodaj 1 taba do tych linijek! :) 


        if {diament::%player%} is true:
            if {dropdoeq::%player%} is true:
                give 1 diamond to player
            else:
                drop 1 diamond

 


        if {wegiel::%player%} is true:
            if {dropdoeq::%player%} is true:
                give 1 coal to player
            else:
                drop 1 coal

 

Gdzie???

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...