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

Skrypt na Lucky Block.


Przykładowy

Rekomendowane odpowiedzi

Opublikowano

Witaj xD.

Chciałeś kiedyś mieć na swoim serwerze Lucky Block?

 

Skrypt zawiera:

- Crafting Lucky Bloku.

- Lucky Blok.

- I oczywiście drop z Lucky Blocku.

 

Ten kod jest dla ciebie :).

Nie ma żadnych błędów, jest testowany i używany :).

Pamiętaj tylko dać like :D.

To do:

--- Fajorkwerk po zniszczeniu lucky bloka.

--- Nie wypadanie gąbki po zniszczeniu lucky bloku.

--- Lucky Bloki Premium.

--- Może przedmioty zwiększające ilość serc ^_^?

 

Wersja V.1

 

on script load:
    register new shaped recipe for sponge named "&6&lLucky Block" using cobblestone, diamond, cobblestone, diamond, gold block, diamond, cobblestone, diamond, cobblestone
on place sponge:
    name of player's tool is "&6&lLucky Block":
        set {s.%event-block%} to true
on break sponge:
    if {s.%event-block%} is true:
        set {s.%event-block%} to false
        chance of 40%:
            drop 5 diamonds
            message "&7Brawo! Znalazles &b5 Diamentow&7!"
            stop
        chance of 15%:
            drop 2 sponge named "&6&lLucky Block"
            message "&7Brawo! Znalazles &6&l2 Lucky Bloki&7!"
            stop
        chance of 50%:
            drop 5 emerald
            message "&7Brawo! Znalazles &25 Szmaragdow&7!"
            stop
        chance of 20%:
            drop 1 enchanted golden apple
            message "&7Brawo! Znalazles &6&l1 Koxa&7!"
            stop
        chance of 60%:
            drop 3 golden apple
            message "&7Brawo! Znalazles &63 Zlote jablka&7!"
            stop
        chance of 75%:
            drop chain chestplate of unbreaking 3 and thorns 3 and protection 3 named "&e&lSzczesliwa Zbroja"
            message "&7Brawo! Znalazles &e&lSzczesliwa Zbroje&7!"
            stop
        chance of 75%:
            drop chain helmet of unbreaking 3 and thorns 3 and protection 3 named "&e&lSzczesliwy Helm"
            message "&7Brawo! Znalazles &e&lSzczesliwa Zbroje&7!"
            stop
        chance of 75%:
            drop chain leggings of unbreaking 3 and thorns 3 and protection 3 named "&e&lSzczesliwe Spodnie"
            message "&7Brawo! Znalazles &e&lSzczesliwa Zbroje&7!"
            stop
        chance of 75%:
            drop chain boots of unbreaking 3 and thorns 3 and protection 3 named "&e&lSzczesliwe Buty"
            message "&7Brawo! Znalazles &e&lSzczesliwa Zbroje&7!"
            stop
        chance of 55%:
            drop stone sword of unbreaking 3 and sharpness 4 named "&e&lSzczesliwy Miecz"
            message "&7Brawo! Znalazles &e&lSzczesliwy Miecz&7!"
            stop

 

Wersja V.2

 

 

on script load:
    register new shaped recipe for sponge named "&6&lLucky Block" using cobblestone, diamond, cobblestone, diamond, gold block, diamond, cobblestone, diamond, cobblestone
on place sponge:
    name of player's tool is "&6&lLucky Block":
        set {s.%event-block%} to true
