options: procentcreeper: 50 procentszkieletkosc: 50 procentszkieletstrzala: 50 procentcreeper: 50 procentzombie: 50 procentpajak: 50 command /telekineza: trigger: if {telekineza.%player%} is not set: set {telekineza.%player%} to true send "&aWlaczyles/as Telekineze!" stop else: delete {telekineza.%player%} send "&aWylaczyles/as Telekineze!" stop on death: if attacker is a player: if victim is a creeper: if {telekineza.%attacker%} is true: clear drops chance of {@procentcreeper}%: set {_a} to random integer between 1 and 3 set {_item} to "%{_a}% gunpowder" parsed as item give attacker {_item} stop if victim is a skeleton: if {telekineza.%attacker%} is true: clear drops chance of {@procentszkieletkosc}%: set {_a} to random integer between 1 and 3 set {_item} to "%{_a}% bone" parsed as item give attacker {_item} chance of {@procentszkieletstrzala}%: set {_a} to random integer between 1 and 3 set {_item} to "%{_a}% arrow" parsed as item give attacker {_item} stop if victim is a zombie: if {telekineza.%attacker%} is true: clear drops chance of {@procentzombie}%: set {_a} to random integer between 1 and 3 set {_item} to "%{_a}% rotten flesh" parsed as item give attacker {_item} stop if victim is a spider: if {telekineza.%attacker%} is true: clear drops chance of {@procentpajak}%: set {_a} to random integer between 1 and 3 set {_item} to "%{_a}% string" parsed as item give attacker {_item} stop