ipsq Posted August 26, 2014 Share Posted August 26, 2014 Is there a way to right click an item in the hotbar? I'm not talking about food, I want to right click a stick. Is this possible? Quote Link to comment Share on other sites More sharing options...
ipsq Posted August 26, 2014 Author Share Posted August 26, 2014 I want to trigger it and I already found it. For the peeps interested: minecraft.playerController.sendUseItem(player, player.getEntityWorld(), inventory.getCurrentItem()); Quote Link to comment Share on other sites More sharing options...
ipsq Posted August 26, 2014 Author Share Posted August 26, 2014 How do I do it then? Quote Link to comment Share on other sites More sharing options...
ipsq Posted August 26, 2014 Author Share Posted August 26, 2014 public ItemStack useItemRightClick(World p_77957_1_, EntityPlayer p_77957_2_) { return this.getItem().onItemRightClick(this, p_77957_1_, p_77957_2_); } public ItemStack onItemRightClick(ItemStack p_77659_1_, World p_77659_2_, EntityPlayer p_77659_3_) { return p_77659_1_; } This doesn't appear to do a lot? Quote Link to comment Share on other sites More sharing options...
ipsq Posted August 26, 2014 Author Share Posted August 26, 2014 I just want to to trigger a right click action on this item. The server needs to know I pressed the right mouse button. There is nothing going on, on the client side. Quote Link to comment Share on other sites More sharing options...
ipsq Posted August 26, 2014 Author Share Posted August 26, 2014 I already found a working solution. Thanks for the help anyway! Quote Link to comment Share on other sites More sharing options...
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.