-1

I am making a minigame in Minecraft for my server which requires a lot of command blocks. There is a boss in the game that I summoned using:

/summon VillagerGolem ~ ~1 ~ {Passengers:[{id:"Creeper",Silent:1b,Invulnerable:1b,Fuse:32767,ActiveEffects:[{Id:14,Duration:2147483647,ShowParticles:0b}]}]}

The VillagerGolem is being controlled by a creeper and therefore will follow the player but not attack, but I sorted that out. I would like to give this mob a maximum speed and maximum damage as it is currently a little overpowered (the golem moves super fast and nearly one shot kills, which is too powerful along with the zombies I already have).

Is this possible?

1

You can modify the iron golem's generic.movementSpeed attribute to a more desirable value.

However, the attack damage of iron golems is hard-coded and cannot be changed via commands. The most you could do is set PlayerCreated to 1 to prevent it from attacking players:

/summon VillagerGolem ~ ~1 ~ {Tags:["hostile_golem"],Attributes:[{Name:"generic.movementSpeed",Base:0.1}],PlayerCreated:1b,Passengers:[{id:"Creeper",Silent:1b,Invulnerable:1b,Fuse:32767,ActiveEffects:[{Id:14,Duration:2147483647,ShowParticles:0b}]}]}

And use smoke and mirrors to attack the player (such as running a /effect command at the iron golem to apply Instant Damage to nearby players):

/execute @e[type=VillagerGolem,tag=hostile_golem] ~ ~ ~ /effect @a[r=3] minecraft:instant_damage
  • I have inputed the instant damage and i guess the Golem will be a fair fight at such a slow speed! Thanks!!! – Reflexive Nov 24 '16 at 14:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.