I have mostly solved everything for this, however I still have some trouble making the creeper stop trying to explode.
Code:
on explosion prime:
if event-entity is creeper:
if name of event-entity is "&d&lUwU":
cancel event
create a safe explosion with force 5 at event-entity
loop all players in radius 5 of event-entity:
make event-entity damage loop-player by 150
stop
stop
This code mostly works, however it isn't able to make the creeper stop priming the explosion, or anything, like that. Please help, as I've been at this for a bit now
[doublepost=1662829303,1662828995][/doublepost]A little extra detail
server version 1.17.1
I want to make this kind of like the ghosts in hypixel skyblock where they dont actually explode, and they do damage to you.
The damage, and not actually exploding, or doing any damage to blocks nearby is solved, however I need the creeper to stop priming. If you could find a solution to this that would be amazing.
Code:
on explosion prime:
if event-entity is creeper:
if name of event-entity is "&d&lUwU":
cancel event
create a safe explosion with force 5 at event-entity
loop all players in radius 5 of event-entity:
make event-entity damage loop-player by 150
stop
stop
This code mostly works, however it isn't able to make the creeper stop priming the explosion, or anything, like that. Please help, as I've been at this for a bit now
[doublepost=1662829303,1662828995][/doublepost]A little extra detail
server version 1.17.1
I want to make this kind of like the ghosts in hypixel skyblock where they dont actually explode, and they do damage to you.
The damage, and not actually exploding, or doing any damage to blocks nearby is solved, however I need the creeper to stop priming. If you could find a solution to this that would be amazing.