Yo, y'all! So, for a walking dead adventure map (based off of telltale's game) I wanted to have a command block spawn a zombie with strength 1 and a named "COP".
Here you go:
/summon Zombie ~ ~ ~ {CustomName:COP,CustomNameVisible:1,ActiveEffects:[{Id:5,Amplifier:1,Duration:100000000000000000,ShowParticles:1}]}
Just a couple things: the tag-type of 'integer' (for Duration) has a maximum of 2147483647. The "ShowParticles" tag does not need to be specified, as it defaults to 1, but will require its tag-type of 'byte' to be defined regardless. The "Amplifier" starts at 0 (which it defaults to) for effect level 1, so applying an Amplifier of 1 gives it Strength 2.
Thanks for your help!
/summon Zombie ~ ~ ~ {CustomName:COP,CustomNameVisible:1,ActiveEffects:[{Id:5,Amplifier:1,Duration:100000000000000000,ShowParticles:1}]}
LIFE IS MORE THAN SURVIVAL! There is also Creative, Hardcore, and Adventure.
Just a couple things: the tag-type of 'integer' (for Duration) has a maximum of 2147483647. The "ShowParticles" tag does not need to be specified, as it defaults to 1, but will require its tag-type of 'byte' to be defined regardless. The "Amplifier" starts at 0 (which it defaults to) for effect level 1, so applying an Amplifier of 1 gives it Strength 2.
Fixed command:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/