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

[DL] ChestSurprise - skrypt


Rekomendowane odpowiedzi

Opublikowano

ChestSurprise


Autor : Hubert9004


Wersja : 1.1


Co dodaje skrypt ? : Skrypt dodaje do naszego serwera Skrzynki niespodzianki , to jak by cobblex tylko bardziej rozwinięte 


Co w nowej wersji ? : Dodanie większej ilości skrzynek i urozmaicenie dropu


Kod :



#-------------------------------------------------------#
#Autor - Habek/hubert9004                               #
#Wersja - 1.1 Beta                                      #
#Uszanuj czyjąś prace i czas i zostaw notke o autorze #
#-------------------------------------------------------#

#CobbleChest

options:
CobbleChest: smooth bricks
wymagane_cmd: 576 cobblestone
obrazenia: 10
nazwa: "&8&lCobbleChest"
cWiad: &aPostawiles &8&lCobbleChest!
# Zelazo:
dIron: 5
# Zloto:
dGold: 2.5
# Diamenty:
dDiax: 1
# Emeraldy:
dEmer: 1
#Perly kresu:
dPerla: 0.5
#Biblioteczki:
dBiblio: 0.5
#Obsydian:
dObsy: 5
#Wegiel:
dWegiel: 7
    #Money:
    dMoney: 87.5
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
    mMoney: &bTwoj niespodzianka to: &3Pieniadze
tag: &b[&8&lCobbleChest]
on load:
   set {_nazwa} to "&8&lCobbleChest"
   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 named "&8&lCobbleChest"}
   {_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 {@dMoney}%
                add 100 to player's account
                send "{@tag} {@mMoney}"
   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}"
               
#IronChest

options:
IronChest: smooth bricks
wymagane_cmd: 9 Iron block
obrazenia: 10
nazwa: "&f&lIronChest"
cWiad: &aPostawiles &f&lIronChest!
# Zelazo:
dIron: 10
# Zloto:
dGold: 5
# Diamenty:
dDiax: 2
# Emeraldy:
dEmer: 2
#Perly kresu:
dPerla: 1
#Biblioteczki:
dBiblio: 1
#Obsydian:
dObsy: 10
#Wegiel:
dWegiel: 11
    #Money:
    dMoney: 50
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
    mMoney: &bTwoj niespodzianka to: &3Pieniadze
tag: &b[&f&lIronChest]
on load:
   set {_nazwa} to "&f&lIronChest"
   Recipe.new{ {_nazwa} }
   {_nazwa}.Recipe.registerIngredient{1, 1 Iron block}
   {_nazwa}.Recipe.registerIngredient{2, 1 Iron block}
   {_nazwa}.Recipe.registerIngredient{3, 1 Iron block}
   {_nazwa}.Recipe.registerIngredient{4, 1 Iron block}
   {_nazwa}.Recipe.registerIngredient{5, 1 Iron block}
   {_nazwa}.Recipe.registerIngredient{6, 1 Iron block}
   {_nazwa}.Recipe.registerIngredient{7, 1 Iron block}
   {_nazwa}.Recipe.registerIngredient{8, 1 Iron block}
   {_nazwa}.Recipe.registerIngredient{9, 1 Iron block}
   {_nazwa}.Recipe.registerResult{4 Iron Ore named "&f&lIronChest"}
   {_nazwa}.Recipe.register

on place of Iron Ore:
send "{@cWiad}"

on mine Iron Ore:
if player's gamemode is survival:
  if player's tool is pickaxe:
   set event-block to air
   cancel event
            chance of {@dMoney}%
                add 200 to player's account
                send "{@tag} {@mMoney}"
   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}"
               
#GoldChest

options:
GoldChest: Gold ore
wymagane_cmd: 9 Gold block
obrazenia: 10
nazwa: "&f&lIronChest"
cWiad: &aPostawiles &6&lGoldChest!
# Zelazo:
dIron: 20
# Zloto:
dGold: 10
# Diamenty:
dDiax: 4
# Emeraldy:
dEmer: 4
#Perly kresu:
dPerla: 2
#Biblioteczki:
dBiblio: 2
#Obsydian:
dObsy: 19
#Wegiel:
dWegiel: 20
    #Money:
    dMoney: 11
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
    mMoney: &bTwoj niespodzianka to: &3Pieniadze
