Mob spawning triggers help

Started by Haderoth on

Topic category: Help with modding (Java Edition)

Last seen on 22:17, 28. Aug 2023
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mob spawning triggers help

Hi, it's me again, my mod is nearing completion and we're testing spawning triggers for escorts for particular mobs...

And it doesn't work

What I mean here is that I was making a boss and wanted to give it some extra flair by making it spawn mobs near itself when first spawned and hit, I tried a lot of different things to make it work and with no positive results

Can someone help me with this? For now my boss just spawns mobs *inside of itself* when hit and first spawning

Thank you and cheers

Last seen on 18:43, 8. Jan 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The spawning block should…
Sat, 11/12/2022 - 13:34

The spawning block should have coordinates currently set to X, Y, and Z.

You can use the math blocks to give them an offset, like [X + 2], Y, [Z + 2]

You could also put random numbers in there, maybe [random 0 - 1 * 3] for the X and Z.

Also have a random number decide whether to add or subtract.

Let me know if you have further questions.