In the MC version 1.16 I created e.g. A zombie with 300 lives [command]
/ summon minecraft: zombie ~ ~ 1 ~ {Health: 300, Attributes: [{Name: "generic.maxHealth", Base: 300}]}
But the zombie then only has as much life as it normally has.
In 1.8 this also works with a similar command.
There's a small mistake in your command
At Health: you have to go 300f and not just 300
EDIT: Sry is wrong xD
Have a look at picasso22's answer
/ summon minecraft: zombie ~ ~ ~ {Health: 300, Attributes: [{Name: "generic.max_health", Base: 300F}]}
Works like that. You are missing the _ from max_health
There's an error in his command, but there's no f.
Ah right xD
Thanks for the help ^^