Conditional Events Check if item is in inventory?

using CE, on the execution of a player_command event, can you have a condition that checks the user inventory or hand contain an item? I can only see checking armor slots on the documentation. ty
4 Replies
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by pixel_life#5664
ProGamingDk
ProGamingDk2y ago
use checkitem placeholder
ProGamingDk
ProGamingDk2y ago
GitHub
GitHub - PlaceholderAPI/CheckItem-Expansion: This expansion allows ...
This expansion allows checking if items are in the inventory of the target player - GitHub - PlaceholderAPI/CheckItem-Expansion: This expansion allows checking if items are in the inventory of the ...
pixel_life
pixel_lifeOP2y ago
so i need to use this in a condition first, before the action. I guess i can just use the placehodlers from checkitem in the condition as well which I will try, ty @ProGamingDK
- '%checkitem_mat:diamond,nameequals:Custom item name% == true'
- '%checkitem_mat:diamond,nameequals:Custom item name% == true'
do you know how to use it its giving me error on /ce verify on this line this is a "condition"

Did you find this page helpful?