How do I make creepers stop exploding?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Ratnobrade

New Member
Sep 10, 2022
5
1
3
17
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.
 
I could not find anything.
This only thing you could do is when they explode they dont do damage to the blocks.
But i dont think this is what u want
Sorry
 
If that's what you wanna do, technically you can stop creepers from even tracking players:
Code:
on entity target:
    event-entity is creeper
    target is player
    cancel event
 
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.
I came across the same issue, perhaps this issue can be solved with the basic functionality of Skript, but personally I solve it this way using Skript-reflect:
Code:
on explosion:
 event.blockList().clear()
 
I am trying to do something, like hypixel's ghosts
I would like for them to completely stop exploding, and to stop trying to explode if that's possible, however thank you for the support <3
 
I found "..cancel the ExplosionPrimeEvent event..." so if that works *llellelleollolltro0lolooozy could so smth like
Code:
import some.weird.and.random.class.ExplosionPrimeEvent

on ExplosionPrimeEvent:
    cancel event

*llellelleollolltro0lolooozy

  1. Pierrelasse
    What ur name? LOLZY or LOTZY

    Lolzy
    or

    Pierrelasse
    .....
    i just do random stuff then

    Lolzy
    do random stuff then

    Pierrelasse
    sure
[doublepost=1666642693,1666642409][/doublepost]
upload_2022-10-24_22-16-12.png

so i just found out on my own obivssly that you could use "on target:"!!!
means
Code:
on creeper target:
    cancel event
and if you would like that the creepers move to you, you could look into
skbees path finding stuff
 
I found "..cancel the ExplosionPrimeEvent event..." so if that works *llellelleollolltro0lolooozy could so smth like
Code:
import some.weird.and.random.class.ExplosionPrimeEvent

on ExplosionPrimeEvent:
    cancel event

*llellelleollolltro0lolooozy

  1. Pierrelasse
    What ur name? LOLZY or LOTZY

    Lolzy
    or

    Pierrelasse
    .....
    i just do random stuff then

    Lolzy
    do random stuff then

    Pierrelasse
    sure
[doublepost=1666642693,1666642409][/doublepost]View attachment 7157
so i just found out on my own obivssly that you could use "on target:"!!!
means
Code:
on creeper target:
    cancel event
and if you would like that the creepers move to you, you could look into
skbees path finding stuff
дурачок малолетний.
 
Status
Not open for further replies.