Jump to content

Dupe Skript


bloke

Recommended Posts

Hello!

I just need to know how to add a segment to this skript:

options:
 prefix: &4Coke&cDupe &8| &cItem &4Duped!

command /dupe:
    trigger:
        set {_item} to player's tool
        give {_item} to player
        send "{@prefix}"
        stop

I need to add a segment that tells it if the item has "&fUndupable" in the lore then you cant dupe it. Thank you!

Link to comment
Share on other sites

Hello, i think this is what you meant correct me if im wrong.

 

options:
 prefix: &4Coke&cDupe &8| &cItem &4Duped!

command /dupe:
    trigger:
        set {_item} to player's tool
        if {_item}'s lore does not contain "&fUndupable":
            give {_item} to player
            send "{@prefix}"
            stop
        else:
            send "&cYou can't dupe this item." // feel free to edit this

 

Edited by TheDarkSharker
Link to comment
Share on other sites

  • 1 month later...

thats wrong, look here!

options:
 prefix: &4Coke&cDupe &8| &cItem &4Duped!

command /dupe:
    trigger:
        set {_item} to player's tool
        if {_item} doesn't contain lore "undupeable":    
            give {_item} to player
            send "{@prefix}"
            stop
        else:
            message "&cYou Cant Dupe This Item ):"

 

Edited by HugeAdventure
Minecraft Developer 4+ years
 
Discord: HugeAdventure

image.gif.6ea2bf97b6307b1093517252fd317d10.gif

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