Skocz do zawartości
  • 0

Pomoc ze skryptem na płyn lugola w netherze


Pytanie

Co jest źle napisane?
Po upływie minuty dodaje efekt posiona i ustawia czas na 13 i sie buguje jak sie jest w netherze, jak sie jest w normalnym świecie nic się nie dzieje.

kod:

variables:
    {nether:%player%} = false
    {time:nether:%player%} = 0
On Consume of potion:
    if name of player's tool is "&aPłyn Lugola": 
        wait 1 tick
        set {_bottle} to tool of player
        remove 1 of {_bottle} from player's inventory
        set {nether:%player%} to true
        set {time:nether:%player%} to 15
        create bossbar titled "&7Działanie &aPłynu Lugola&7: &e%{time:nether:%player%}% minut" and id "lugola.%uuid of player%" for player with progress 100 with colors green
        wait 1 minute
        loop 14 times:
            remove 1 from {time:nether:%player%}
            create bossbar titled "&7Działanie &aPłynu Lugola&7: &e%{time:nether:%player%}% minut" and id "lugola.%uuid of player%" for player with progress 100 with colors green
            wait 1 minute
        set {nether:%player%} to false
        remove bossbar "lugola.%uuid of player%"
    
on player portal:
    if {nether:%player%} is false:
        cancel event
        send "&7Musisz wypić &aPłyn Lugola&7, aby wejść do netheru!"
        
every minute:
    loop all players:
        loop-player is in world "world_nether":
            if {nether:%loop-player%} is false:
                wait 1 second
                execute console command "effect give %loop-player% poison 60 1"
        
command /wyczysclugola:
    trigger:
        set {nether:%player%} to false
        set {time:nether:%player%} to 0

 

Glicz

Wstawiam kod w code. 

Notatka dodana przez Glicz

Odnośnik do komentarza
https://skript.pl/temat/53463-pomoc-ze-skryptem-na-p%C5%82yn-lugola-w-netherze/
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

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ę...