How to use "Has provided entity (items) in inventory"?

Started by DENTiller on

Topic category: Help with modding (Java Edition)

Last seen on 18:45, 8. May 2023
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to use "Has provided entity (items) in inventory"?

How to make the code check for an item with a quantity in the player?
Here, only one item is checking.
link

Last seen on 15:14, 29. Dec 2023
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That's easy. If [Has…
Tue, 10/15/2019 - 14:11

That's easy.

If [Has provided entity # in inventory] and [Has provided entity # in inventory] and...

Select the item to check for…
Tue, 10/15/2019 - 17:39

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

Last seen on 18:45, 8. May 2023
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you, but there is not…
Wed, 10/16/2019 - 10:35

Thank you, but there is not what I need.

Last seen on 18:45, 8. May 2023
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
OK Is it possible to do so?…
Wed, 10/16/2019 - 10:44

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?