Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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  ;) )

 

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?

  • 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

  • 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

  • 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
  • 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?

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.

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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.