Skocz do zawartości
  • 0

Pomoże ktoś z craftingami?


Pytanie

Siemaneczko ,otóż problem jest w tym ,że potrzebuję skrypt na to ,że jak się ubierze buty z nazwą taką która jest w skrypcie to da szybkość 6 ,a jak się uderzy kogoś patykiem z nazwą ze skryptu to zatruwa tą osobę którą się zaatakowało ,i jeszcze czy mógłby ktoś znaleźć błąd ? bo pisze ,że jest 1 błąd ,napisałbym co pisze w konsolce ale ten skrypt za duży jest i mi go nie wyświetla całego

Spoiler

on script load:
    register new shaped recipe for end stone named "&8» &eStoniarka" using stone, stone, stone, stone, piston base, stone, stone, stone, stone

every 1 real second:
        loop {stone::*}:
                if block above loop-value is air:
                        set block above loop-value to stone
on place of end stone:
    if block at event-location is end stone:
        send " &8» &eGenerator &7kamienia &ezostal &7stworzony."
        set block above event-location to stone
on break of end stone:
    if block at event-location is end stone:
        cancel event
        set event-block to air
        send " &8» &eGenerator &7kamienia &ezostal &7usuniety."
        drop 1 end stone named "&8» &eStoniarka" with lore "&8» &ePostaw, &7aby &estworzyc &7generator &ekamienia."
on break of stone:
    set {_loc.%event-location%} to event-location
    wait 1.0 seconds
    if block under {_loc.%event-location%} is end stone:
        set block at {_loc.%event-location%} to stone
on script load:
    register new shaped recipe for ender chest named "&8» &eEnderchest" using obsidian, obsidian, obsidian, obsidian, ender pearl, obsidian, obsidian, obsidian, obsidian
on script load:
        register new shaped recipe for emerald ore named "&8» &eKOPACZ FOSY" using stone, stone, stone, stone, 278, stone, stone, stone, stone
on place of emerald ore:
    if player's tool is emerald ore named "&8» &eKOPACZ FOSY":
        loop blocks under event-block:
            if loop-block is bedrock:
                stop
            set loop-block to air
command /c1:
    trigger:
        wait 5 tick
        open chest with 6 rows named "&8» &c&lAUTOMATYCZNY BOYFARMER" to player
        wait 5 tick
        format slot 10 of player with 1 of obsidian to be unstealable
        format slot 11 of player with 1 of obsidian to be unstealable
        format slot 12 of player with 1 of obsidian to be unstealable
        format slot 19 of player with 1 of obsidian to be unstealable
        format slot 20 of player with 1 of lava bucket to be unstealable
        format slot 21 of player with 1 of obsidian to be unstealable
        format slot 28 of player with 1 of obsidian to be unstealable
        format slot 29 of player with 1 of obsidian to be unstealable
        format slot 52 of player with 1 of book named "&ePrzejdz &7do &enastepnego &7craftingu" to run [execute player command "/c2"]
        format slot 30 of player with 1 of obsidian to be unstealable
        format slot 23 of player with 1 of ender portal frame named "&8» &e&lBOYFAMER" to be unstealable
        format slot 53 of player with 1 of wooden button named "&e&lPOWROT DO MENU" to run [execute player command "/craftingi"]
command /c2:
    trigger:
        wait 5 tick
        open chest with 6 rows named "&8» &c&lAUTOMATYCZNY SANDFARMER" to player
        wait 5 tick
        format slot 10 of player with 1 of sand to be unstealable
        format slot 11 of player with 1 of sand to be unstealable
        format slot 12 of player with 1 of sand to be unstealable
        format slot 19 of player with 1 of sand to be unstealable
        format slot 20 of player with 1 of lava bucket to be unstealable
        format slot 21 of player with 1 of sand to be unstealable
        format slot 28 of player with 1 of sand to be unstealable
        format slot 29 of player with 1 of sand to be unstealable
        format slot 30 of player with 1 of sand to be unstealable
        format slot 52 of player with 1 of book named "&ePrzejdz &7do &enastepnego &7craftingu" to run [execute player command "/c3"]
        format slot 23 of player with 1 of sandstone named "&8» &e&lSANDFARMER" to be unstealable
        format slot 53 of player with 1 of wooden button named "&e&lPOWROT DO MENU" to run [execute player command "/craftingi"]
