Solved help with custom zombie drop and unbreakable

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

3dpixelartman

Member
Jun 23, 2021
23
0
1
24
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?
 
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?
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
 
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?
[doublepost=1634093246,1633923598][/doublepost]
How do I add it?
Code:
on death of zombie:
    attacker is a player:
        set drops to unbreakable diamond sword of sharpness 3
 
Status
Not open for further replies.