Skocz do zawartości
  • 0

Stoniarka


OliwierGL

Pytanie

Witam, potrzebuję skryptu na Generator Stone'a.

Najlepiej żeby wyglądało to jak na Dragon'ie (tj. Stawiasz generator, na jego miejscu pojawia się stone (Nie pod nim czy nad nim itd.), zniszczyć można złotym kilofem)
Skript: 2.5-alpha3 MC: 1.15.2

Będę wdzięczny. Oczywiście najlepsza odpowiedź wleci.

Edytowane przez OliwierGL
Odnośnik do komentarza
https://skript.pl/temat/38852-stoniarka/
Udostępnij na innych stronach

15 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Spoiler

 # Crafting stoniarki
 
options:
    craft1: obsidian
    craft2: iron block
    craft3: obsidian
    craft4: iron block
    craft5: stone
    craft6: iron block
    craft7: obsidian
    craft8: iron block
    craft9: obsidian
 
 # Wytlumaczenie craftingu
 
    # # # # # # #  # # # # # # #
    #        |        |        #
    # craft1 | craft2 | craft3 #
    #________|________|________#
    #        |        |        #
    # craft4 | craft5 | craft6 #
    #________|________|________#
    #        |        |        #
    # craft7 | craft8 | craft9 #
    #        |        |        #
    # # # # # # #  # # # # # # #
 
 # Funkcjonowanie stoniarki
 
on break of stone:
    {SmartStone.%event-block%} is true:
        player is holding gold pickaxe:
            set {SmartStone.%event-block%} to false
            player can hold 1 bedrock of unbreaking 10:
                give 1 bedrock of unbreaking 10 named "&f&l• &bStoniarka &f&l•" with lore "&fZamienia się w stone" to the player
            player doesn't have enough space for 1 bedrock of unbreaking 10 named "&f&l• &bStoniarka &f&l•" with lore "&fZamienia się w stone":
                drop 1 bedrock of unbreaking 10 named "&f&l• &bStoniarka &f&l••" with lore "&fZamienia się w stone"
        else:
            wait 1 second
            set the event-block to stone
            stop
on place of bedrock:
    if tool is bedrock of unbreaking 10 named "&f&l• &bStoniarka &f&l••" with lore "&fZamienia się w stone":
        set {SmartStone.%event-block%} to true
        wait 1 tick
        set event-block to stone
        stop
on script load:
    register new shaped recipe for 1 bedrock of unbreaking 10 named "&f&l• &bStoniarka &f&l•" with lore "&fZamienia się w stone" using {@craft1}, {@craft2}, {@craft3}, {@craft4}, {@craft5}, {@craft6}, {@craft7}, {@craft8}, {@craft9}
    
    
command /stoniarka:
        trigger:


                open chest with 3 rows named "&fCrafting stoniarki" to player
                wait 1 tick
                format slot 3 of player with 1 of obsidian named "&8Obsydian" to be unstealable
                format slot 4 of player with 1 of iron block named "&fBlok żelaza" to be unstealable
                format slot 5 of player with 1 of obsidian named "&8Obsydian" to be unstealable
                format slot 12 of player with 1 of iron block named "&fBlok żelaza" to be unstealable
                format slot 13 of player with 1 of stone named "&7Kamień" to be unstealable
                format slot 14 of player with 1 of iron block named "&fBlok żelaza" to be unstealable
                format slot 21 of player with 1 of obsidian named "&8Obsydian" to be unstealable
                format slot 22 of player with 1 of iron block named "&fBlok żelaza" to be unstealable
                format slot 23 of player with 1 of obsidian named "&8Obsydian" to be unstealable

 

Trzymaj ;) 

Odnośnik do komentarza
https://skript.pl/temat/38852-stoniarka/#findComment-244639
Udostępnij na innych stronach

  • 0

@BimberDziadka1

Godzinę temu, BimberDziadka1 napisał:
  Pokaż ukrytą zawartość


 # Crafting stoniarki
 
options:
    craft1: obsidian
    craft2: iron block
    craft3: obsidian
    craft4: iron block
    craft5: stone
    craft6: iron block
    craft7: obsidian
    craft8: iron block
    craft9: obsidian
 
 # Wytlumaczenie craftingu
 
    # # # # # # #  # # # # # # #
    #        |        |        #
    # craft1 | craft2 | craft3 #
    #________|________|________#
    #        |        |        #
    # craft4 | craft5 | craft6 #
    #________|________|________#
    #        |        |        #
    # craft7 | craft8 | craft9 #
    #        |        |        #
    # # # # # # #  # # # # # # #
 
 # Funkcjonowanie stoniarki
 
