Jump to content

[1.9]change the item in hand for other


Recommended Posts



i still working whith this item

lets see i wanna update this item to 1.9


this suspension de redstone when you hold rigth click it change the texture from this




to this




and if you hold it shaken for more than 10 sec becomes this




i have the item materialesSuspensionderedstone that use the texture (estatica) when i hold right click i change the item texture to (shaking) and afther 60 ticks i do the change in onItemUseFinish()

replacing teh item whith materialesSuspensionderedstoneActivada that uses texture (shaked)


the trouble is the item is not changing to redstoneActivada in the inventory in the code the console output the change is done but the resulting is you remain whith the original bottle in the hand


well i found than the offhand is the slot 40 from Player inventory, and im doing the change only server side, and if iset the output to another slot then i have the correct bottle in that slot



is this some new feature i have to do something else to change the holded item or is just a bug from the eaarly releaser ??


code is here




thanks for reading











Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.