Convert entity to item

Started by Oskarxisee on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 week ago
Joined Jan 2022
Points:
503

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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.

Active 33 minutes ago
Joined Apr 2023
Points:
661

User statistics:

  • Modifications: 4
  • Forum topics: 22
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 540
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