Started by
DENTiller
on
Topic category: Help with Minecraft modding (Java Edition)
How to make the code check for an item with a quantity in the player?
Here, only one item is checking.
Topic category: Help with Minecraft modding (Java Edition)
How to make the code check for an item with a quantity in the player?
Here, only one item is checking.
That's easy.
If [Has provided entity # in inventory] and [Has provided entity # in inventory] and...
Select the item to check for and if the player has it in the inventory when the procedure is triggered, actions inside if block will happen.
I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei
Thank you, but there is not what I need.
OK
Is it possible to do so? The player has 10 diamonds in the inventory and he clicks on the block, 10 diamonds are removed from the inventory and he can no longer click on the block. If it has more than 10 diamonds, then it can click on the block and diamonds will also be removed from the inventory until there are less than 10 diamonds.
If this can be done, then tell me how?
Checking for number of items is not possible yet, but is planned: https://mcreator.net/tracker/issue/53895