TransWikia.com

Is it possible to "un-charge" a creeper?

Arqade Asked on July 21, 2021

I know how to charge a creeper by summoning lightning on top of it:

Screenshot of a charged creeper.

I’ve reviewed the vanilla behavior for the creeper, and it is easy to see how a creeper becomes charged:

"minecraft:damage_sensor": {
  "triggers": {
    "on_damage": {
      "filters": { "test": "is_family", "subject": "other", "value": "lightning"
      },
      "event": "minecraft:become_charged"
    },
    "deals_damage": false
  }
}

However, I’ve been unable to locate anything similar to the minecraft:become_charged event, in order to effectively un-charge it.


Is it possible to un-charge a creeper?

One Answer

You could pretty easily:

execute @e[type=creeper,tag="Creepers To Change"] ~ ~ ~ summon creeper
kill @e[type=creeper,tag="Creepers To Change"]

and that would swap them out. Beware they won't have the same names or tags. Swap out the tag="Creepers To Change" for any selector arguments of your choice.

Correct answer by Penguin on July 21, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP