Guest User

Untitled

a guest
Aug 23rd, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. variables:
  2.     {komenda.%player%} = true
  3.  
  4.     prefix: &6[Piuro szczescia]
  5.     piuro.id: feather
  6. piuro.czas: 0.1
  7.  
  8. on load:
  9.         new Recipe "Piuroszczescia";
  10.         "Piuroszczescia".Recipe.registerIngredient{1, 1 gold block};
  11.         "Piuroszczescia".Recipe.registerIngredient{2, 1 gold block};
  12.         "Piuroszczescia".Recipe.registerIngredient{3, 1 gold block};
  13.         "Piuroszczescia".Recipe.registerIngredient{4, 1 gold block};
  14.         "Piuroszczescia".Recipe.registerIngredient{5, 1 dropper};
  15.         "Piuroszczescia".Recipe.registerIngredient{6, 1 gold block};
  16.         "Piuroszczescia".Recipe.registerIngredient{7, 1 gold block};
  17.         "Piuroszczescia".Recipe.registerIngredient{8, 1 gold block};
  18.         "Piuroszczescia".Recipe.registerIngredient{9, 1 gold block};
  19.         "Piuroszczescia".Recipe.registerResult{feather named "&e&lPiuro szczescia"};
  20.         "Piuroszczescia".Recipe.register{};
  21.  
  22. on rightclick:
  23.     player is holding {@piuro.id} named "&e&lPiuro szczescia":
  24.         if {komendaa.%player%} is true:
  25.             chance of 3%:
  26.                 execute console command "pandora %player% 1"
  27.             chance of 5.3%:
  28.                 execute console command "case give %player% SkrzyniaSmoka 1"
  29.             chance of 5.1%:
  30.                 execute console command "Crate Key %player% skrzynia 1"
  31.             chance of 5.2%:
  32.                 execute console command "case givecase %player% SkrzyniaSmoka 1"
  33.             chance of 5.4%:
  34.                 execute console command "case givekey %player% SkrzyniaSmoka 1"
  35.             chance of 5.6%:
  36.                 execute console command "give %player% diamond 16"    
  37.             chance of 5%:
  38.                 execute console command "give %player% 322:1 8"
  39.             chance of 6.5%:
  40.                 execute console command "lightning %player%"
  41.                 wait a tick
  42.                 send "{@prefix} &aWylosowales przedmiot!"
  43.                 remove {@piuro.id} named "&e&lPiuro szczescia" from player
  44.                 set {komenda.%player%} to false
  45.                 wait {@piuro.czas} minutes
  46.                 set {komenda.%player%} to true
  47.             else:
  48.                 send "{@prefix} &cNie udalo Ci sie wylosowac przedmiotu. Sprobuj ponownie!"
  49.                 remove {@piuro.id} named "&e&lPiuro szczescia" from player
  50.                 set {komenda.%player%} to false
  51.                 wait {@piuro.czas} minutes
  52.                 set {komenda.%player%} to true
  53.                 apply swiftness to the player for 10 seconds
  54.                 apply nausea to the player for 10 seconds
Advertisement
Add Comment
Please, Sign In to add comment