Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Hunger bar disappears when in boat


Recommended Posts

Don't usually post on forums like this because I'm too nervous but I seriously can't find anything anywhere about how to fix this bug so I guess this is my only option. Currently playing on forge 1.16.3 with OptiFine and for some reason whenever I enter a boat my hunger bar disappears. Figured I would just use a different version of forge 1.16.3 but I've tried just about every single version and this bug happens in every single one of them. For me anyway. I'm playing with OptiFine and at first I thought it was a bug with that, but I deleted it and the bug still persists. I know this isn't supposed to be happening because in vanilla 1.16.3 the hunger bar still shows whenever I'm in a boat. I don't know if this is an issue with forge itself or maybe something else I'm unaware of that's affecting it, but can somebody please tell me how to fix this? I know it wouldn't matter to most people but its driving me crazy. Let me know if I need to provide more information.

Link to post
Share on other sites
16 hours ago, MostafaSabry55 said:

Isn't that normal anyway? Hunger bars always seemed to disappear when riding entities

Nah fam lol that's definitely not normal. In the vanilla game it stays on the screen. Always has. I think you're under the impression that I mean my hunger goes down. THAT is normal, I just mean that the entire hunger bar itself isn't on screen at all, meaning I can't see how much hunger I even have to begin with while I'm in a boat. Which is not normal.

Link to post
Share on other sites
3 hours ago, MrInfinity said:

It's normal on optifine for your hunger bar to dissapear. It's for ease of usage

 

Hmm... well then in that case I don't understand why whenever I removed OptiFine from my game entirely it still persisted. And I always see all these YouTubers such as the people on HermitCraft using OptiFine in the most recent versions of Minecraft, yet whenever they enter boats in their episodes their hunger bar still remains on the screen. Can somebody at least tell me if there's a way I can make it not disappear because based on literally everything I've found on the internet it just seems wrong lol. I have watched numerous Minecraft YouTubers use OptiFine in 1.16 and this is the very first time I am encountering this. And so far I have yet to see it anywhere else. Idk maybe I'm just going insane.

Link to post
Share on other sites
1 hour ago, MrInfinity said:

I think that there might be an option in the in-game setting to turn it off or on

Well if there is then could you please tell me where it is located? I'm looking absolutely everywhere in the settings and I'm unable to find it. Really don't think its OptiFine related since it still happens when I uninstall OptiFine, and I like to think that if it was a normal Minecraft thing I would have known about it by now. So I'm fairly certain its just a bug with forge. I also didn't mess with any settings at all, it just randomly started happening. But if there is somehow a setting that will allow me to make things go back to normal please tell me how I can get to it because despite my looking I am unable to find any settings like that.

Link to post
Share on other sites
3 hours ago, diesieben07 said:

Compared it with vanilla - this is exactly what happens in vanilla, too.

Bruh then how come when I do it in vanilla the hunger bar is still visible on the screen, or when I watch several videos of Minecraft YouTubers in boats their hunger bar is still on the screen as well? This is the very first time in my seven or eight years of playing Minecraft that this has happened to me. Starting to think you guys seriously don't understand what I mean or that you're just purposefully messing with me lol. Just to disprove your point, here is this episode of Grian's HermitCraft 7 series. Skip to 16:01. He's in a boat and the hunger bar is still on the screen. This is how it should be for me, but its not. Please tell me how to fix it.

 

Edited by Fleef69
Link to post
Share on other sites
3 hours ago, diesieben07 said:

Compared it with vanilla - this is exactly what happens in vanilla, too.

Just to clarify even further, the first image is a screenshot of me in vanilla Minecraft, completely unmodded, in a boat, with the hunger bar still on the screen. The second image is of me in Minecraft forge, WITHOUT OptiFine or any other mods active except for forge itself, in a boat, with the hunger bar NOT on the screen. This is what I'm dealing with and what I'm trying to fix.

2020-10-28_08.13.24.jpg

2020-10-28_08.16.04.jpg

Link to post
Share on other sites
16 minutes ago, diesieben07 said:

I derped completely and tested it with a horse.

Lesson of the day: A boat is not a horse. Confirmed with a boat... Will make a fix later.

