options: nazwa: &2Patyk #nazwa przedmiotu uzyc: 10 #ilosc uzyc command dajpatyk []: permission: patyk.daj permission message: &cBrak uprawnien! trigger: arg 1 is set: arg 1 is offline: send "&cTen gracz jest offline!" stop give stick named "{@nazwa} &f(0/{@uzyc})" to arg 1 send "&aOtrzymales patyk!" to arg 1 send "&aNadano %arg 1% patyk!" stop give stick named "{@nazwa} &f(0/{@uzyc})" to player send "&aOtrzymales patyk!" on rightclick with stick: name of player's tool contains "{@nazwa} &f(" set {_uses} to name of player's tool replace all "{@nazwa} &f(" with "" in {_uses} replace all "/{@uzyc})" with "" in {_uses} set {_uses} to {_uses} parsed as integer make player shoot egg at speed 1.5 wait 1 tick add 1 to {_uses} set name of player's tool to "{@nazwa} &f(%{_uses}%/{@uzyc})" wait 1 tick {_uses} >= {@uzyc} set player's tool to air send "&cPatyk sie zuzyl!" on shoot:     projectile is egg name of shooter's tool contains "{@nazwa} &f("     set {patyk::%projectile%} to true on damage:     projectile is egg     {patyk::%projectile%} is set     create a fake explosion     clear {patyk::%projectile%} on projectile hit:     projectile is egg     {patyk::%projectile%} is set     loop blocks in radius 2 around location of projectile: loop-block is air         set loop-blocks to cobweb     wait 5 second     loop blocks in radius 2 around location of projectile: loop-block is cobweb         set loop-block to air         wait 2 ticks