charged creeper

  • 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.

kenkencw

Active Member
Jan 31, 2017
68
0
0
31
Malaysia
www.huskycraftmc.com
how to lightning srike a creeper become charged creeper?

simmilar like
code_language.skript:
strike lightning effect at {_loc}:
    if target entity is creeper:
        change target entity to charged creeper
 
Last edited:
It doesn't matter that you're using skript to make the lightning, if a creeper gets hit it will still turn into a charged creeper.
 
You could use "strike lightning at {_loc}" then do something like this:

code_language.skript:
on damage: 
    if victim is a creeper:
        if damage was caused by lightning:
            cancel event
            damage victim by 5 #or by how ever much you want
 
You could use "strike lightning at {_loc}" then do something like this:

code_language.skript:
on damage:
    if victim is a creeper:
        if damage was caused by lightning:
            cancel event
            damage victim by 5 #or by how ever much you want
lel
i need it change to charged creeper also
 
It might not change if you cancel the damage event (not sure) but you could just set the damage instead of canceling and redamaging it.

code_language.skript:
on damage of creeper:
    damage was caused by lightning
    set damage to 50

Can set it to whatever you want.
 
It might not change if you cancel the damage event (not sure) but you could just set the damage instead of canceling and redamaging it.

code_language.skript:
on damage of creeper:
    damage was caused by lightning
    set damage to 50

Can set it to whatever you want.

It does change if you cancel the damage but that would work too.
 
code_language.skript:
on rightclick:
     if player's tool is whatever:
        strike lightning at targeted block #WHICH FOR THE THIRD TIME WILL CHANGE A CREEPER TO A CHARGED CREEPER IF IT IS HIT
        #Or if you only want it to strike lightning if they're targeting a creeper do this:
        if player's target is creeper:
            strike lightning at the player's target

on damage of creeper:
    if damage was caused by lightning:
         set damage to whatever
 
code_language.skript:
on rightclick:
     if player's tool is whatever:
        strike lightning at targeted block #WHICH FOR THE THIRD TIME WILL CHANGE A CREEPER TO A CHARGED CREEPER IF IT IS HIT
        #Or if you only want it to strike lightning if they're targeting a creeper do this:
        if player's target is creeper:
            strike lightning at the player's target

on damage of creeper:
    if damage was caused by lightning:
         set damage to whatever
this one works also

another question here

got any way to manualy replace or spawn a charged creeper?
sometimes used in other purpose without lightning
 
Status
Not open for further replies.