Oh okay lol, that's fine we all derp up completely sometimes. But thank you so much I really appreciate it. Doesn't necessarily impact the game in any way but little things like this still drive me crazy. So yea if you can manage to find me a way to fix this I would really appreciate that a lot.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Ok so, i changed the entity in this way:   public class SmokeBulletEntity extends DamagingProjectileEntity implements IRendersAsItem { private static final DataParameter<Boolean> ACTIVATED = EntityDataManager.defineId(SmokeBulletEntity.class, DataSerializers.BOOLEAN); private static final ItemStack STACK = new ItemStack(ModItems.BULLET.get()); private int duration; public SmokeBulletEntity(World world) { super(ModEntities.SMOKE_BULLET.get(), world); } @Override public ItemStack getItem() { return STACK; } @Override protected void onHitBlock(BlockRayTraceResult rayTraceResult) { if (this.isActivated()) return; if (!this.level.isClientSide) { this.activate(); } super.onHitBlock(rayTraceResult); } @Override protected void onHitEntity(EntityRayTraceResult entityRayTraceResult) { //Must be Empty } private void activate() { this.setActivated(true); this.duration = 200; this.setDeltaMovement(0, 0, 0); this.xPower = 0; this.yPower = 0; this.zPower = 0; System.out.println("Active Smoke Projectile"); } @Override public void tick() { if (this.isActivated()) { for (int i = 0; i < 100; i++) { this.level.addParticle(ParticleTypes.FLAME, this.getX(), this.getY() + i, this.getZ(), 0, 0, 0); } this.duration--; if (this.duration <= 0) { this.remove(); } } else { super.tick(); } } @Override public void addAdditionalSaveData(CompoundNBT nbt) { super.addAdditionalSaveData(nbt); nbt.putBoolean("activated", this.isActivated()); nbt.putInt("duration", this.duration); } @Override protected void defineSynchedData() { super.defineSynchedData(); this.entityData.set(ACTIVATED, false); } public void setActivated(boolean activated) { this.entityData.set(ACTIVATED, activated); } public boolean isActivated() { return this.entityData.get(ACTIVATED); } @Override public EntityDataManager getEntityData() { return super.getEntityData(); } @Override public void readAdditionalSaveData(CompoundNBT nbt) { super.readAdditionalSaveData(nbt); if (nbt.contains("activated")) { this.setActivated(nbt.getBoolean("activated")); } if (nbt.contains("duration")) { this.duration = nbt.getInt("duration"); } } @Override public IPacket<?> getAddEntityPacket() { return NetworkHooks.getEntitySpawningPacket(this); } } But now, when i spawn it i encounter this error: [15:39:10] [Server thread/FATAL] [minecraft/ThreadTaskExecutor]: Error executing task on Server java.lang.NullPointerException: null at net.minecraft.network.datasync.EntityDataManager.set(EntityDataManager.java:122) ~[forge:?] {re:classloading} at com.ike.gunmod.entity.SmokeBulletEntity.defineSynchedData(SmokeBulletEntity.java:93) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.entity.Entity.<init>(Entity.java:216) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.entity.projectile.ProjectileEntity.<init>(ProjectileEntity.java:25) ~[forge:?] {re:classloading} at net.minecraft.entity.projectile.DamagingProjectileEntity.<init>(DamagingProjectileEntity.java:26) ~[forge:?] {re:classloading} at com.ike.gunmod.entity.SmokeBulletEntity.<init>(SmokeBulletEntity.java:35) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at com.ike.gunmod.item.gun.SmokeGunItem.getBullet(SmokeGunItem.java:32) ~[?:?] {re:classloading} at com.ike.gunmod.item.gun.AbstractGunItem.use(AbstractGunItem.java:42) ~[?:?] {re:classloading} at net.minecraft.item.ItemStack.use(ItemStack.java:217) ~[forge:?] {re:classloading,xf:fml:forge:filled_map.4,xf:fml:forge:itemstack} at net.minecraft.server.management.PlayerInteractionManager.useItem(PlayerInteractionManager.java:287) ~[forge:?] {re:classloading} at net.minecraft.network.play.ServerPlayNetHandler.handleUseItem(ServerPlayNetHandler.java:982) ~[forge:?] {re:classloading} at net.minecraft.network.play.client.CPlayerTryUseItemPacket.handle(CPlayerTryUseItemPacket.java:28) ~[forge:?] {re:classloading} at net.minecraft.network.play.client.CPlayerTryUseItemPacket.handle(CPlayerTryUseItemPacket.java:9) ~[forge:?] {re:classloading} at net.minecraft.network.PacketThreadUtil.lambda$ensureRunningOnSameThread$0(PacketThreadUtil.java:19) ~[forge:?] {re:classloading} at net.minecraft.util.concurrent.TickDelayedTask.run(TickDelayedTask.java:17) ~[forge:?] {re:classloading} at net.minecraft.util.concurrent.ThreadTaskExecutor.doRunTask(ThreadTaskExecutor.java:136) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.concurrent.RecursiveEventLoop.doRunTask(RecursiveEventLoop.java:22) ~[forge:?] {re:classloading} at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:734) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:159) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.concurrent.ThreadTaskExecutor.pollTask(ThreadTaskExecutor.java:109) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:717) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:711) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.concurrent.ThreadTaskExecutor.managedBlock(ThreadTaskExecutor.java:119) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:697) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:646) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:232) ~[forge:?] {re:classloading,pl:accesstransformer:B} at java.lang.Thread.run(Thread.java:748) [?:1.8.0_231] {} Why this happen?
    • nvidia gtx 2060 we found out the cause. it is with the mana and artifice mod and not having optifine, unfortunately our modpack crashes with optifine installed  
    • The log does not even contain an attempted connection. Again, please post the client log. What do you mean by "customer"?
    • マインクラフト
    • nobody connected because we can't and I don't know where the customer is
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.