Posted June 16, 20169 yr 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 )
June 16, 20169 yr 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?
June 16, 20169 yr Author 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
June 16, 20169 yr Author 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
June 16, 20169 yr Author There isn't. well thats kinda sad, Im just gonna leave the thread as unsolved for a day or so to see if anyone can come up with any better solution. thanks for your time anyways
June 16, 20169 yr Author What you could do is wrap any other custom renderer in yours. Im honestly not 100% sure how i would go about doing that. any documentation or such you could link me to?
June 16, 20169 yr 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.
June 16, 20169 yr 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.
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.