#SZANSA NA DROP SKRZYNKI: W procentach. po zabiciu gracz dostaję skrzynke.
options:
szansa: 5
komenda: dajskrzynke
permisja: yt.chest
on rightclick:
if player's tool is chest named "&eMagiczna skrzynka" with lore "&6Wylatuja z niej bardzo dobre itemy.||&6Wystarczy &eze kliknij &6PPM a automatycznie,||&eZacznie sie losowanie &6itemow!":
remove 1 chest named "&eMagiczna skrzynka" with lore "&6Wylatuja z niej bardzo dobre itemy.||&6Wystarczy &eze kliknij &6PPM a automatycznie,||&eZacznie sie losowanie &6itemow!" from player
set {_a} to 0 or 1 or 2 or 3 or 4 or 5 or 6:
if {_a} is 0:
drop 1 diamond helmet of protection 5 and unbreaking 3 named "&eCzapka" at player
send "&eWylosowales &6Diamentowy helm!"
if {_a} is 1:
drop 1 diamond chestplate of protection 5 and unbreaking 3 named "&eBluzka" at player
send "&eWylosowales &6Diamentowy napiersnik!"
if {_a} is 2:
drop 1 diamond leggings of protection 5 and unbreaking 3 named "&eSpodnie" at player
send "&eWylosowales &6Diamentowe spodnie!"
if {_a} is 3:
drop 1 diamond boots of protection 5 and unbreaking 3 named "&eAdidas" at player
send "&eWylosowales &6Diamentowe buty!"
if {_a} is 4:
drop 1 diamond sword of sharpness 6 and fire aspect 2 named "&eMiecz" at player
send "&eWylosowales &6Diamentowy miecz!"
if {_a} is 5:
drop 5 golden apple:1 at player
send "&eWylosowales &6x5 koxy!"
if {_a} is 6:
drop 30 golden apple:0 at player
send "&eWylosowales &6x30 refile!"
command /{@komenda} [<player>]:
permission: {@yt.chest}
trigger:
if arg 1 is set:
give 1 chest named "&eMagiczna skrzynka" with lore "&6Wylatuja z niej bardzo dobre itemy.||&6Wystarczy &eze kliknij &6PPM a automatycznie,||&eZacznie sie losowanie &6itemow!" to player-arg
elsE:
give 1 chest named "&eMagiczna skrzynka" with lore "&6Wylatuja z niej bardzo dobre itemy.||&6Wystarczy &eze kliknij &6PPM a automatycznie,||&eZacznie sie losowanie &6itemow!" to player
on death of player:
if chance of {@szansa}%:
if attacker can holde 1 chest named "&eMagiczna skrzynka":
give 1 chest named "&eMagiczna skrzynka" with lore "&6Wylatuja z niej bardzo dobre itemy.||&6Wystarczy &eze kliknij &6PPM a automatycznie,||&eZacznie sie losowanie &6itemow!" to attacker
elsE:
drop 1 chest named "&eMagiczna skrzynka" with lore "&6Wylatuja z niej bardzo dobre itemy.||&6Wystarczy &eze kliknij &6PPM a automatycznie,||&eZacznie sie losowanie &6itemow!" at attacker