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

Active 1 day ago
Joined May 2022
Points:
794

User statistics:

  • Modifications: 1
  • Forum topics: 43
  • Wiki pages: 0
  • MCreator plugins: 2
  • Comments: 167
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

Active 1 day ago
Joined May 2022
Points:
794

User statistics:

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

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

Active 1 day ago
Joined May 2022
Points:
794

User statistics:

  • Modifications: 1
  • Forum topics: 43
  • Wiki pages: 0
  • MCreator plugins: 2
  • Comments: 167
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