Adaxer Posted June 26, 2021 Share Posted June 26, 2021 (edited) Greetings, I scouted the forums in search of a way to have an item in your inventory that makes so you are unable to change position or drop the item. This item will also execute a command like the script below. options: item: stick named "&fClick to open Menu" command: /menu on first join: give player {@item} on right click: execute console command "{@command}" if player's tool is {@item} So the question here is, is there a way to make a feature that makes you unable to drop and move this item? Edited June 26, 2021 by Adaxer Link to comment Share on other sites More sharing options...
Captainclimber Posted June 26, 2021 Share Posted June 26, 2021 Using the events "on inventory click:" and "on drop:" on inventory click: if event-item = {@item}: cancel event on drop: if event-item = {@item}: cancel event 2 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