Procedure to test for multiple items in entities inventory

Upvotes: 5
Issue description

Future support for testing for multiple items in an entity's inventory such as player or mob. Below are some suggested support features.

  • Testing for multiple items in main-hand.
  • Testing for multiple items in off-hand.
  • Testing for multiple items in the hotbar.
  • Testing for multiple items in the inventory.

If other people have any ideas on things I have missed feel free to join the conversation in the comments of this post.

Issue comments

You mean like does player have e.g. 6 items of a type in main-hand, right?

One of the blocks suggested in that ticket is the "Get stack size", which would fill the role.

One can not convert slot contents to itemstack yet, although it is planned, so, for now, this one would be required separately too.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.