2

I'm writing a datapack with the Holy Hand Grenade of Antioch from Monty Python and the Holy Grail. I have everything working, (see this post) but I'd like to make the charged creeper I spawn in do more damage but with a smaller explosion radius. I know giving mobs strength makes them hit harder, but creepers don't hit per se, they just explode, so that doesn't seem like it would work (correct me if I'm wrong). Here is my command to spawn it in:

summon creeper ~ ~ ~ {Fuse:0,powered:1,Invulnerable:1,ExplosionRadius:1.5,CustomName:"\"a Holy Hand Grenade of Antioch\""}

I know that creepers' explosions deal damage to entities and having multiple creepers will add that damage together, but it also destroys any drops so I don't want to go that route. Is there a way to increase the damage for the creeper without making it's explosion radius any bigger or spawning in multiple creepers?

Be aware that I have this in a function which turns mobgriefing off right before summoning the creeper and turns it back on right after the creeper explodes. The concern isn't making bigger craters but making the area that it effects too large so the thrower is impacted (it's a potion so it can't be thrown super far).

10
  • Yes, I have the perfect solution! I can't write down the complete command right now, because I'm not at a computer, but creepers can be "charged" with potion effects since 1.13. When they die while having a potion effect (and I think this includes exploding), they leave behind an AreaEffectCloud of that potion effect. You could just make this a very high level of instant damage and it should probably work, because I assume you make the creeper explode instantly. If that doesn't work, use wither. An alternative solution would be not to use a creeper at all, but instead just having the thrown … Jun 7, 2019 at 6:37
  • … potion itself be an instant damage potion and just simulate the explosion with the particle and sound. Except if you also want the visible knockback, that makes it much more complicated. Jun 7, 2019 at 6:38
  • That sounds like it will work, but I'm using the charged creeper so players have a way of getting mob heads without me having to modify loot tables. If I 'charge' the creeper with instant damage, and the effect kills the mob, will is still drop the head?
    – Nik3141
    Jun 7, 2019 at 19:13
  • Probably not. <comment padding> Jun 7, 2019 at 21:32
  • But there is a chance the creeper explosion will kill it and a chance the effect will kill it? Because I could just make the ingredients less expensive and have there be an effective drop chance.
    – Nik3141
    Jun 7, 2019 at 22:11

1 Answer 1

1

You could summon an area effect cloud in the same position as the creeper. This command would do just that:

summon minecraft:area_effect_cloud ~ ~ ~ {Potion:"minecraft:strong_harming",Radius:1.5f,Duration:6,Particle:"minecraft:explosion"}

If the affected area for this is too large, then you can simply decrease the Radius.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .