Set attack target of entity to [x] lets entities attack [x] even if it already died.

Started by RedWirePlatinum on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 00:54, 24. Mar 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Set attack target of entity to [x] lets entities attack [x] even if it already died.

I kinda figured that a workaround to this is to check if the targeting entity is alive, if not then set the target to itself. But uhhhhhhhhhhhhhhhhh.. yeah

Last seen on 00:54, 24. Mar 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
^ Specifically do the …
Sun, 04/16/2023 - 04:47

^ Specifically do the "target not alive" check in an "on loaded entity tick update" event

Last seen on 00:54, 24. Mar 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well nevermind, the entity…
Sun, 04/16/2023 - 05:14

Well nevermind, the entity literally tries attacking itself, and I can't put "no entity" cause i get an error... damn