Jump to content

[1.9.4] [Solved]How to make a dropped item invisible?


Tina Sprout

Recommended Posts

Basically i want to make items dropped not render, but still be there so they can be picked up.

Also what does:

-event.getEntity().setInvisible(true); (itemTossEvent)

-event.getEntityItem().setInvisible(true); (ItemTossEvent)

do as they did not do anything to the dropped item.

any pointers would be appreciated (as long as they are not from sham1  ;) )

 

Link to comment
Share on other sites

I can think on something, not sure if it would work, or be the best way to do it, but maybe on the .json under display, you can set the scale of the item to 0 when it's on ground view?

Im not entirely sure you mean by ".json under display", also just to clarify i need to be able to apply the invisibility to vannila items aswell as other modded items aswell

Link to comment
Share on other sites

Kill the original Item entity and spawn a custom one that has a renderer that respects invisibility.

Im not sure this would be ideal, as i said before i need this to work with modded items (from other mods) so if they have a custom render that would cause problems (as far as im aware atleast), It is the best idea ive seen so far though. I was hoping there was away to cancel the render for items on the ground

Link to comment
Share on other sites

RenderInvisItem extends RenderEntityItem

EntityInvisItem extends EntityItem

 

You register your render to your entity item.

 

In your doRender you can render whatever you want - including using other renderers (which you can pull out from render registry or whatever).

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

If you want it to be invisible why the fuck are you bothering to render anything at all!?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.

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.