Zobacz czy już działa skrypt!
:KOD:
variables:
{komenda.%player%} = true
prefix: &6[Piuro szczescia]
piuro.id: feather
piuro.czas: 0.1
on load:
register new shaped recipe for feather named "&e&lPiuro szczescia" using gold block , 16 gold block , 7 dropper , 1 gold block , 1 gold block , 17 gold block
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
I zobacz czy to dziala