command /c3:
    trigger:
        wait 5 tick
        open chest with 6 rows named "&8» &c&lAUTOMATYCZNY KOPACZ FOSY" to player
        wait 5 tick
        format slot 10 of player with 1 of stone to be unstealable
        format slot 11 of player with 1 of stone to be unstealable
        format slot 12 of player with 1 of stone to be unstealable
        format slot 19 of player with 1 of stone to be unstealable
        format slot 20 of player with 1 of 278 to be unstealable
        format slot 21 of player with 1 of stone to be unstealable
        format slot 28 of player with 1 of stone to be unstealable
        format slot 29 of player with 1 of stone to be unstealable
        format slot 30 of player with 1 of stone to be unstealable
        format slot 52 of player with 1 of book named "&ePrzejdz &7do &enastepnego &7craftingu" to run [execute player command "/c4"]
        format slot 23 of player with 1 of 129 named "&8» &e&lKOPACZ FOSY" to be unstealable
        format slot 53 of player with 1 of wooden button named "&e&lPOWROT DO MENU" to run [execute player command "/craftingi"]
command /c4:
    trigger:
        wait 5 tick
        open chest with 6 rows named "&8» &c&lENDERCHEST" to player
        wait 5 tick
        format slot 10 of player with 1 of obsidian to be unstealable
        format slot 11 of player with 1 of obsidian to be unstealable
        format slot 12 of player with 1 of obsidian to be unstealable
        format slot 19 of player with 1 of obsidian to be unstealable
        format slot 20 of player with 1 of ender pearl to be unstealable
        format slot 21 of player with 1 of obsidian to be unstealable
        format slot 28 of player with 1 of obsidian to be unstealable
        format slot 29 of player with 1 of obsidian to be unstealable
        format slot 30 of player with 1 of obsidian to be unstealable
        format slot 52 of player with 1 of book named "&ePrzejdz &7do &enastepnego &7craftingu" to run [execute player command "/c5"]
        format slot 23 of player with 1 of ender chest named "&8» &e&lENDERCHEST" to be unstealable
        format slot 53 of player with 1 of wooden button named "&e&lPOWROT DO MENU" to run [execute player command "/craftingi"]
command /c5:
    trigger:
        wait 5 tick
        open chest with 6 rows named "&8» &c&lSTONIARKA" to player
        wait 5 tick
        format slot 10 of player with 1 of stone to be unstealable
        format slot 11 of player with 1 of stone to be unstealable
        format slot 12 of player with 1 of stone to be unstealable
        format slot 19 of player with 1 of stone to be unstealable
        format slot 20 of player with 1 of piston base to be unstealable
        format slot 21 of player with 1 of stone to be unstealable
        format slot 28 of player with 1 of stone to be unstealable
        format slot 29 of player with 1 of stone to be unstealable
        format slot 30 of player with 1 of stone to be unstealable
        format slot 23 of player with 1 of end stone named "&8» &e&lSTONIARKA" to be unstealable
        format slot 52 of player with 1 of book named "&ePrzejdz &7do &enastepnego &7craftingu" to run [execute player command "/c6"]
        format slot 53 of player with 1 of wooden button named "&e&lPOWROT DO MENU" to run [execute player command "/craftingi"]
command /c6:
    trigger:
        wait 5 tick
        open chest with 6 rows named "&8» &c&lPlecak" to player
        wait 5 tick
        format slot 10 of player with 1 of leather to be unstealable
        format slot 11 of player with 1 of leather to be unstealable
        format slot 12 of player with 1 of leather to be unstealable
        format slot 19 of player with 1 of leather to be unstealable
        format slot 20 of player with 1 of chest to be unstealable
        format slot 21 of player with 1 of leather to be unstealable
        format slot 28 of player with 1 of leather to be unstealable
        format slot 29 of player with 1 of leather to be unstealable
        format slot 30 of player with 1 of leather to be unstealable
        format slot 23 of player with 1 of chest named "&8» &e&lPlecak" to be unstealable
        format slot 52 of player with 1 of book named "&ePrzejdz &7do &enastepnego &7craftingu" to run [execute player command "/c7"]
        format slot 53 of player with 1 of wooden button named "&e&lPOWROT DO MENU" to run [execute player command "/craftingi"]
command /c7:
    trigger:
        wait 5 tick
        open chest with 6 rows named "&8»&c&lRzucane TNT&8«" to player
        wait 5 tick
        format slot 10 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 11 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 12 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 19 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 20 of player with 1 of tnt to be unstealable
        format slot 21 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 28 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 29 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 30 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 23 of player with 1 of tnt named "&8»&c&lRzucane TNT&8«" to be unstealable
        format slot 53 of player with 1 of wooden button named "&e&lPOWROT DO MENU" to run [execute player command "/craftingi"]
        format slot 52 of player with 1 of book named "&ePrzejdz &7do &enastepnego &7craftingu" to run [execute player command "/c8"]

