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

Hi, I wanted to change up the players HUD to look like the one back in the beta days of minecraft.

I managed to remove some elements using this code. But is there a way to simply change the position /  X and Y coordinates of them instead of removing them?

Or is there a way to "re-add" them at a different position? :)

 

public void clear(RenderGameOverlayEvent.Pre event)
{
    if (event.type == ElementType.FOOD)
	{
		event.setCanceled(true);
	}
	if (event.type == ElementType.EXPERIENCE)
	{
		event.setCanceled(true);
	}
	if (event.type == ElementType.HEALTH)
	{
		event.setCanceled(true);		
	}
	if (event.type == ElementType.AIR)
	{
		event.setCanceled(true);
	}
	if (event.type == ElementType.ARMOR)
	{
		event.setCanceled(true);
	}
}
}
  • Author
2 minutes ago, diesieben07 said:

No. The values are hardcoded in GuiIngame (resp. GuiIngameForge). You have to draw them yourself at the new position.

Could I maybe "override" the entire GuiIngameForge class? So it would you my modified one instead of using the normal one forge provides?

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.