Skocz do zawartości
  • 0

Mutanty


Bejter

Pytanie

Mam skrypt i chce zrobić żeby nie mozna było craftować refili i koxów, ale craftowac Mutant 

tylko gdy chce craftowac mutanta to pokazuje ze nie mozna craftowac refili

 

	options:
	    sound: random.level.up
    pitch: 1
    volume: 10
on eat:
    if event-item is golden apple named "&6&lMutant":
        apply regeneration 4 to the player for 5 seconds
        apply speed 2 to the player for 15 seconds
        apply fire resistance 1 to the player for 30 seconds
        apply absorption 2 to the player for 1 minute
        play raw sound "random.levelup" at player with pitch 1 volume 1
        stop
on crafting:
    if event-item is enchanted golden apple:
        cancel event
        send "&8» &cCrafting &eenchantowane zlotego jablka &cjest &4ZABRONIONY" to the player
        stop
    if event-item is golden apple:
        if event-item is not golden apple named "&6&lMutant":
        cancel event
        send "&8» &cCrafting &e zlotego jablka &cjest &4ZABRONIONY" to the player
        stop
on load:
    register new shaped recipe for 322 named "&6&lMutant" using stone, stone, stone, stone, apple, stone, stone, stone, stone
    send "Pomyslnie zaladowano crafting na Mutanted apple" to the console
    stop
	
Edytowane przez Bejter
Odnośnik do komentarza
https://skript.pl/temat/28382-mutanty/
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0
on crafting:
    if event-item is enchanted golden apple:
        cancel event
        send "&8» &cCrafting &eenchantowane zlotego jablka &cjest &4ZABRONIONY" to the player
        stop
    if event-item is golden apple:
        if event-item is not golden apple named "&6&lMutant":
            cancel event
            send "&8» &cCrafting &e zlotego jablka &cjest &4ZABRONIONY" to the player
            stop

Wszystko miałeś dobrze tylko zapomniałeś o wytabowaniu po:

if event-item is not golden apple named "&6&lMutant":
Odnośnik do komentarza
https://skript.pl/temat/28382-mutanty/#findComment-189524
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

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