making an entity spawn with a potion effect

Started by scaryclown on Fri, 09/18/2020 - 12:04

Topic category: Help with modding (Java Edition)

Last seen on 14:54, 20. Jun 2021
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
making an entity spawn with a potion effect
Fri, 09/18/2020 - 12:04

how would i go about making it where, an entity would spawn in with a potion effect, say hunger or strength or something like that?

Last seen on 17:48, 12. Sep 2021
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You could try attatching a…
Fri, 09/18/2020 - 20:31

You could try attatching a procedure to the entity that activates when it spawns. That way you could apply the effect to the target entity (the one that spawns) with the effect.