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.

Solved help with custom zombie drop and unbreakable

Discussion in 'Skript' started by 3dpixelartman, Oct 6, 2021.

  1. 3dpixelartman

    3dpixelartman Member

    Joined:
    Jun 23, 2021
    Messages:
    10
    Likes Received:
    0
    I am new to script and I want to make a zombie drop a diamond with sharpness 3 and I want to make it unbreakable. Does anyone know how?

     
  2. Best Answer:
    Post #6 by oToghty, Oct 13, 2021
  3. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    142
    Likes Received:
    5
    use the death event, check if the attacker is a player, check if the victim is a zombie, cancel drops, drops unbreakable diamond of sharpness 3 at victim
     
  4. 3dpixelartman

    3dpixelartman Member

    Joined:
    Jun 23, 2021
    Messages:
    10
    Likes Received:
    0
    can you put that in a code?
     
  5. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    142
    Likes Received:
    5
    But... you didn't even try
     
  6. 3dpixelartman

    3dpixelartman Member

    Joined:
    Jun 23, 2021
    Messages:
    10
    Likes Received:
    0
    wait put the heck if the attacker is a player, check if the victim is a zombie, cancel drops, drops unbreakable diamond of sharpness 3 at victim in the code?
    --- Double Post Merged, Oct 13, 2021, Original Post Date: Oct 11, 2021 ---
    How do I add it?
     
  7. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    142
    Likes Received:
    5
    Code (Text):
    1. on death of zombie:
    2.     attacker is a player:
    3.         set drops to unbreakable diamond sword of sharpness 3
    4.    
     
  8. 3dpixelartman

    3dpixelartman Member

    Joined:
    Jun 23, 2021
    Messages:
    10
    Likes Received:
    0
    ok ty
     

Share This Page

Loading...