howpenguin Posted January 3, 2015 Posted January 3, 2015 I am making a mod with a level system in it and i need to make it so the player cannot use a tool if theyre not a certain level. Much like a sword cannot break blocks. I have already tried PlayerUseItemEvent and it does not work with tools. Thanks!! Quote
larsgerrits Posted January 4, 2015 Posted January 4, 2015 You can use the PlayerInteractEvent and check if event.action==Action.ACTION_YOU_WANT . Quote Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
howpenguin Posted January 4, 2015 Author Posted January 4, 2015 So if I do that how would i make it so they cannot use the tool? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.