Jump to content

Recommended Posts

Posted

 

 

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

(estatica)

suspensionderedstone7.png

 

to this

(shaking)

shake.gif

 

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

(shaked)

activada.gif

 

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

https://gist.github.com/anonymous/7856798aa7b17366e64a

 

 

thanks for reading

 

 

 

 

 

 

 

 

 

 

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

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