Jump to content

Recommended Posts

Posted

How could I disable the game's Health and Hunger Gui. As I understand it, I need to use ForgeIngameGui, but I don't know how to proceed after that.

 

Sorry for any typos, my English is not the best.

Posted

public static void eventHandler(RenderGameOverlayEvent event) {

if (event.getType() == RenderGameOverlayEvent.ElementType.HEALTH){ event.setcancelled(true);} }

 

unfortunately this code does not work anymore

Posted (edited)

public class RemoveAllBarsOverlay { @SubscribeEvent(priority = EventPriority.NORMAL) public static void IIngameOverlay(RenderGameOverlayEvent Gui) { OverlayRegistry.enableOverlay(ForgeIngameGui.PLAYER_HEALTH_ELEMENT, enable); } }

Edited by Dreyka Oas
Posted

public static void IIngameOverlay(RenderGameOverlayEvent Gui) { OverlayRegistry.enableOverlay(ForgeIngameGui.PLAYER_HEALTH_ELEMENT, false); }

 

 

this working yeeeesss

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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