#Overhauled hud stuff

50 messages · Page 1 of 1 (latest)

sour sage
idle maple
#

This is super cool!

sour sage
#

hearts are also now overlayed with a semi transparent white so that I dont have to make a blinking version for every heart

sour sage
glacial lark
#

Nice job

fast mantle
#

Those absorption hearts read like shields to me. Not sure if that's the intent?

summer maple
#

Float values should have been continuous.

mental tusk
#

Might be stupid but it would be cool if there was an option for any food item to be the hunger in the config

sour sage
#

maybe

mental tusk
#

No it’s not

sour sage
#

I realised

#

I thought you were talking abt something else

#

myb

sour sage
# sour sage maybe

It wouldnt be hard to implement, the only problem is that there would need to be 18 textures for each item

mental tusk
#

I recently found out Aseprite has a sprite resizing thing, that could be a way to make the textures to whatever size is needed, then ur magic that makes the game better than legit any hud mod I’ve seen

sour sage
#

defaults back to a 4 segment version of the vanilla texture if the armor doesnt have an icon texture

#

so should still look fine when wearing modded armor from other mods

#

(you can also add icons via a texture pack and they'll automatically be used for any modded armors)

summer maple
# sour sage ?

I mean, health is a decimal rather than an integer, but vanilla shows it as integer (half heart is one health).

idle maple
north ether
#

is it available to download?

sour sage
#

But it should be out soonish

sour sage
# sour sage armor

Making a texture pack that adds support for some modded armors that will be uploaded to curse/modrinth

sour sage
#

github has now been updated to show the rewritten version of the mod

north ether
#

is there a possiblity you could backport it to 1.20.1?

#

newest create is on that version

sour sage
#

but it'll be updated to the next version when it comes out

#

(which should be in the next few months)

sour sage
#

styles can now be set per item

#

better reg tooltip

sour sage
#
String effect = "";
if (!isAbsorption) {
    if (playerEntity.hasStatusEffect(StatusEffects.POISON)) {
        effect = poisonSuffix;
    }
    else if (playerEntity.hasStatusEffect(StatusEffects.WITHER)) {
        effect = witherSuffix;
    }
    else if (playerEntity.isFrozen()) {
        effect = frozenSuffix;
    }
    else {
        InGameHud.HeartType heartType = InGameHud.HeartType.fromPlayerState(playerEntity);
        if (heartType != InGameHud.HeartType.NORMAL) {
            Identifier heartTypeId = heartType.getTexture(false, false, false);
            String untestedEffect = heartTypeId.getPath().replaceFirst("hud/heart/", "").replaceFirst("_full", "");

            if (!client.getGuiAtlasManager().getSprite(texture.withSuffixedPath("_" + untestedEffect + "_4")).equals(missing)) {
                effect = untestedEffect;
            }
            else {
                UAdd.LOGGER.warn("Found unsupported heart type: " + heartTypeId.getPath() + " with namespace: " + heartTypeId.getNamespace());
            }
        }
    }

    if (!effect.isEmpty()) texture = texture.withSuffixedPath(effect);
}```Now supports modded hearts being added via texture pack
#

assuming they are defined via a HeartType (which they should be)

terse cloud
sour sage
terse cloud
#

Ahhh

sour sage
#

ex. crystal tools scale with your xp level, blaze-metal tools have auto smelting/fire aspect built into them