Durability101 Forge/Fabric 1.12-1.21

Durability101 Forge/Fabric 1.12-1.21

4M Downloads

Rendering over tooltips

Darkere opened this issue ยท 7 comments

commented

The durability numbers render over tooltips making them look weird.

image

Forge: 31.1.18
Durability101-1.15-0.0.3

commented

Earlier versions of Minecraft don't have z-translation problems, however around 1.13-1.15 they switched to a new rendering engine, they dynamically add to a z-offset variable, which is hard to get access to, and with other mods and coremods messing with it, it can be hard to find a single good value, I just rebased all versions of my mod and tested every version, 750 works both in dev and a fresh install of every version, so if it's broken now it's because of another mod or older modloader version than latest, hopefully this fixes it for you.

commented

image
I have a funnier image example here.
I suggest as immediate solution a button to toggle its rendering

commented

Hello I just wanted to say I also get this issue on forge 1.16 32.0.75 & durability101-1.16-0.0.3.
image

commented

Happens on Fabric as well. durability101-1.16-0.0.3, fabric loader 0.9.0 build 204
2020-08-09_00-47

commented

I just saw this bug on a youtube video, seems it might be a vanilla issue, but I haven't been able to recreate it
image

commented

It looks like you are doing your translate too high. matrices.translate(0.0D, 0.0D, 500.0F); am I wrong? 500 is really high.

commented

I cloned the repo and tested some numbers in debug mode. It seems 258 is the perfect z level. It's high enough to not clip into blocks. It might clip into some models from other mods though. Tooltips are rendered at z level 400. So anything between these two numbers should be fine.