Convert entity to item

Started by Oskarxisee on

Topic category: Help with modding (Java Edition)

Last seen on 09:36, 16. Feb 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Convert entity to item

hi! Help me please, how to convert entity to item? It’s like the block checks that y + 1 contains an item, for example, an apple. When an item just lies on the ground, it is supposedly an entity. I want him to check not for any subject, but exactly the one that I will indicate.

Last seen on 22:51, 27. Mar 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I am not quite sure what you…
Sat, 04/15/2023 - 20:58

I am not quite sure what you mean, but there is a procedure block called something like convert item entity (event/target entity) to itemstack that you could possibly use with for each entity in ratius as entity iterator and an if block to check if it is an item entity