Skocz do zawartości
  • 0

CloudBootsy


Awezik

Pytanie

Zróbcie coś żeby nie otrzymywali dmg po spadnięciu ;/

 

Spoiler

# Przy załadowaniu skryptu wczytuje crafting:
on script load:
    # Cloud Bootsy
    register new shaped recipe for diamond boots named "&b&lCloudBootsy" using air, diamond, air, feather, diamond, feather, diamond block, diamond block, diamond block
 
# Opcja do ustalenia logo skryptu
options:
    logo: &f&lMega&c&lGUI
 
# Komenda otwierająca GUI Craftingów
command /craftingi:
    trigger:
        execute console command "mgui %player% craftingi"
 
# Komenda uruchamiana przez konsole, GUI
command /mgui [<player>] [<text>]:
    executable by: console
    trigger:
        # Otwiera GUI graczowi z wyborem craftingu
        if arg 2 is "craftingi":
            wait 1 tick
            open chest with 1 rows named "&cCraftingi" to player-arg
            wait 1 tick
            format slot 0 of player-arg with 1 of diamond boots named "&b&lCloudBootsy" to run "mgui %player-arg% cloudbootsy"
            format slot 8 of player-arg with 1 of iron door item named "&c&lWyjscie" to close
       
# GUI dla Cloud Boots
        if arg 2 is "cloudbootsy":
            wait 2 tick
            open chest with 3 rows named "&aCloud Bootsy" to player-arg
            wait 2 tick
            format slot 0 of player-arg with 1 of air to be unstealable
            format slot 1 of player-arg with 1 of diamond to be unstealable
            format slot 2 of player-arg with 1 of air to be unstealable
            format slot 9 of player-arg with 1 of feather to be unstealable
            format slot 10 of player-arg with 1 of diamond to be unstealable
            format slot 11 of player-arg with 1 of feather to be unstealable
            format slot 12 of player-arg with 1 of diamond boots named "&b&lCloudBootsy" to be unstealable
            format slot 15 of player-arg with 1 of crafting table named "&6AutoCrafting" to run "agui %player-arg% cloudbootsy"
            format slot 18 of player-arg with 1 of diamond block to be unstealable
            format slot 19 of player-arg with 1 of diamond block to be unstealable
            format slot 20 of player-arg with 1 of diamond block to be unstealable
            format slot 25 of player-arg with 1 of stone button named "&7Powrot do Craftingow" to run "mgui %player-arg% craftingi"
            format slot 26 of player-arg with 1 of iron door item named "&c&lWyjdz" to close
 
# Komenda uruchamiana przez konsole, AutocCafting
command /agui [<player>] [<text>]:
    executable by: console
    trigger:
        # AutoCrafting: CloudBootsy
        if arg 2 is "cloudbootsy":
            if player-arg has 2 feather and 2 diamond and 3 diamond block:
                send "{@logo}: &r&aZaakceptowano!" to player-arg
                remove 2 feather and 2 diamond and 3 diamond block from player-arg's inventory
                if player-arg can hold 1 diamond boots named "&b&lCloudBootsy":
                    give 1 diamond boots named "&b&lCloudBootsy" to the player-arg
                    send "{@logo}: &r&eOtrzymales &4CloudBootsy" to player-arg
                else:
                    give 2 feather and 2 diamond and 3 diamond block to the player-arg
                    send "{@logo}: &r&eNie masz miejsca w ekwipunku" to player-arg
            else:
                send "{@logo}: &r&4Nie masz odpowiednich przedmiotow" to player-arg
every 1 second:
    loop all players:
        if boots of loop-player is diamond boots named "&b&lCloudBootsy":
            apply speed 2 to loop-player for 21 ticks
            apply jump boost 5 to loop-player for 21 ticks

 

//Pakuję do spoilera ~Derpy

Odnośnik do komentarza
https://skript.pl/temat/12101-cloudbootsy/
Udostępnij na innych stronach

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