#How to check for item

1 messages · Page 1 of 1 (latest)

south orbit
#

Does anyone know how to check if the player is holding a custom item, I tried to check item meta but the code still doesn't detect the item here is my code: https://paste.md-5.net/eficewaxuj.java

#

It's EntityDamagedByEntity event btw

jagged condor
#

PDC moment

south orbit
#

im sorry I didn't quite understand

#

@jagged condor

restive ibex
#

You add a tag for custom item and check for it later on

south orbit
#

How do I do that

#

what is the method?

restive ibex
#

ItemStack#ItemMeta#PresidentDataContainer

south orbit
#

ok ill try that out

#

It works!