#How to make a custom mana bar above the health bar in fabric 1.21.1 ?

38 messages · Page 1 of 1 (latest)

gritty sail
#

Hi, I'm trying to implement a mana bar in minecraft fabric 1.21.1. This bar will be the same as the picture I provided. I tried to use some APIs but it didnt work and I dont know why

Can someone please help me on this ?

#

P/S: I struggle ts for 2 weeks and I still can't find any solutions 😭 if anyone can help me please help and I will be appriciated

storm vapor
#

have you checked in though as nails source code ?

storm vapor
gritty sail
#

yea im checking it source code right now

storm vapor
#

you could find what you want ig

#

maybe there are some parts in glitchcore too

gritty sail
#

oh ok thanks

#

ill check tan source code

storm vapor
gritty sail
#

Im reading the tan source code and I got this

#

how can I fix it bro ?

#

like the whole gradle.build file is covered in red 💀

storm vapor
#

humm the build.gradle is a bit complex to just load and look at

gritty sail
#

should I remove it ?

storm vapor
#

remove things in the build.gradle that you don't need, keep dependencies and loom/sourcesets basic settings

#

it should work then

gritty sail
#

hmm i think this is way complicated to look at though

#

is there anyway I can implement this easily ?

#

i saw a tutorial from kaupenjoe but it is from 1.19

#

and it was way outdated

storm vapor
#

he didn't remade one ?

gritty sail
#

yea he didnt

#

that is so sad tho

gritty sail
#

can u help me on this ?

storm vapor
#

I didn't made rendering for gui sadly

#

did you read the fabric tutorial on this ?

woven vigil
#

Fabric API has a bar rendering API

#

Ah not available for 1.21.1

gritty sail
#

bro is there any viable solution for this 😭

ornate stratus
#

yes

#

use the HudRenderCallback

#

or mixin to where the health bar is rendered

gritty sail
#

but i dont know how to do it

#

can u help me bro ?