command /c8:
    trigger:
        wait 5 tick
        open chest with 6 rows named "&8» &c&lNieskonczone Miesko" to player
        wait 5 tick
        format slot 10 of player with 1 of emerald to be unstealable
        format slot 11 of player with 1 of emerald to be unstealable
        format slot 12 of player with 1 of emerald to be unstealable
        format slot 19 of player with 1 of emerald to be unstealable
        format slot 20 of player with 1 of steak to be unstealable
        format slot 21 of player with 1 of emerald to be unstealable
        format slot 28 of player with 1 of emerald to be unstealable
        format slot 29 of player with 1 of emerald to be unstealable
        format slot 30 of player with 1 of emerald to be unstealable
        format slot 23 of player with 1 of steak named "&8» &eNieskonczone &7Miesko" to be unstealable
        format slot 53 of player with 1 of wooden button named "&e&lPOWROT DO MENU" to run [execute player command "/craftingi"]
        format slot 52 of player with 1 of book named "&ePrzejdz &7do &enastepnego &7craftingu" to run [execute player command "/c9"]

command /c9:
    trigger:
        wait 5 tick
        open chest with 6 rows named "&a✔ &8»&c&lMagiczne Pioro&8« &a✔" to player
        wait 5 tick
        format slot 10 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 11 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 12 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 19 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 20 of player with 1 of feather to be unstealable
        format slot 21 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 28 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 29 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 30 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 23 of player with 1 of feather named "&a✔ &8»&f&lMagiczne Pioro&8« &a✔" to be unstealable
        format slot 52 of player with 1 of book named "&ePrzejdz &7do &enastepnego &7craftingu" to run [execute player command "/c10"]
        format slot 53 of player with 1 of wooden button named "&e&lPOWROT DO MENU" to run [execute player command "/craftingi"]

command /craftingi:
    trigger:
        wait 5 tick
        open chest with 1 row named "&c&lCrafting przemiotow" to player
        wait 5 tick
        format slot 0 of player with 1 of 120 named "&8» &e&lBOYFARMER" to run [execute player command "/c1"]
        format slot 1 of player with 1 of sandstone named "&8» &e&lSANDFARMER" to run [execute player command "/c2"]
        format slot 2 of player with 1 of emerald ore named "&8» &e&lKOPACZ FOSY" to run [execute player command "/c3"]
        format slot 3 of player with 1 of ender chest named "&8» &e&lENDERCHEST" to run [execute player command "/c4"]
        format slot 4 of player with 1 of end stone named "&8» &e&lSTONIARKA" to run [execute player command "/c5"]
        format slot 5 of player with 1 of chest named "&8» &e&lPlecak" to run [execute player command "/c6"]
        format slot 6 of player with 1 of tnt named "&8»&c&lRzucane TNT&8«" to run [execute player command "/c7"]
        format slot 7 of player with 1 of steak named "&8» &eNieskonczone &7Miesko" to run [execute player command "/c8"]
        format slot 8 of player with 1 of portal named "&8» &e&lStrona 2" to run [execute player command "/craftingi2"]

command /c10:
    trigger:
        wait 5 tick
        open chest with 6 rows named "&a✔&f&lButy szybkosci&a✔" to player
        wait 5 tick
        format slot 10 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 11 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 12 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 19 of player with 1 of feather to be unstealable
        format slot 20 of player with 1 of diamond boots to be unstealable
        format slot 21 of player with 1 of feather to be unstealable
        format slot 28 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 29 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 30 of player with 1 of dragon egg named "&8»&e&lPANDORA" to be unstealable
        format slot 23 of player with 1 of diamond boots named "&a✔ &8»&f&lButy szybkosci&8« &a✔" to be unstealable
        format slot 52 of player with 1 of book named "&ePrzejdz &7do &enastepnego &7craftingu" to run [execute player command "/c11"]
        format slot 53 of player with 1 of wooden button named "&e&lPOWROT DO MENU" to run [execute player command "/craftingi"]

command /c11:
    trigger:
        wait 5 tick
        open chest with 6 rows named "&8» &c&lZadlo krwiopijcy &8« to player
        wait 5 tick
        format slot 10 of player with 1 of emerald block to be unstealable
        format slot 11 of player with 1 of emerald block to be unstealable
        format slot 12 of player with 1 of emerald block to be unstealable
        format slot 19 of player with 1 of emerald block to be unstealable
        format slot 20 of player with 1 of stick to be unstealable
        format slot 21 of player with 1 of emerald block to be unstealable
        format slot 28 of player with 1 of emerald block to be unstealable
        format slot 29 of player with 1 of emerald block to be unstealable
        format slot 30 of player with 1 of emerald block to be unstealable
        format slot 23 of player with 1 of stick named "&8» &e&lZadlo krwiopijcy &8«" to be unstealable
        format slot 53 of player with 1 of wooden button named "&e&lPOWROT DO MENU" to run [execute player command "/craftingi"]

