Started by
Siku
on
Topic category: User side tutorials
Here's a list of things you can hide (from mc source)
ALL,
HELMET,
PORTAL,
CROSSHAIRS,
BOSSHEALTH, // All boss bars
BOSSINFO, // Individual boss bar
ARMOR,
HEALTH,
FOOD,
AIR,
HOTBAR,
EXPERIENCE,
TEXT,
HEALTHMOUNT,
JUMPBAR,
CHAT,
PLAYER_LIST,
DEBUG,
POTION_ICONS,
SUBTITLES,
FPS_GRAPH,
VIGNETTE
im not sure what each does since i just copied it to here
Step 1
make a custom element
NAME IT HideHunger (REQUIRED!)
STEP 2
now that youve got a custom element it should have opened a code editor
delete everything other than your packag
paste this below your pacage
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.eventbus.api.SubscribeEvent;
@Mod.EventBusSubscriber(modid = "putmodidhere", bus = Mod.EventBusSubscriber.Bus.FORGE) //SET YOUR MOD ID IN PUTMODIDHERE!
public class HideHunger{
@SubscribeEvent
public static void hideHungerBar(RenderGameOverlayEvent.Pre event) {
if (event.getType() == RenderGameOverlayEvent.ElementType.FOOD) { // .FOOD can be anything from the list at top of forum!
event.setCanceled(true);
}
}
}
.ALL doesnt work but u can remove the if and just cancel to hide all
Edited by Siku on Tue, 02/21/2023 - 13:27
dont try rn itll error fixing quickly
ok it should work now
Is it possible to implement this with a variable to check if an certain Variable or Effect?
Where am I wrong?
Is there a fabric version of this?
PLZ for Mcreator 2023+ ^))))))
2023+?
Can you make a tutorial for 2023.4 / 1.20.1+