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

[Szukam] Plugin na prezenty


Rekomendowane odpowiedzi

Opublikowano

Szukam pluginu na prezenty, a konkretniej to najlepiej, żeby był:

- drop do ustawienia w configu;

- możliwość wycraftowania prezentu;

- możliwość wydropienia lub znalezienia prezentu gdzieś na świecie.

Za pomoc dam lajki, żebyście mieli większy słeg.

tenor.gif

 

Opublikowano

Masz ale skrypt:

Options:
        # Z czego maja dropic prezenty (stone, dirt, cobblestone, grass)
        # Nazwa swiata/mapy na ktorej maja dropic prezenty
        # Szansa na drop prezentu (0.3 polecane na survival/hardcore, 1-2 dla serwerow latwych)
        # Nick gracza ktorego skin glowy wyglada jak prezent (standardowo polecam CruXXx)
        blocks: stone
        worlds: ustawswiat
        chance: 0.3
        player: CruXXx


        # Powiadomienie dla gracza kiedy rozpakowywuje prezent
        # Powiadomienie dla gracza kiedy dropnie prezent z bloku
        otwarcie: &3Ciekawe co dostane..
        wydrapia: &3Hol, hol, hol! Znalazles &6prezent


        # Standardowy item ktory dropi za kazdym razem
        # (musisz wpisac profesjonalna nazwe przedmiotu lub jego ID)
        item0: cookie named "&6Swiateczne ciastko"


        # Pozostale itemy oraz ich szanse dropu
        # (musisz wpisac profesjonalna nazwe przedmiotu lub jego ID)
        # (jesli chcesz ustawic wlasna nazwe wydropionemu przedmiotowi skorzystaj ze wzoru powyzej)
        item1: 47
        chance1: 7


        item2: 322
        chance2: 8


        item3: 10 46
        chance3: 3


        item4: 41
        chance4: 5


        item5: 116
        chance5: 4


        # Dodanie pieniedzy graczowi oraz szansa na to, po otworzeniu prezentu
        money: 0
        chancemoney: 0


        # Wygranie przez gracza uprawnienia/permission oraz szansa na to, po otworzeniu prezentu
        permi: permission
        chancepermi: 0


#--------------------------------------------------
Variables:
        {gifts} = true


#--------------------------------------------------


on mine of {@blocks}:
        if world is "{@worlds}":
                if player is holding any pickaxe:
                        chance of {@chance}%:
                                if {gifts} is true:
                                        console command "give %player% 397:3 1 player:{@player} name:&cPrezent lore:&8Postaw_na_ziemii_w_bezpiecznym|&8miejscu,_a_nastepnie_kliknij_&7PPM|&8na_prezent_trzymajac_w_rece_nozyce|&8aby_zobaczyc_co_jest_w_srodku_|&cM&2e&cr&2r&cy_&2C&ch&2r&ci&2s&ct&2m&ca&2s"
                                        send "{@wydrapia}"
                                        stop
                                else:
                                        stop
on place of head:
        if player is holding player head:
                if name of player's tool is "&cPrezent":
                        play raw sound "random.pop" at player with pitch 1 volume 1
                        set {prezent.%location%} to location of event-block
                        stop
on rightclick on head with shears:
        if location of block is {prezent.%location%}:
                delete {prezent.%location%}
                play raw sound "mob.sheep.shear" at player with pitch 1 volume 1
                set event-block to air
                send "{@otwarcie}"
                drop {@item0}
                chance of {@chance1}%:
                        drop {@item1}
                else:
                        chance of {@chance2}%:
                                drop {@item2}
                        else:
                                chance of {@chance3}%:
                                        drop {@item3}
                                else:
                                        chance of {@chance4}%:
                                                drop {@item4}
                                        else:
                                                chance of {@chance5}%:
                                                        drop {@item5}
                chance of {@chancemoney}%:
                        console command "/eco give %player% {@money}"
                else:
                        chance of {@chancepermi}%:
                                console command "/pex user %player% add {@permi}"
                                console command "/manuaddp %player% {@permi}"
                wait 1 second
                play raw sound "mob.villager.idle" at player with pitch 1 volume 1
                stop
on mine of head:
        if location of block is {prezent.%location%}:
                cancel event
                set event-block to air
                delete {prezent.%location%}
                console command "give %player% 397:3 1 player:{@player} name:&cPrezent lore:&8Postaw_na_ziemii_w_bezpiecznym|&8miejscu,_a_nastepnie_kliknij_&7PPM|&8na_prezent_trzymajac_w_rece_nozyce|&8aby_zobaczyc_co_jest_w_srodku_|&cM&2e&cr&2r&cy_&2C&ch&2r&ci&2s&ct&2m&ca&2s"
                stop