command /craftingi2:
    trigger:
        wait 5 tick
        open chest with 1 row named "&c&lCrafting przemiotow" to player
        wait 5 tick
        format slot 0 of player with 1 of feather named "&a✔ &8»&f&lMagiczne Pioro&8« &a✔" to run [execute player command "/c9"]
        format slot 1 of player with 1 of diamond boots named "&a✔ &8»&f&lButy szybkosci&8« &a✔" to run [execute player command "/c10"]
        format slot 2 of player with 1 of stick named "&8» &e&lZadlo krwiopijcy &8«" to run [execute player command "/c11"]
        format slot 3 of player with 1 of 35:14 named "&8<----- &c&lW TRAKCIE ROBIENIA &8«" to be unstealable

on script load:
        register new shaped recipe for 24 named "&8» &eSANDFARMER" using 12, 12, 12, 12, lava bucket, 12, 12, 12, 12
on place of 24:
    if player's tool is 24 named "&8» &eSANDFARMER":
        loop blocks under event-block:
            if loop-block is bedrock:
                stop
            set loop-block to sand


on script load:
        register new shaped recipe for 120 named "&8» &eBOYFARMER" using 49, 49, 49, 49, 327, 49, 49, 49, 49

on place of 120:
    if player's tool is 120 named "&8» &eBOYFARMER":
        loop blocks under event-block:
            if loop-block is bedrock:
                stop
            set loop-block to obsidian

on rightclick:
        if name of player's tool is "&8»&c&lRzucane TNT&8«":
                set {tnt.%player%} to true
                shoot a TNT from player with speed 0.7
                remove 1 tnt named "&8»&c&lRzucane TNT&8«" from player
                wait 2 second
                set {tnt.%player%} to false
on place tnt:
        if {tnt.%player%} is true:
                cancel event
on script load:
        register new shaped recipe for TNT of infinity 1 named "&8»&c&lRzucane TNT&8«" using 122, 122, 122, 122, tnt, 122, 122, 122, 122

on script load:
    register new shaped recipe for steak of unbreaking 10 named "&8» &eNieskonczone &7Miesko" with lore "&8» &aMozesz &7je &ajesc &7ciagle!" using emerald, emerald, emerald, emerald, steak, emerald, emerald, emerald, emerald

on eat steak of unbreaking 10:
    if event-item's name is "&8» &eNieskonczone &7Miesko":
        if lore of player's tool is "&8» &eMozesz &7je &ejesc &7ciagle!":
            wait 1 tick
            give 1 steak of unbreaking 10 named "&8» &eNieskonczone &7Miesko" with lore "&8» &eMozesz &7je &ejesc &7ciagle!" to player

on script load:
        register new shaped recipe for feather named "&a✔ &8»&f&lMagiczne Pioro&8« &a✔" using 122, 122, 122, 122, feather, 122, 122, 122, 122

on place:
    if block under event-block is end stone:
        if event-block is not stone:
            cancel event
            send coloured "&8» &7Mozesz &estawiac &7tylko &ekamien&7." to the player

on script load:
        register new shaped recipe for stick named "&8» &e&lZadlo krwiopijcy &8«" with lore "&8» &eUderz &7gracza ,a &ezostanie &7zatruty" using emerald block, emerald block, emerald block, emerald block, stick, emerald block, emerald block, emerald block, emerald block

on script load:
    register new shaped recipe for diamond boots of protection 10 and unbreaking 10 named "&a✔ &8»&f&lButy szybkosci&8« &a✔" using 122, 122, 122, feather, diamond boots, feather, 122, 122, 122

options:
    per: craftowanie.ksiazki
on craft of 386:
    if player has permission "{@per}":
        send ""
    else:
        cancel event
        send "&8» &7Nie &ezadziala &7ci!"

 

Edytowane przez PiTeKLive
Odnośnik do komentarza
https://skript.pl/temat/21910-pomo%C5%BCe-kto%C5%9B-z-craftingami/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
1 godzinę temu, icecreamking1337 napisał:

Daj może normalnie kod a nie wszystkiego po trochu ?

https://code.skript.pl/9FEzqgj8/ dodaj to do kodu

dziękuję to z butami działa jeszcze tylko na ten patyk :) 

Odnośnik do komentarza
https://skript.pl/temat/21910-pomo%C5%BCe-kto%C5%9B-z-craftingami/#findComment-149646
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ę...