Spawning an entity on the closest air block

Started by SomethingDoesMods on

Topic category: Help with modding (Java Edition)

Last seen on 23:33, 10. Jun 2024
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Spawning an entity on the closest air block

I'm using MCreator 2020.2, and im trying to create a custom spawn egg for an entity, but it always spawns inside the block I click. How would I have it spawn on the closest air block? 

Last seen on 20:18, 17. Jun 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Have a procedure that checks…
Sat, 06/01/2024 - 21:03

Have a procedure that checks for air blocks on all the sides of the block you click on and spawn on the one thats closest to you.