Jump to content

Recommended Posts

Posted

I am currently working on a Minecraft 1.19 mod, and I am trying to create a feature where the item in the player's hand becomes invisible when a certain condition is met. For example, I have an item that makes the player invisible, and I would like to make the item in the player's hand also become invisible along with the player. I am having trouble figuring out how to implement this feature and would greatly appreciate any help on how to do this.

Posted

can you make it change sprite depending on condition (like clock or a bow)? once you have that, having one piece of png file transparent should do the job.

disclaimer: haven't tried.

Posted

i was thinking in that back in 1.12 when i was doing the guns 
but mi plans was to make a holder item something like an small box but in the json display firstperson/left/right hand set the size to 0.0  this box has an nbt container whit only one space for an itemstack and to avoid missing the item the box count 20 ticks in OnUpdate() and delete itself returning the stored itemstack back to that hand slot 

well is not easy solution i never do the code for that 
may is posible to delete the rendered arm for the client side or something the bow does 



 

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.