Jump to content

I Need Help With blacklisting items with my dupe skript


S5_FrozTie

Recommended Posts

4 hours ago, S5_FrozTie said:

i have blacklisted items in my dupe slript do people cant dupe them i made something called Coins that was sunflowers and i blacklisted them but i can still dupe them i think its because it had a custom name if you know any fixes please tell me

send your skript

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

2 hours ago, AgentGamerPro said:

send your skript

well i changed it but i have loot boxes that i dont want people do /dupe if you can add something so i can blacklist the lootboxes that would be so nice

command /dupe:
    cooldown: 0 seconds
    cooldown message: &7&d&lDupeX&e&lSmpSF&5&lS1 Said > You can use this command in &d%remaining time%!
    trigger:
        if player's held item is air:
            send "&4&lHfc&3&o&lX&f&lDupe > &4[!]&7&d&lDupeX&e&lSmpSF&5&lS1 SAID NO DUPING AIR ! "
            cancel the cooldown
            stop
        else:
            if type of player's held item contains bedrock :
                send "&7&d&lDupeX&e&lSmpSF&5&lS1 Said > This item is &0&l&oblacklisted ! "
                cancel the cooldown
                stop
            if type of player's held item contains End Portal Frame:
                send "&7&d&lDupeX&e&lSmpSF&5&lS1 Said > This item is &0&l&oblacklisted ! "
                cancel the cooldown
                stop
                give player player's tool
            give player player's tool
            send "&7&d&lDupeX&e&lSmpSF&5&lS1 Said > Duplicated &e&l%player's tool%&6&l!" to player

 

 

Link to comment
Share on other sites

1 hour ago, S5_FrozTie said:

well i changed it but i have loot boxes that i dont want people do /dupe if you can add something so i can blacklist the lootboxes that would be so nice

command /dupe:
    cooldown: 0 seconds
    cooldown message: &7&d&lDupeX&e&lSmpSF&5&lS1 Said > You can use this command in &d%remaining time%!
    trigger:
        if player's held item is air:
            send "&4&lHfc&3&o&lX&f&lDupe > &4[!]&7&d&lDupeX&e&lSmpSF&5&lS1 SAID NO DUPING AIR ! "
            cancel the cooldown
            stop
        else:
            if type of player's held item contains bedrock :
                send "&7&d&lDupeX&e&lSmpSF&5&lS1 Said > This item is &0&l&oblacklisted ! "
                cancel the cooldown
                stop
            if type of player's held item contains End Portal Frame:
                send "&7&d&lDupeX&e&lSmpSF&5&lS1 Said > This item is &0&l&oblacklisted ! "
                cancel the cooldown
                stop
                give player player's tool
            give player player's tool
            send "&7&d&lDupeX&e&lSmpSF&5&lS1 Said > Duplicated &e&l%player's tool%&6&l!" to player

 

 

try "if players held item is %itemtype%" like " if player's held item is end portal frame named "&aEnd Frame": "

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

18 hours ago, S5_FrozTie said:

can you slightly add it to the skript so i understand it please

#I added a few fixes:
#But beware, this is untested

command /dupe:
    cooldown: 0 seconds #<-- Why is this needed?
    cooldown message: &7&d&lDupeX&e&lSmpSF&5&lS1 Said > You can use this command in &d%remaining time%!
    trigger:
        if player's held item is air:
            send "&4&lHfc&3&o&lX&f&lDupe > &4[!]&7&d&lDupeX&e&lSmpSF&5&lS1 SAID NO DUPING AIR ! "
            cancel the cooldown
            stop
        else:
            if type of player's held item is bedrock : #<-- example of what AgentGamerPro said
                send "&7&d&lDupeX&e&lSmpSF&5&lS1 Said > This item is &0&l&oblacklisted ! "
                cancel the cooldown
                stop
            if player's held item is end portal frame:
                send "&7&d&lDupeX&e&lSmpSF&5&lS1 Said > This item is &0&l&oblacklisted ! "
                cancel the cooldown
                stop
                #give player player's tool #unnecessary, already stopped before this
            set {_amount} to amount of player's held item
            give player {_amount} of player's held item
            send "&7&d&lDupeX&e&lSmpSF&5&lS1 Said > Duplicated &e&l%player's tool%&6&l!" to player

I tried to give an example above.

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...