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/Skrypt na Cobblex i Generator Stone.


Rekomendowane odpowiedzi

  • 2 tygodnie później...
Opublikowano

Skrypt działa przynajniej mi :)

 

options: <!--- Linijka dodaje nam opcje do skryptu.-------!>
    CobbleX: smooth bricks
    wymagane_cmd: 576 cobblestone
    obrazenia: 10
    enchant: thorns 3
    nazwa: "&7Cobble&aX"
    cWiad: &aPostawiles &7&lCobble&a&lX&f!
    # Zelazo:
    dIron: 20
    # Zloto:
    dGold: 15
    # Diamenty:
    dDiax: 10
    # Emeraldy:
    dEmer: 10
    #Perly kresu:
    dPerla: 10
    #Biblioteczki:
    dBiblio: 10
    #Obsydian:
    dObsy: 50
    #Wegiel:
    dWegiel: 70
    mIron: &bTwoja niespodzianka to: &7Zelazo
    mGold: &bTwoja niespodzianka to: &6Zloto
    mDiax: &bTwoja niespodzianka to: &bDiament
    mEmer: &bTwoja niespodzianka to: &aEmerald
    mPerla: &bTwoja niespodzianka to: &9Perla Kresu
    mBiblio: &bTwoja niespodzianka to: &cBiblioteczka
    mObsy: &bTwoja niespodzianka to: &3Obsydian
    mWegiel: &bTwoja niespodzianka to: &0Wegiel
    tag: &b[&7Cobble&aX&b]
on load:
set {_nazwa} to "&7Cobble&aX"
Recipe.new{ {_nazwa} }
{_nazwa}.Recipe.registerIngredient{1, 64 cobblestone}
{_nazwa}.Recipe.registerIngredient{2, 64 cobblestone}
{_nazwa}.Recipe.registerIngredient{3, 64 cobblestone}
{_nazwa}.Recipe.registerIngredient{4, 64 cobblestone}
{_nazwa}.Recipe.registerIngredient{5, 64 cobblestone}
{_nazwa}.Recipe.registerIngredient{6, 64 cobblestone}
{_nazwa}.Recipe.registerIngredient{7, 64 cobblestone}
{_nazwa}.Recipe.registerIngredient{8, 64 cobblestone}
{_nazwa}.Recipe.registerIngredient{9, 64 cobblestone}
{_nazwa}.Recipe.registerResult{4 decorated bricks of thorns 3 named "&7Cobble&aX"}
{_nazwa}.Recipe.register

on place of decorated bricks:
    send "{@cWiad}"
    
on mine decorated bricks:
    if player's gamemode is survival:
        if player's tool is pickaxe:
            set event-block to air
            cancel event
            chance of {@dIron}%:
                give 1 iron ingot to the player
                send "{@tag} {@mIron}"
            chance of {@dGold}%:
                give 1 gold ingot to the player
                send "{@tag} {@mGold}"
            chance of {@dDiax}%:
                give 1 diamond to the player
                send "{@tag} {@mDiax}"
            chance of {@dEmer}%:
                give 1 emerald to the player
                send "{@tag} {@mEmer}"
            chance of {@dPerla}%:
                give 1 ender pearl to the player
                send "{@tag} {@mPerla}"
            chance of {@dBiblio}%:
                give 1 bookshelf to the player
                send "{@tag} {@mBiblio}"
            chance of {@dObsy}%:
                give 1 obsidian to the player
                send "{@tag} {@mObsy}"
            chance of {@dWegiel}%:
                give 1 coal to the player
                send "{@tag} {@mWegiel}"

 

Opublikowano

Już nwm czy ja źle wgrywam te skrypty czy co bo żaden nie działa mi :(

Tworze notatnik wklejam zawartość w tym przypadku to:

 

#Zakaz handlowania i kopiowania kodu przez autora.
#Na wersje 2.0.2 skriptu.
#Wersja: beta 1.0
#Co w następnym update:
#    - Mozliwość craftowania w crafting table
#    - Statystkyki na swiat i na gracz'a
#    - Dodania ilość wypadania np: 3 iron ingot
variables:
        {cobblex.%player%} = 1
command /cobblex:
        permission: cobblex.use
        trigger:
                player has 576 cobblestone:
                        remove 576 cobblestone from player
                        clear {cobblex.%player%}
                        wait a tick
                        set {cobblex.%player%} to a random integer from 1 to 3
                        if {cobblex.%player%} is 1:
                                send "&aDostales 1 cobblex!"
                                give a 129 of sharpness 5 named "&2CobbleX" to the player
                        if {cobblex.%player%} is 2:
                                send "&aDostales 2 cobblex!"
                                give a 129 of sharpness 5 named "&2CobbleX" to the player
                        if {cobblex.%player%} is 3:
                                send "&aDostales 3 cobblex!"
                                give a 129 of sharpness 5 named "&2CobbleX" to the player
                                give a 129 of sharpness 5 named "&2CobbleX" to the player
                                give a 129 of sharpness 5 named "&2CobbleX" to the player
                else:
                        send "&4Blad:&cNie posiadasz 9 stakow cobblestone!."
on rightclick:
        player is holding a emerald ore named "&2CobbleX":
                give a random item of {cobblelose::*} to player
                send "&aDostales przedmiot!"
                wait a tick
                remove 1 129 of sharpness 5 named "&2CobbleX" from player
command /cobblea [<text="help">] [<items>]:
        permission: cobble.admin
        trigger:
                argument 1 is not "help", "add" or "remove":
                        send "&4Blad:&cNieznana komenda,lub zla nazwa item'a !"
                        stop
                argument 1 is "help":
                        send "&c ==---( &4CobbleX Admin )&c---==="
                        send "&4/cobblea add < Item > -&cDodanie nowego item'a do losowania."
                        send "&4/cobblea remove < Item > -&cUsuwanie item'a z losowania"
                        send "&4Lista item'ow z losowania:&c %{cobblelose::*}%"
                        send "&4Pamietaj ze aby dodac item musi byc po angielsku!."
                        send "&4Skript by *RadIoActiVe"
                argument 1 is "add":
                        if argument 2 is not set:
                                send "&4Blad:&cMusisz wpisac nazwe przedmiotu!"
                        else:
                                add argument 2 to {cobblelose::*}
                                send "&aDodano ' %arg 2% ' do cobblex"
                argument 1 is "remove":
                        if argument 2 is not set:
                                send "&4Blad:&cMusisz wpisac nazwe przedmiotu!"
                        else:
                                remove argument 2 from {cobblelose::*}
                                send "&cUsunieto ' %arg 2% ' z cobblex"

zapisuje jako asd.sk wrzucam do skrypt robię reload a komenda /cobblex nadal nie działa :(

 

 

Opublikowano

Już nwm czy ja źle wgrywam te skrypty czy co bo żaden nie działa mi :(

Tworze notatnik wklejam zawartość w tym przypadku to:

zapisuje jako asd.sk wrzucam do skrypt robię reload a komenda /cobblex nadal nie działa :(

 

Skrypty sie pisze w Notepad++ a nie w notatniku ;F

Kocham mpcforum.pl!!!

18706.png

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...