(SOLVED) How can I make entities spawn in front of me?

Started by PoodleCorn on Fri, 07/22/2022 - 02:28

Topic category: Help with modding (Java Edition)

Last seen on 04:18, 23. Jul 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(SOLVED) How can I make entities spawn in front of me?
Sat, 07/23/2022 - 04:20 (edited)

I am trying to add an item that shoots out shulker orbs at other mobs when right clicked and causes them to levitate. It does summon the shulker orb, but it does it below the player instead of in front. When I tried to change the xyz values it didn't summon it at all. I am on 2022.1 1.18.2 if that helps anything.

 

Edit: It is summoning orbs at the xyz coordinate rather than xyz amount in front of the player. I'll continue trying other things.

Edit: I put everything inside of a "for each direction as direction integer do" block and it worked!

Edited by PoodleCorn on Sat, 07/23/2022 - 04:20