#How to get if a item is armor or not

4 messages · Page 1 of 1 (latest)

raven agate
#

i want to detect if a item is armor or not

uncut creekBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

round gazelle
#
let ArmorItem = Java.loadClass("net.minecraft.world.item.ArmorItem")
if (event.item.item instanceof ArmorItem)```
raven agate
#

thanks🙏