Started by
Blockyheadman
on
Topic category: User side tutorials
Okay so after a little bit of messing around and trying to get something to work, I have a little thong to share. There is a way to check for having one or greater than one specific item at once in a players inventory. I haven't tested out if the mod has works in multiplayer so if somebody does before me, please let me know. Anyways here is how to do it.
Event trigger - triggered by external call or when (global trigger): On player tick update
if | Has Event/target entity in inventory [ITEM/BLOCK]
(Your reaction code here)
This can be done in procedure form and doesn't need to be a custom element. Hopefully this helps anyone who needs it! :)
yes indeed
and if you want to know the number of items in a players inventory you can use the counting part of the procedure from my tutorial
Custom Store (Tutorial) | MCreator