So i have this code and it has error, it doesnt drop the item with given enchant protection 1.
and I want the enchant to be hidden too but lmk if you guys know how to do that.
So in this code, when you kill a zombie you have 30% chanse to get custom drop(scute). and i want that item to be enchanted so players dont think its normal item.
and I want the enchant to be hidden too but lmk if you guys know how to do that.
Code:
on death of zombie:
set {_randomvalue} to random number between 1 and 10
set {_deathvalue} to victim's location
if {_randomvalue} is less than or equal to 3:
drop 1 scute named "&bmorganite piece" of protection 1 0.6 meters above {_deathvalue}
So in this code, when you kill a zombie you have 30% chanse to get custom drop(scute). and i want that item to be enchanted so players dont think its normal item.