on break of stone:
    {SmartStone.%event-block%} is true:
        player is holding gold pickaxe:
            set {SmartStone.%event-block%} to false
            player can hold 1 bedrock of unbreaking 10:
                give 1 bedrock of unbreaking 10 named "&f&l• &bStoniarka &f&l•" with lore "&fZamienia się w stone" to the player
            player doesn't have enough space for 1 bedrock of unbreaking 10 named "&f&l• &bStoniarka &f&l•" with lore "&fZamienia się w stone":
                drop 1 bedrock of unbreaking 10 named "&f&l• &bStoniarka &f&l••" with lore "&fZamienia się w stone"
        else:
            wait 1 second
            set the event-block to stone
            stop
on place of bedrock:
    if tool is bedrock of unbreaking 10 named "&f&l• &bStoniarka &f&l••" with lore "&fZamienia się w stone":
        set {SmartStone.%event-block%} to true
        wait 1 tick
        set event-block to stone
        stop
on script load:
    register new shaped recipe for 1 bedrock of unbreaking 10 named "&f&l• &bStoniarka &f&l•" with lore "&fZamienia się w stone" using {@craft1}, {@craft2}, {@craft3}, {@craft4}, {@craft5}, {@craft6}, {@craft7}, {@craft8}, {@craft9}
    
    
command /stoniarka:
        trigger:


                open chest with 3 rows named "&fCrafting stoniarki" to player
                wait 1 tick
                format slot 3 of player with 1 of obsidian named "&8Obsydian" to be unstealable
                format slot 4 of player with 1 of iron block named "&fBlok żelaza" to be unstealable
                format slot 5 of player with 1 of obsidian named "&8Obsydian" to be unstealable
                format slot 12 of player with 1 of iron block named "&fBlok żelaza" to be unstealable
                format slot 13 of player with 1 of stone named "&7Kamień" to be unstealable
                format slot 14 of player with 1 of iron block named "&fBlok żelaza" to be unstealable
                format slot 21 of player with 1 of obsidian named "&8Obsydian" to be unstealable
                format slot 22 of player with 1 of iron block named "&fBlok żelaza" to be unstealable
                format slot 23 of player with 1 of obsidian named "&8Obsydian" to be unstealable

 

Trzymaj ;) 

Nie działa :(
Po postawieniu nic sie nie dzieje

@Trokuszek_PL Thx zaraz sprawdze

Edytowane przez OliwierGL
Odnośnik do komentarza
https://skript.pl/temat/38852-stoniarka/#findComment-244651
Udostępnij na innych stronach

  • 0
4 minuty temu, BimberDziadka1 napisał:

Niby działa, ale jeśli masz drop ze stone z pluginu to już drop ze stoniarki nie leci ;)

Powinien działać. Jeśli nie działa to zrób skrypt na drop? Albo nawet ja mogę ci napisać.

Odnośnik do komentarza
https://skript.pl/temat/38852-stoniarka/#findComment-244669
Udostępnij na innych stronach

  • 0

Luzik, nie chcę skryptu na drop, bo używam CustomDrops do różnych dropów, nie tylko ze stone. Ale spoko, mam inny skrypt na stoniarkę, który mi działa. Informuję tylko o działaniu tego co Ty wysłałeś, bo sobie sprawdziłem. 

Odnośnik do komentarza
https://skript.pl/temat/38852-stoniarka/#findComment-244670
Udostępnij na innych stronach

  • 0
3 godziny temu, Trokuszek_PL napisał:

No właśnie więc @BimberDziadka1 to wina leży po twojej stronie. Pewnie napisałeś tak bo chciałeś żeby @OliwierGL uznał mój skrypt za gorszy O_O   

Nie zależy mi na tym, żeby wybrał mój skrypt. Zadał pytanie, wysłałem skrypt, ale nikomu nic nie narzucam. Skoro u Was drop działał to widocznie u mnie coś było nie tak. Luzik chłopaki ;)

Odnośnik do komentarza
https://skript.pl/temat/38852-stoniarka/#findComment-244702
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ę...