a weapon that kills creative mode too.

  • 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.
Jun 30, 2022
17
1
3
40
Republic of Korea
Hi!
I'm making an axe that can kill creative mode players by left-clicking them, too.
So I used "on leftclick on entity:" and it says to use "on damage:" instead.
But hitting creative player does not cause damage, so It's useless.
Here is my code:
Code:
on rightclick on entity:
    if player is holding iron axe:
        if name of player's tool contains "&cKiller":
            kill clicked player
 
Hi!
I'm making an axe that can kill creative mode players by left-clicking them, too.
So I used "on leftclick on entity:" and it says to use "on damage:" instead.
But hitting creative player does not cause damage, so It's useless.
Here is my code:
Code:
on rightclick on entity:
    if player is holding iron axe:
        if name of player's tool contains "&cKiller":
            kill clicked player
I haven't tested this, but maybe use:
Code:
set health of clicked player to 0
If it's just a warning and not an error to use on damage, you can probably just ignore it.
 
Status
Not open for further replies.