on explode:
        if entity is TNT or creeper:
                loop blocks in radius 10:
                        if loop-block is head:
                                if location of loop-block is {prezent.%location%}:
                                        delete {prezent.%location%}
                                        set loop-block to air


command /gifts [<text>] [<text>]:
        aliases: prezenty, prezent, gift
        trigger:
                if arg 2 is not set:
                        if arg 1 is set:
                                if argument 1 is "off":
                                        if player has permission "christmasgifts.command.off" or "christmasgifts.*":
                                                set {gifts} to false
                                                broadcast "&3Drop prezentow zostal wylaczony przez &6%player%"
                                                stop
                                        else:
                                                send "&cNie masz uprawnien do tej komendy!"
                                                stop
                                if argument 1 is "on":
                                        if player has permission "christmasgifts.command.on" or "christmasgifts.*":
                                                set {gifts} to true
                                                broadcast "&3Drop prezentow zostal wlaczony przez &6%player%"
                                                stop           
                                        else:
                                                send "&cNie masz uprawnien do tej komendy!"
                                                stop
                                if argument 1 is "help":
                                        if player has permission "christmasgifts.command.help" or "christmasgifts.*":
                                                send "&8=============== &cChristmas Gifts &8==============="
                                                send "&cM&2e&cr&2r&cy &2C&ch&2r&ci&2s&ct&2m&ca&2s"
                                                send "&8~Makhart"
                                                send "&c/prezent help &8- pokazuje komendy"
                                                send "&c/prezent &8- daje prezent"
                                                send "&c/prezent on &8- wlacza drop prezentow"
                                                send "&c/prezent off &8- wylacza drop prezentow"
                                                send "&c/prezent <nick> &8- daje prezent danemu graczowi"
                                                send "&c/prezent <nick <ilosc> &8- daje wybrana ilosc prezetow danemu graczowi"
                                                send "&8=============== &cChristmas Gifts &8==============="
                                                stop
                                        else:
                                                send "&cNie masz uprawnien do tej komendy!"
                                                stop
                                if arg 1 is not "on" or "off" or "help":
                                        if player has permission "christmasgifts.command.give" or "christmasgifts.*":
                                                console command "give %arg 1% 397:3 1 player:{@player} name:&cPrezent lore:&8Postaw_na_ziemii_w_bezpiecznym|&8miejscu,_a_nastepnie_kliknij_&7PPM|&8na_prezent_trzymajac_w_rece_nozyce|&8aby_zobaczyc_co_jest_w_srodku_|&cM&2e&cr&2r&cy_&2C&ch&2r&ci&2s&ct&2m&ca&2s"
                                                send "&7Mikolaj podarowal prezent"
                                                stop
                                        else:
                                                send "&cNie masz uprawnien do tej komendy!"
                                                stop
                        else:
                                if player has permission "christmasgifts.command.give" or "christmasgifts.*":
                                        console command "give %player% 397:3 1 player:{@player} name:&cPrezent lore:&8Postaw_na_ziemii_w_bezpiecznym|&8miejscu,_a_nastepnie_kliknij_&7PPM|&8na_prezent_trzymajac_w_rece_nozyce|&8aby_zobaczyc_co_jest_w_srodku_|&cM&2e&cr&2r&cy_&2C&ch&2r&ci&2s&ct&2m&ca&2s"
                                        send "&7Mikolaj podarowal prezent"
                                        stop
                                else:
                                        send "&cNie masz uprawnien do tej komendy!"
                                        stop
                else:
                        if arg 1 is set:
                                if player has permission "christmasgifts.command.give" or "christmasgifts.*":
                                        console command "give %arg 1% 397:3 %arg 2% player:{@player} name:&cPrezent lore:&8Postaw_na_ziemii_w_bezpiecznym|&8miejscu,_a_nastepnie_kliknij_&7PPM|&8na_prezent_trzymajac_w_rece_nozyce|&8aby_zobaczyc_co_jest_w_srodku_|&cM&2e&cr&2r&cy_&2C&ch&2r&ci&2s&ct&2m&ca&2s"
                                        send "&7Mikolaj podarowal prezent"
                                        stop
                                else:
                                        send "&cNie masz uprawnien do tej komendy!"
                                        stop

Bez craftingu, dropi ze stone :)

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...