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

Started by DENTiller on Tue, 10/15/2019 - 13:03

Topic category: Help with modding (Java Edition)

Last seen on 09:45, 6. Jun 2020
Joined Dec 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
How to use "Has provided entity (items) in inventory"?
Tue, 10/15/2019 - 13:03

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 07:44, 29. Mar 2020
Joined Oct 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 09:45, 6. Jun 2020
Joined Dec 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 09:45, 6. Jun 2020
Joined Dec 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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?