I plan on making a command boss named Ethrinox. When you deal any kind of damage to it, it should summon a wither skull over the nearest player's head.
Is there a scoreboard objective type that goes up whenever an entity gets attacked? By that, I mean, is there some way I can detect if something got hit by anything else, and then act upon that detection?
Low and high damage attacks will have the same effect, so using the health tag isn't going to work. Besides, that's massively over complicated. Health nbt tags are the bane of my existence.
I have created a sword that summons fireballs when you use it by utilizing the useItem scoreboard objective type, so surely there must be a way?
(I'm not using the same mechanism I used on the sword, because that wouldn't include arrow shots, and I would need to make every kind of sword do the same thing. Which also means doing the same thing when the boss is dead.)
I tried the stat.damageTaken and for some reason it only works on players. I'm still experimenting with stat.damageDealt though, I'll share what I can find.
I plan on making a command boss named Ethrinox. When you deal any kind of damage to it, it should summon a wither skull over the nearest player's head.
Is there a scoreboard objective type that goes up whenever an entity gets attacked? By that, I mean, is there some way I can detect if something got hit by anything else, and then act upon that detection?
Low and high damage attacks will have the same effect, so using the health tag isn't going to work. Besides, that's massively over complicated. Health nbt tags are the bane of my existence.
I have created a sword that summons fireballs when you use it by utilizing the useItem scoreboard objective type, so surely there must be a way?
(I'm not using the same mechanism I used on the sword, because that wouldn't include arrow shots, and I would need to make every kind of sword do the same thing. Which also means doing the same thing when the boss is dead.)
--Northie
I tried the stat.damageTaken and for some reason it only works on players. I'm still experimenting with stat.damageDealt though, I'll share what I can find.
--Northie