Checking lying items

Started by Turbo_MaKsIk12 on Sat, 03/18/2023 - 11:45

Topic category: Advanced modding

Last seen on 14:13, 18. Mar 2023
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Checking lying items
Sat, 03/18/2023 - 11:45

I'm doing a special ritual in which you need to throw objects into the center of the circle and click on the PCM circle. After that, the function occurs. How to make a check of lying items outside the inventory?

Last seen on 21:49, 5. Jun 2023
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think that you could useā€¦
Thu, 04/06/2023 - 12:52

I think that you could use the "for each entity in radius (number) as entity iterator" block with something like

"If entity iterator is sub/type of item"

"Do get itemstack of item entity entity iterator"

and possibly something with local variables to have the game memorize the items