tag: &b[&6&lGoldChest]
on load:
   set {_nazwa} to "&6&lGoldChest"
   Recipe.new{ {_nazwa} }
   {_nazwa}.Recipe.registerIngredient{1, 1 Gold block}
   {_nazwa}.Recipe.registerIngredient{2, 1 Gold block}
   {_nazwa}.Recipe.registerIngredient{3, 1 Gold block}
   {_nazwa}.Recipe.registerIngredient{4, 1 Gold block}
   {_nazwa}.Recipe.registerIngredient{5, 1 Gold block}
   {_nazwa}.Recipe.registerIngredient{6, 1 Gold block}
   {_nazwa}.Recipe.registerIngredient{7, 1 Gold block}
   {_nazwa}.Recipe.registerIngredient{8, 1 Gold block}
   {_nazwa}.Recipe.registerIngredient{9, 1 Gold block}
   {_nazwa}.Recipe.registerResult{4 Gold ore named "&6&lGoldChest"}
   {_nazwa}.Recipe.register

on place of Gold ore:
send "{@cWiad}"

on mine Gold ore:
if player's gamemode is survival:
  if player's tool is pickaxe:
   set event-block to air
   cancel event
            chance of {@dMoney}%
                add 400 to player's account
                send "{@tag} {@mMoney}"
   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}"
               
#EmeraldChest

options:
EmeraldChest: Emerald ore
wymagane_cmd: 9 Emerald block
obrazenia: 10
nazwa: "&a&lEmeraldChest"
cWiad: &aPostawiles &a&lEmeraldChest!
# Zelazo:
dIron: 20
# Zloto:
dGold: 10
# Diamenty:
dDiax: 4
# Emeraldy:
dEmer: 4
#Perly kresu:
dPerla: 2
#Biblioteczki:
dBiblio: 2
#Obsydian:
dObsy: 19
#Wegiel:
dWegiel: 20
    #Money:
    dMoney: 11
    #Koxa
    dGoldenApple: 1
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
    mMoney: &bTwoja niespodzianka to: &3Pieniadze
    mGoldenApple : &bTwoja niespodzianka to: &6&lKOX!!!
tag: &b[&6&lEmeraldChest]
on load:
   set {_nazwa} to "&a&lEmeraldChest"
   Recipe.new{ {_nazwa} }
   {_nazwa}.Recipe.registerIngredient{1, 1 Emerald block}
   {_nazwa}.Recipe.registerIngredient{2, 1 Emerald block}
   {_nazwa}.Recipe.registerIngredient{3, 1 Emerald block}
   {_nazwa}.Recipe.registerIngredient{4, 1 Emerald block}
   {_nazwa}.Recipe.registerIngredient{5, 1 Emerald block}
   {_nazwa}.Recipe.registerIngredient{6, 1 Emerald block}
   {_nazwa}.Recipe.registerIngredient{7, 1 Emerald block}
   {_nazwa}.Recipe.registerIngredient{8, 1 Emerald block}
   {_nazwa}.Recipe.registerIngredient{9, 1 Emerald block}
   {_nazwa}.Recipe.registerResult{4 Emerald ore named "&6&lGoldChest"}
   {_nazwa}.Recipe.register

on place of Emerald ore:
send "{@cWiad}"

on mine Emerald ore:
if player's gamemode is survival:
  if player's tool is pickaxe:
   set event-block to air
   cancel event
            chance of {@dMoney}%
                add 400 to player's account
                send "{@tag} {@mMoney}"
   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}"
            chance of {@dKox}%:
                give 1 322:1 to the player
                send "{@tag} {@mGoldenApple}

To jest mój pierwszy "większy" skrypt proszę więc o wyrozumiałość


Mam nadzieje , że mój skrypt przyda się na waszych serwerach .


Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...