Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {komenda.%player%} = true
- prefix: &6[Piuro szczescia]
- piuro.id: feather
- piuro.czas: 0.1
- on load:
- new Recipe "Piuroszczescia";
- "Piuroszczescia".Recipe.registerIngredient{1, 1 gold block};
- "Piuroszczescia".Recipe.registerIngredient{2, 1 gold block};
- "Piuroszczescia".Recipe.registerIngredient{3, 1 gold block};
- "Piuroszczescia".Recipe.registerIngredient{4, 1 gold block};
- "Piuroszczescia".Recipe.registerIngredient{5, 1 dropper};
- "Piuroszczescia".Recipe.registerIngredient{6, 1 gold block};
- "Piuroszczescia".Recipe.registerIngredient{7, 1 gold block};
- "Piuroszczescia".Recipe.registerIngredient{8, 1 gold block};
- "Piuroszczescia".Recipe.registerIngredient{9, 1 gold block};
- "Piuroszczescia".Recipe.registerResult{feather named "&e&lPiuro szczescia"};
- "Piuroszczescia".Recipe.register{};
- on rightclick:
- player is holding {@piuro.id} named "&e&lPiuro szczescia":
- if {komendaa.%player%} is true:
- chance of 3%:
- execute console command "pandora %player% 1"
- chance of 5.3%:
- execute console command "case give %player% SkrzyniaSmoka 1"
- chance of 5.1%:
- execute console command "Crate Key %player% skrzynia 1"
- chance of 5.2%:
- execute console command "case givecase %player% SkrzyniaSmoka 1"
- chance of 5.4%:
- execute console command "case givekey %player% SkrzyniaSmoka 1"
- chance of 5.6%:
- execute console command "give %player% diamond 16"
- chance of 5%:
- execute console command "give %player% 322:1 8"
- chance of 6.5%:
- execute console command "lightning %player%"
- wait a tick
- send "{@prefix} &aWylosowales przedmiot!"
- remove {@piuro.id} named "&e&lPiuro szczescia" from player
- set {komenda.%player%} to false
- wait {@piuro.czas} minutes
- set {komenda.%player%} to true
- else:
- send "{@prefix} &cNie udalo Ci sie wylosowac przedmiotu. Sprobuj ponownie!"
- remove {@piuro.id} named "&e&lPiuro szczescia" from player
- set {komenda.%player%} to false
- wait {@piuro.czas} minutes
- set {komenda.%player%} to true
- apply swiftness to the player for 10 seconds
- apply nausea to the player for 10 seconds
Advertisement
Add Comment
Please, Sign In to add comment