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

Started by PoodleCorn on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i tried this and it just…
Mon, 05/27/2024 - 13:29

i tried this and it just spawns the entity where i am