Posted April 11, 201510 yr Hi, I'm trying to make an item change state when a player has it in their hand while holding shift and scrolling with their mouse wheel. I've seen some mods do this, but I just can't find where it is triggered in their code. Thanks!
April 11, 201510 yr You can do it on onPlayerTick event like player.getCurrentItem and player.isSneaking() but I don't know scrolling.
April 11, 201510 yr Hi I suggest subscribing to MouseEvent. Have you used events before? if not there are a couple of good tutorials on this board. @SubscribeEvent public void interceptMouseInput(MouseEvent event) { if (event.dwheel == 0) return false; -TGG
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.