So i have a problem here
My problem is that it wont drop cooked porkchop even if i have a sword with fire aspect on it
My problem is that it wont drop cooked porkchop even if i have a sword with fire aspect on it
Code:
on death:
if victim is pig:
if attacker is a player:
if attacker's item is not enchanted with fire aspect:
cancel drops
set {_porkToGive} to random integer between 1 and 3
give {_porkToGive} of porkchop named "&c&lPorkchop" to attacker
on death:
if victim is pig:
if attacker is a player:
if attacker's item is enchanted with fire aspect:
cancel drops
set {_cookedporkToGive} to random integer between 1 and 3
give {_cookedporkToGive} of cooked porkchop named "&8&lCooked Porkchop" to attacker