1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I make creepers stop exploding?

Discussion in 'Skript' started by Ratnobrade, Sep 10, 2022.

Thread Status:
Not open for further replies.
  1. Ratnobrade

    Ratnobrade Member

    Joined:
    Sep 10, 2022
    Messages:
    2
    Likes Received:
    0
    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
    --- Double Post Merged, Sep 10, 2022, Original Post Date: Sep 10, 2022 ---
    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.
     
  2. Pierrelasse

    Pierrelasse Active Member

    Joined:
    Apr 20, 2022
    Messages:
    116
    Likes Received:
    4
    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
     
  3. Allan Noyd

    Allan Noyd Member

    Joined:
    Apr 29, 2021
    Messages:
    48
    Likes Received:
    0
    If that's what you wanna do, technically you can stop creepers from even tracking players:
    Code (Text):
    1. on entity target:
    2.     event-entity is creeper
    3.     target is player
    4.     cancel event
     
  4. lotzy

    lotzy Active Member

    Joined:
    Mar 15, 2022
    Messages:
    171
    Likes Received:
    24
    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 (Text):
    1. on explosion:
    2.  event.blockList().clear()
     
  5. Ratnobrade

    Ratnobrade Member

    Joined:
    Sep 10, 2022
    Messages:
    2
    Likes Received:
    0
    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
     
  6. Pierrelasse

    Pierrelasse Active Member

    Joined:
    Apr 20, 2022
    Messages:
    116
    Likes Received:
    4
    I found "..cancel the ExplosionPrimeEvent event..." so if that works *llellelleollolltro0lolooozy could so smth like
    Code (Text):
    1.  
    2. import some.weird.and.random.class.ExplosionPrimeEvent
    3.  
    4. on ExplosionPrimeEvent:
    5.     cancel event
    6.  
    *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
    --- Double Post Merged, Oct 24, 2022, Original Post Date: Oct 24, 2022 ---
    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 (Text):
    1.  
    2. on creeper target:
    3.     cancel event
    4.  
    and if you would like that the creepers move to you, you could look into
    skbees path finding stuff
     
  7. lotzy

    lotzy Active Member

    Joined:
    Mar 15, 2022
    Messages:
    171
    Likes Received:
    24
    дурачок малолетний.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...