Started by
SydneyZeQueen
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to make it so a player can only have one of a certain items in their inventory at any time, and the only thing I can find that would help with that is "HAS EVENT/TARGET ENTITY IN INVENTORY <ITEM>", but that would make it so as soon as the player gets the item, it gets deleted. Any other blocks I should look for?
Use iterate items in entity inventory and sum number of desired items and then check if the number is large enough for your requirements.
How would I go about that?