Can someone make a script so if a netherite sword is named &dBlade Of Gaia, when it kills an entity they drop 16-18 gold nuggets and 2-6 gold ingots?

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

Yushaa

Active Member
Oct 19, 2023
54
2
8
26
Can someone make a script so if a netherite sword is named &dBlade Of Gaia, when it kills an entity they drop 16-18 gold nuggets and 2-6 gold ingots?
Discord for further information: ignyushaa_
 
Not sure if this would work exactly you may need to change the second line i didn’t add the netherite sword part because you don’t need it as I’m assuming only one type of item will be named blade of gaia

on death:
if attacker’s held item is named “&dBlade Of Gaia”:
set {_r} to random integer between 16 and 18
drop {_r} of gold nuggets at victim
set {_r} to random integer between 2 and 6
drop {_r} of gold ingots at victim


If you want to clear the entities normal drops and only drop the stuff mentioned above then at the first line after line #2 add clear drops
The indentation messed up a little you should know how to do that though or else you should watch some tutorials first
 
Did not know exacly what u wanted so here.
Code:
#options:
#    bog: &dBlade of Gia

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":
            if victim is player:
                stop
            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
 
Did not know exacly what u wanted so here.
Code:
#options:
#    bog: &dBlade of Gia

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":
            if victim is player:
                stop
            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
1697819093943.png
 
Did not know exacly what u wanted so here.
Code:
#options:
#    bog: &dBlade of Gia

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":
            if victim is player:
                stop
            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
Just in case, corrected code:
Code:
on death:
    if attacker's held item is netherite sword named "&dBlade Of Gaia":
        if victim is mob:
            drop random integer between 2 and 6 of gold ingots
            drop random integer between 16 and 18 of gold nuggets