SoulzNate Posted January 22 Share Posted January 22 Hi Im trying to get my dupe skript to detect blacklisted item and not dupe them command /dupe. [<number>]: permission: dupe.1 trigger: if player's tool is a shulker box: set {_shulker} to player's tool loop all items in inventory of {_shulker}: if {@blacklist} contains loop-item: send "{@prefix} &fShulker duplication cancelled! The shulker box contains blacklisted items." stop send "{@prefix}: &fYou just duped the shulker box with its contents!" to player add player's tool to player's inventory else: # Rest of your existing duplication logic if {@blacklist} contains player's tool: send "{@prefix} &fYou <##ff4e4e>cannot &fdupe that item!" stop else if held item is netherite sword named "&6&lSharp 6 sword": send "{@prefix} &fYou <##ff4e4e>cannot &fdupe that item!" stop else if held item is paper named "&a$&2MVP rank Voucher&a$": send "{@prefix} &fYou <##ff4e4e>cannot &fdupe that item!" stop else if held item is paper named "&a$&2VIP rank Voucher&a$": send "{@prefix} &fYou <##ff4e4e>cannot &fdupe that item!" stop else: # Rest of your existing duplication logic command /dupe. [<number>]: permission: dupe.1 trigger: if player's tool is a shulker box: set {_shulker} to player's tool loop all items in inventory of {_shulker}: if {@blacklist} contains loop-item: send "{@prefix} &fShulker duplication cancelled! The shulker box contains blacklisted items." stop send "{@prefix}: &fYou just duped the shulker box with its contents!" to player add player's tool to player's inventory else: # Rest of your existing duplication logic if {@blacklist} contains player's tool: send "{@prefix} &fYou <##ff4e4e>cannot &fdupe that item!" stop else if held item is netherite sword named "&6&lSharp 6 sword": send "{@prefix} &fYou <##ff4e4e>cannot &fdupe that item!" stop else if held item is paper named "&a$&2MVP rank Voucher&a$": send "{@prefix} &fYou <##ff4e4e>cannot &fdupe that item!" stop else if held item is paper named "&a$&2VIP rank Voucher&a$": send "{@prefix} &fYou <##ff4e4e>cannot &fdupe that item!" stop else: # Rest of your existing duplication logic Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now