Entity only takes damage when another one is killed

Started by dabbeddabdabb on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity only takes damage when another one is killed

i'm creating a boss for a personal mod of mine that is invincible to all attacks, and only takes damage when the minions it spawns die. i've tried using NBT Tags to make this work however it doesn't seem to have done anything at all, also tried global variables but, same result. here is what i have going on code-wise:

https://imgur.com/a/txVgM34

the 1st procedure is hooked up to execute  on the main boss' entity tick update, and the 2nd is hooked up to execute when the minions die. not super sure how NBT tags work or anhything like that, so any help or advice is appreciated

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use it along with inside the…
Tue, 05/09/2023 - 14:18

Use it along with inside the AI Tab of your custom Boss as Conditions.

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i'm not sure i understand,…
Fri, 05/12/2023 - 18:01

i'm not sure i understand, sorry. where should i put it exactly?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When the minion dies, it…
Mon, 05/22/2023 - 10:06

When the minion dies, it only change the NBT of that minion but not the boss; that's why it didn't work.