My skript is not functioning the way it should be. It is meant for getting custom mob drops depending on the looting level of the player's sword. It only drops 1 pork chop, no matter which looting level is applied.
The code also shows no errors when loading
[doublepost=1578453831,1578445474][/doublepost]closed but idk how to close it so.....
btw the error it should be attacker's tool not player's tool
Code:
if victim is pig:
if colored name of victim is "&7Pig &8(&c1&8)":
clear drops
remove all xp from drops
set {_looting} to level of looting of player's tool + 1
drop {_looting} of raw porkchop named "&f&lRaw Pork" with lore "" and "&8Rarity:&7 Common" at victim's location
chance of 22%:
drop 1 exp at victim's location
The code also shows no errors when loading
[doublepost=1578453831,1578445474][/doublepost]closed but idk how to close it so.....
btw the error it should be attacker's tool not player's tool