Trying to make a netherite sword with the name &dBlade Of Gaia drop gold nuggets and ingots when it kills a mob

  • 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 community!

    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!

Yushaa

Active Member
Oct 19, 2023
64
2
8
current code
#options:
bog: &dBlade of Gaia
on death:
if attacker's held item is netherite sword: #Just to make sure
#if name of held item is "{@bog}":
if name of held item is "&dBlade Of Gaia":

else if victim is mob:
drop random integer between 16 and 18 of gold nuggets
drop random integer between 2 and 6 of gold ingots
this is the error message
1697828074292.png
 
Hey, try this:
Code:
on death:
    if victim is not a player:
        if attacker is a player:
            if tool of attacker is netherite sword:
                if name of tool of attacker is "&dBlade Of Gaia":
                    drop random integer between 2 and 6 of gold ingots
                    drop random integer between 16 and 18 of gold nuggets