Advertisement
Mondzo

Magiczna skrzynia minecraft

May 3rd, 2015
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.68 KB | None | 0 0
  1. ########################
  2. # Skrypt minecraft     #
  3. # versja 0.1 magiczna  #
  4. # By MondzoTv :D       #
  5. # Zakaz usuwania       #
  6. # Pozwalam edytowac    #
  7. ########################
  8. variables:
  9.     {Mb::9} = Potion of Regeneration
  10.     {Mb::8} = Potion of Swiftness
  11.     {Mb::7} = Potion of Healing
  12.     {Mb::6} = Potion of Healing
  13.     {Mb::5} = Potion of Healing
  14.     {Mb::4} = Potion of Strength
  15.     {Mb::3} = Potion of Strength
  16.     {Mb::2} = 2 golden Apple
  17.     {Mb::1} = 2 Potion of Regeneration
  18.     {Mb::29} = 2 Potion of Swiftness
  19.     {Mb::28} = 3 Potion of Strength
  20.     {Mb::27} = 7 Potion of Strength
  21.     {Mb::26} = 5 emerald
  22.     {Mb::25} = 3 Gold Ingot
  23.     {Mb::24} = 5 Potion of Healing
  24.     {Mb::23} = 32 Arrow
  25.     {Mb::22} = Diamond Sword
  26.     {Mb::21} = 2 diamond
  27.     {Mb::19} = 2 Potion of Healing
  28.     {Mb::18} = Diamond Leggings
  29.     {Mb::17} = Diamond Sword
  30.     {Mb::16} = iron ingot
  31.     {Mb::15} = Gold Ingot
  32.     {Mb::14} = 12 Iron Ingot
  33.     {Mb::13} = Diamond Axe
  34.     {Mb::12} = emerald
  35.     {Mb::11} = 5 Diamond
  36.     {Mb::20} = Diamond Axe
  37.     {Mb::10} = 32 Arrow
  38.     {Mb::59} = Diamond Leggings
  39.     {Mb::58} = Diamond Boots
  40.     {Mb::57} = Diamond Chestplate
  41.     {Mb::56} = Diamond Chestplate
  42.     {Mb::55} = Diamond Boots
  43.     {Mb::54} = Diamond Leggings
  44.     {Mb::53} = Diamond Boots
  45.     {Mb::52} = Diamond Helmet
  46.     {Mb::51} = Diamond Helmet
  47.     {enchantment::1} = sharpness 2
  48.     {enchantment::2} = sharpness 4
  49.     {enchantment::3} = sharpness 5
  50.     {enchantment::4} = sharpness 8
  51.     {enchantment::5} = Fire aspect 4
  52.     {enchantment::6} = knockback 4
  53.     {enchantment::7} = knockback 8
  54.     {enchantment::14} = protection 4
  55.     {enchantment::13} = protection 7
  56.     {enchantment::12} = protection 10
  57.     {enchantment::11} = protection 12
  58.  
  59. command /cleartt:
  60.     permission: op
  61.     trigger:
  62.         clear {Mb::*}
  63.         clear {enchantment::*}
  64.         message "cleared"
  65. command /box <player> <number>:
  66.     permission: op
  67.     trigger:
  68.         give argument 2 of chest named "&6Magiczna_Skrzynia" to argument 1
  69.        
  70. on place of a chest:
  71.     player is holding a chest named "&6Magiczna_Skrzynia":
  72.         cancel event
  73.         remove 1 chest named "&6Magiczna_Skrzynia" from player
  74.         loop random integer between 3 and 5 times:
  75.             set {_item} to "%{Mb::%random integer between 1 and 59%}%" parsed as itemtype
  76.             if {_item} is  Diamond Helmet or Diamond Boots or Diamond Chestplate or Diamond Leggings:
  77.                 enchant {_item} with {enchantment::%random integer between 11 and 14%}
  78.                 set line 1 of lore of {_item} to "&6Magiczna Skrzynie"
  79.             if {_item} is  Diamond Axe or Diamond Sword:
  80.                 enchant {_item} with {enchantment::%random integer between 1 and 7%}
  81.                 set line 1 of lore of {_item} to "&6Magiczna Skrzynie"
  82.             give {_item} to the player
  83.         message "&2>>&eOtworzyłes &6Magiczna Skrzynie"
  84. on break stone:
  85.     chance of 1%:
  86.         drop chest named "&6Magiczna_Skrzynia"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement