Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Plugin na CobbleX 1.10


Aides

Rekomendowane odpowiedzi

Opublikowano

Zrobiłem takie coś, w options dodajesz itemy wg schematu i na dole tez musisz zmienic, jak cos to powiedz to ci dodam wiecej

 

 

 

options:
    item1 : apple 5
    item2 : bedrock 5
    item3 : enderchest 1
    item4 : diamond 3
    item5 : wood 64
    item6 :
    item7 : 
    item8 : 
    item9 : 
    item10 :

on skript load:
    new recipe "cobblex";
    "cobblex".Recipe.registerIngredient{1, 64 cobblestone};
    "cobblex".Recipe.registerIngredient{2, 64 cobblestone};
    "cobblex".Recipe.registerIngredient{3, 64 cobblestone};
    "cobblex".Recipe.registerIngredient{4, 64 cobblestone};
    "cobblex".Recipe.registerIngredient{5, 64 cobblestone};
    "cobblex".Recipe.registerIngredient{6, 64 cobblestone};
    "cobblex".Recipe.registerIngredient{7, 64 cobblestone};
    "cobblex".Recipe.registerIngredient{8, 64 cobblestone};
    "cobblex".Recipe.registerIngredient{9, 64 cobblestone};
    "cobblex".Recipe.registerResult{1 emerald ore named "<gold>CobbleX"};
    "cobblex".Recipe.register{};

on left click:
    if player's tool is emerald ore named "<gold>CobbleX":
        remove emerald ore named "<gold>CobbleX" from player's inventory
        set {CobbleX::liczba} to random integer between 1 and 10
        wait 1 tick
        if {CobbleX::liczba} is 1:
            execute console command "give %player% {@item1}"
        if {CobbleX::liczba} is 2:
            execute console command "give %player% {@item2}"
        if {CobbleX::liczba} is 3:
            execute console command "give %player% {@item3}"
        if {CobbleX::liczba} is 4:
            execute console command "give %player% {@item4}"
        if {CobbleX::liczba} is 5:
            execute console command "give %player% {@item5}"
        if {CobbleX::liczba} is 6:
            execute console command "give %player% {@item6}"
        if {CobbleX::liczba} is 7:
            execute console command "give %player% {@item7}"
        if {CobbleX::liczba} is 8:
            execute console command "give %player% {@item8}"
        if {CobbleX::liczba} is 9:
            execute console command "give %player% {@item9}"
        if {CobbleX::liczba} is 10:
            execute console command "give %player% {@item10}"

 

 

bjk8v7f.png

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...