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.

a weapon that kills creative mode too.

Discussion in 'Skript' started by BluePenguin_Won, Oct 22, 2022.

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

    Joined:
    Jun 30, 2022
    Messages:
    16
    Likes Received:
    1
    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 (Text):
    1. on rightclick on entity:
    2.     if player is holding iron axe:
    3.         if name of player's tool contains "&cKiller":
    4.             kill clicked player
     
  2. MultiverShaun

    MultiverShaun Member

    Joined:
    Aug 8, 2022
    Messages:
    27
    Likes Received:
    3
    I haven't tested this, but maybe use:
    Code (Text):
    1. 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.
     
  3. BluePenguin_Won

    Joined:
    Jun 30, 2022
    Messages:
    16
    Likes Received:
    1
    Thank you but It's error at line 1, It says use "on damage:" instead of "on leftclick on entity"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...