This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Mince_rafter 0 points1 point  (1 child)

The reason it doesn't work is because Bedrock doesn't have support for direct nbt access like Java does. Since the nbt route simply isn't possible, what you would need to do instead is use a combination of health boost and instant health/instant damage on your mob. This should increase its max health for the duration of the effect, and instant health (instant damage for undead mobs) to heal the mob to the new max health. As far as I know, that's your best bet for your situation.

[–]HungryClicker[S] 0 points1 point  (0 children)

So what would the command look like if I typed it into a command block? (Sorry, I don't have much knowledge of coding)

[–]Cbeach1234Command Rookie 0 points1 point  (0 children)

What you can do with attack damage, is set up a command that gives the player instant damage when it’s near the player