on break sponge:
    if {s.%event-block%} is true:
        play raw sound "random.explode" at player with pitch 1 volume 5
        set {s.%event-block%} to false
        cancel event
        set block to air
        chance of 40%:
            drop 5 diamonds            
            message "&7Brawo! Znalazles &b5 Diamentow&7!"
            stop
        chance of 15%:
            drop 2 sponge named "&6&lLucky Block"
            message "&7Brawo! Znalazles &6&l2 Lucky Blocki&7!"
            stop
        chance of 50%:
            drop 5 emerald
            message "&7Brawo! Znalazles &25 Szmaragdow&7!"
            stop
        chance of 20%:
            drop 1 enchanted golden apple
            message "&7Brawo! Znalazles &6&l1 Koxa&7!"
            stop
        chance of 60%:
            drop 3 golden apple
            message "&7Brawo! Znalazles &63 Zlote jablka&7!"
            stop
        chance of 75%:
            message "&7Brawo! Znalazles &e&lSzczesliwa Zbroje&7!"
            stop
        chance of 75%:
            drop chain helmet of unbreaking 3 and thorns 3 and protection 3 named "&e&lSzczesliwy Helm"
            message "&7Brawo! Znalazles &e&lSzczesliwa Zbroje&7!"
            stop
        chance of 75%:
            drop chain leggings of unbreaking 3 and thorns 3 and protection 3 named "&e&lSzczesliwe Spodnie"
            message "&7Brawo! Znalazles &e&lSzczesliwa Zbroje&7!"
            stop
        chance of 75%:
            drop chain boots of unbreaking 3 and thorns 3 and protection 3 named "&e&lSzczesliwe Buty"
            message "&7Brawo! Znalazles &e&lSzczesliwa Zbroje&7!"
            stop
        chance of 55%:
            drop stone sword of unbreaking 3 and sharpness 4 named "&e&lSzczesliwy Miecz"
            message "&7Brawo! Znalazles &e&lSzczesliwy Miecz&7!"
            stop

 

 

 

Drop i crafting sam możesz sobie zmienić nie :)?

 

Doceń moją prace, nie kopiuj mojego skryptu do innego tematu na mpcforum i nie podszywaj się za autora!

 

Aby skrypt działał potrzebujemy Dodatków do skript:

 

SkriptPlus

SkAddonLib

 

Skrypt będzie aktualizowany

online.png

  • 2 tygodnie później...
  • 10 miesięcy temu...
Opublikowano

UPDATE

--- Jest to najbardziej rozbudowana / lepsza wersja wcześniejszego lucky blocku.

on script load:
    register new shaped recipe for sponge named "&6&lLucky Block" using cobblestone, diamond, cobblestone, diamond, gold block, diamond, cobblestone, diamond, cobblestone
on place sponge:
    name of player's tool is "&6&lLucky Block":
        set {s.%event-block%} to true
