Danex Posted July 17, 2023 Share Posted July 17, 2023 I'm writing a /dupe plugin, (hold an item, type /dupe, it doubles. simple.) and I have some items blacklisted from being duped. However I'd like to allow shulker boxes to be duped to allow for making kits, but I can't figure out how to keep blacklisted items from being duped while inside a shulker. I'm using skbee to try and get the nbt data of the held shulker but I can't get it to work. Help? Link to comment Share on other sites More sharing options...
devyy Posted August 5, 2023 Share Posted August 5, 2023 If it's plugin when the player uses /dupe on a shulker box, loop through its inventory and check each item against your blacklist. If any blacklisted items are found, cancel the duplication and let the player know 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