xMateuszP0L

Untitled

Dec 1st, 2015
566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 4.35 KB | None | 0 0
  1. on mine a stone:
  2.     chance of 10%:
  3.         drop a dragon egg with name "&cPUSZKA PANDORY" with lore "&aWypada z niej rozne cenne pdzemioty.||&cUWAGA! &eIstnieje szansa, ze z puszki||&ewyskocza bardzo silne potowry zamiast itemkow!"
  4.         send "&cZdobyles puszke pandory!"
  5.        
  6. on place a dragon egg:
  7.     lore of player's tool contains "&aWypada z niej rozne cenne pdzemioty.||&cUWAGA! &eIstnieje szansa, ze z puszki||&ewyskocza bardzo silne potowry zamiast itemkow!":
  8.         set block to air
  9.         set {pandora.%player%} to a random integer between 0 and 5
  10.         if {pandora.%player%} is 1:
  11.             open chest with 1 row named "&0   PANDORA" to player
  12.             wait 2 ticks
  13.             format slot 0 of player with black glass named " " to be unstealable
  14.             loop 9 times:
  15.                 add 1 to {_gpandora}
  16.                 format slot {_gpandora} of player with black glass named " " to be unstealable
  17.             format slot 4 of player with 5 enchanted golden apple named "&6KOX" with lore "&cKliknij aby odebrac nagrode!" to close then run [make console execute command "/give %player% 322 5 1"]
  18.             broadcast "&8[&fxPandora&4P0L&8] &cGracz: &6%player% &cotworzyl puszke pandory i wylosowal: &65 koxow&c!"
  19.            
  20.         if {pandora.%player%} is 2:
  21.             open chest with 1 row named "&0   PANDORA" to player
  22.             wait 2 ticks
  23.             format slot 0 of player with black glass named " " to be unstealable
  24.             loop 9 times:
  25.                 add 1 to {_gpandora}
  26.                 format slot {_gpandora} of player with black glass named " " to be unstealable
  27.             format slot 4 of player with diamond sword of sharpness 6, fire aspect 3 named "&bDiamentowy Miecz" with lore "&cKliknij aby odebrac nagrode!" to close then run [make console execute command "/give %player% 276 1 0 {ench:[{id:16,lvl:6},{id:20,lvl:3}]}"]
  28.             broadcast "&8[&fxPandora&4P0L&8] &cGracz: &6%player% &cotworzyl puszke pandory i wylosowal: &6Miecz 6/3&c!"
  29.            
  30.         if {pandora.%player%} is 3:
  31.             open chest with 1 row named "&0   PANDORA" to player
  32.             wait 2 ticks
  33.             format slot 0 of player with black glass named " " to be unstealable
  34.             loop 9 times:
  35.                 add 1 to {_gpandora}
  36.                 format slot {_gpandora} of player with black glass named " " to be unstealable
  37.             format slot 4 of player with beacon with lore "&cKliknij aby odebrac nagrode!" to close then run [make console execute command "/give %player% 138 1"]
  38.             broadcast "&8[&fxPandora&4P0L&8] &cGracz: &6%player% &cotworzyl puszke pandory i wylosowal: &6beacon&c!"
  39.            
  40.         if {pandora.%player%} is 4:
  41.             open chest with 1 row named "&0   PANDORA" to player
  42.             wait 2 ticks
  43.             format slot 0 of player with black glass named " " to be unstealable
  44.             loop 9 times:
  45.                 add 1 to {_gpandora}
  46.                 format slot {_gpandora} of player with black glass named " " to be unstealable
  47.             format slot 2 of player with diamond helmet of protection 4, unbreaking 4 with lore "&cKliknij aby odebrac nagrode!" to close then run [make console execute command "/give %player% 310 1 0 {ench:[{id:0,lvl:4},{id:34,lvl:4}]}"]
  48.             format slot 3 of player with diamond chestplate of protection 4, unbreaking 4 with lore "&cKliknij aby odebrac nagrode!" to close then run [make console execute command "/give %player% 311 1 0 {ench:[{id:0,lvl:4},{id:34,lvl:4}]}"]
  49.             format slot 5 of player with diamond leggings of protection 4, unbreaking 4 with lore "&cKliknij aby odebrac nagrode!" to close then run [make console execute command "/give %player% 312 1 0 {ench:[{id:0,lvl:4},{id:34,lvl:4}]}"]
  50.             format slot 6 of player with diamond boots of protection 4, unbreaking 4 with lore "&cKliknij aby odebrac nagrode!" to close then run [make console execute command "/give %player% 313 1 0 {ench:[{id:0,lvl:4},{id:34,lvl:4}]}"]
  51.             broadcast "&8[&fxPandora&4P0L&8] &cGracz: &6%player% &cotworzyl puszke pandory i wylosowal: &6item 4prot/4unb&c!"
  52.            
  53.         if {pandora.%player%} is 5:
  54.             open chest with 1 row named "&0   PANDORA" to player
  55.             wait 2 ticks
  56.             format slot 0 of player with black glass named " " to be unstealable
  57.             loop 9 times:
  58.                 add 1 to {_gpandora}
  59.                 format slot {_gpandora} of player with black glass named " " to be unstealable
  60.             format slot 4 of player with diamond pickaxe of efficiency 6, fortune 6, unbreaking 6 with lore "&cKliknij aby odebrac nagrode!" to close then run [make console execute command "/give %player% 278 1 0 {ench:[{id:32,lvl:6},{id:34,lvl:6},{id:35,lvl:6}]}"]
  61.             broadcast "&8[&fxPandora&4P0L&8] &cGracz: &6%player% &cotworzyl puszke pandory i wylosowal: &6diamentowy kilof 6/6/6&c!"
Advertisement
Add Comment
Please, Sign In to add comment