on break sponge:
    if {s.%event-block%} is true:
        play raw sound "random.levelup" at player with pitch 1 volume 5
        spawn 10 of particle fireworks Spark:1 offset by 0.5, 1, 0.5 at event-block
        set {s.%event-block%} to false
        cancel event
        set block to air
        set {lucky.%player%} to a random integer between 1 and 35
        if {lucky.%player%} is 1:
            drop 5 diamonds            
            message "&7Brawo! Znalazles &b5 Diamentow&7!"
            stop
        if {lucky.%player%} is 2:
            drop 2 sponge named "&6&lLucky Block"
            message "&7Brawo! Znalazles &6&l2 Lucky Blocki&7!"
            stop
        if {lucky.%player%} is 3:
            drop 5 emerald
            message "&7Brawo! Znalazles &25 Szmaragdow&7!"
            stop
        if {lucky.%player%} is 4:
            drop 1 enchanted golden apple
            message "&7Brawo! Znalazles &6&l1 Koxa&7!"
            stop
        if {lucky.%player%} is 5:
            drop 3 golden apple
            message "&7Brawo! Znalazles &63 Zlote jablka&7!"
            stop
        if {lucky.%player%} is 6:
            drop iron chestplate of unbreaking 3 and thorns 3 and protection 3 named "&e&lSzczesliwy Napiersnik"
            message "&7Brawo! Znalazles &e&lSzczesliwa Zbroje&7!"
            stop
        if {lucky.%player%} is 7:
            drop iron helmet of unbreaking 3 and thorns 3 and protection 3 named "&e&lSzczesliwy Helm"
            message "&7Brawo! Znalazles &e&lSzczesliwa Zbroje&7!"
            stop
        if {lucky.%player%} is 8:
            drop iron leggings of unbreaking 3 and thorns 3 and protection 3 named "&e&lSzczesliwe Spodnie"
            message "&7Brawo! Znalazles &e&lSzczesliwa Zbroje&7!"
            stop
        if {lucky.%player%} is 9:
            drop iron boots of unbreaking 3 and thorns 3 and protection 3 named "&e&lSzczesliwe Buty"
            message "&7Brawo! Znalazles &e&lSzczesliwa Zbroje&7!"
            stop
        if {lucky.%player%} is 10:
            drop stone sword of unbreaking 3 and sharpness 4 named "&e&lSzczesliwy Miecz"
            message "&7Brawo! Znalazles &e&lSzczesliwy Miecz&7!"
            stop
        if {lucky.%player%} is 11:
            poison the player for 30 seconds
            message "&7Brawo! Zostales Otruty!"
            stop
        if {lucku.%player%} is 12:
            drop 32 diamonds
            message "&6BOGACZ!"
            stop
        if {lucky.%player%} is 13:
            drop iron sword of sharpness 1 named "&cUnlucky Miecz"
            message "&7Brawo! Szczescie ci dopisuje"
            stop
        if {lucky.%player%} is 14:
            create an explosion of force 4 at the player
            message "&7BUM!"
            stop
        if {lucky.%player%} is 15:
            apply poison 2 to the player for 1 minute
            message "&7Cos sie stalo?"
            stop
        if {lucky.%player%} is 16:
            apply nausea 3 to the player for 10 seconds
            apply weakness to the player for 30 seconds
            apply blindness to the player for 10 seconds
            message "&7Ooo..."
            stop
        if {lucky.%player%} is 17:
            push the player upwards at speed 5
            message "&7..."
            stop
        if {lucky.%player%} is 18:
            strike lightning at the player
            message "&7Lubisz pioruny?"
            stop
        if {lucky.%player%} is 19:
            drop 1 diamond sword of Sharpness 3 named "&cMiecz &eMieczow"
            message "&7Cos jak excalibur... tylko gorszy"
            stop
        if {lucky.%player%} is 20:
            drop 10 diamonds
            drop 10 emeralds
            drop 10 gold ingot
            drop 10 iron ingot
            drop 10 coal
            spawn a creeper at the player's location
            message "&7Za bogactwo trzeba placic"
            stop
        if {lucky.%player%} is 21:
            drop 5 iron ingot
            message "&7Brawo! Znalazles &95 sztabek zlota&7!"
            stop
        if {lucky.%player%} is 22:
            drop 2 tnt
            message "&7Brawo! Znalazles &cTNT&7!"
            stop
        if {lucky.%player%} is 23:
            drop 10 obsidian
            message "&7Brawo! Znalazles &5Obsidian&7!"
            stop
        if {lucky.%player%} is 24:
            drop 5 gold ingot
            message "&7Brawo! Znalazles &6Zloto&7!"
            stop
        if {lucky.%player%} is 25:
            drop 1 ender pearl
            message "&7Brawo! Znalazles &5Perle endermana!"
            stop
        if {lucky.%player%} is 26:
            message "&cUnlucky Block&8>> witaj, mam dla ciebie niespodzianke"
            wait 1 second
            strike lightning at the player
            wait 1 second
            spawn a creeper at the player's location
            message "&cUnlucky Block&8>> podoba sie?"
            stop
        if {lucky.%player%} is 27:
            message "&eLucky Block&8>> witaj, mam dla ciebie niespodzianke"
            wait 1 second
            drop 10 diamonds
            drop 10 emeralds
            drop 10 gold ingots
            drop 10 iron ingots
            wait 1 second
            drop 2 sponge named "&6&lLucky Block"
            message "&eLucky Block&8>> podoba sie?"
            stop
        if {lucky.%player%} is 28:
            spawn a creeper at the event-block
            spawn a powered creeper at the event-block
            message "&7BADABUM!!!"
            stop
        if {lucky.%player%} is 29:
            spawn a 10 sheep at the event-block
            message "&7Owcze!"
            stop
        if {lucky.%player%} is 30:
            drop 1 diamond sword named "&7Zestaw &ePrzetrwania" with lore "&7Przetrwasz!"
            drop 1 diamond pickaxe named "&7Zestaw &ePrzetrwania" with lore "&7Przetrwasz!"
            drop 1 diamond axe named "&7Zestaw &ePrzetrwania" with lore "&7Przetrwasz!"
            drop 1 diamond shovel named "&7Zestaw &ePrzetrwania" with lore "&7Przetrwasz!"
            message "&7Brawo! Znalazles zestaw przetrwania!"
        if {lucky.%player%} is 31:
            drop 64 stone named "&7Zestaw &eBudowniczego" with lore "&7Zbudujesz wszystko!"
            drop 64 stone named "&7Zestaw &eBudowniczego" with lore "&7Zbudujesz wszystko!"
            drop 64 wood named "&7Zestaw &eBudowniczego" with lore "&7Zbudujesz wszystko!"
            message "&7Brawo! Znalazles zestaw przetrwania!"
        if {lucky.%player%} is 32:
            drop 1 carrot named "&7Zestaw &eFarmera" with lore "&7Zasadzisz wszystko!"
            drop 1 melon named "&7Zestaw &eFarmera" with lore "&7Zasadzisz wszystko!"
            drop 1 potato named "&7Zestaw &eFarmera" with lore "&7Zasadzisz wszystko!"
            drop 1 iron hoe named "&7Zestaw &eFarmera" with lore "&7Zasadzisz wszystko!"
            drop 1 pumpkin named "&7Zestaw &eFarmera" with lore "&7Zasadzisz wszystko!"
            drop 1 seeds named "&7Zestaw &eFarmera" with lore "&7Zasadzisz wszystko!"
            message "&7Brawo! Znalazles zestaw farmera!"
        if {lucky.%player%} is 33:
            drop 1 dirt
            spawn creeper at the player's location
            spawn zombie at the event-block
            spawn skeleton at the event-block
            message "&7Witaj!"
        if {lucky.%player%} is 34:
            drop 1 diamond sword of Sharpness 4 and KnockBack 2 named "&eExcalibur" with lore "&eOMG WTF LOL WOW"
            message "&7Brawo! Znalazles Excalibur!"
            stop
        if {lucky.%player%} is 35:
            spawn 1 creeper at the player's location
            drop 1 diamond
            message "&7Brawo!&c ..."
        if {lucky.%player%} is 36:
            place bedrock at the player's location
            message "&a:)"
        if {lucky.%player%} is 37:
            drop 64 dirt
            message "&7Dirt, dirt, dirt"
        if {lucky.%player%} is 38:
            spawn 1 wolf named at the event block
            message "&bNajlepszym przyjacielem człowieka jest pies!"
        if {lucky.%player%} is 39:
            send "&6Bog&7>> &fWitaj! Spłoniesz!
            place lava at the player's location
        if {lucky.%player%} is 40:
            drop 1 coal
            wait 1 second
            drop 1 dirt
            wait 1 second
            drop 1 cobblestone
command /lucky [<text>]:
    trigger:
        if arg 1 is not set:
            send "&8<===&6&lLuckyPomoc&8===>"
            send "&6/lucky crafting &8<== Informacje na temat craftingu"
            send "&6/lucky autor &8<== Autor skryptu"
            send "&6/lucky wersja &8<== Wersja skryptu"
        if arg 1 is "wersja":
            send "&8Wersja skryptu:"
            send "&6LuckyBlock for MPC - V.10"
        if arg 1 is "autor":
            send "&8Autorem skryptu jest:"
            send "&6jemenik &8/ &6Przykładowy"
        if arg 1 is "crafting":
            wait 1 tick
            open chest with 3 rows named "&eCrafting LuckyBlocku" to player
            format slot 4 of player with 1 of cobblestone to be unstealable
            format slot 5 of player with 1 of diamond to be unstealable
            format slot 6 of player with 1 of cobblestone to be unstealable
            format slot 13 of player with 1 of diamond to be unstealable
            format slot 14 of player with 1 of gold block to be unstealable
            format slot 15 of player with 1 of diamond to be unstealable
            format slot 22 of player with 1 of cobblestone to be unstealable
            format slot 23 of player with 1 of diamond to be unstealable
            format slot 24 of player with 1 of cobblestone to be unstealable

 

 

online.png

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...