CustomHud

CustomHud

Mod

A highly customizable variable-based text hud

Client DecorationUtility

71.2k downloads
229 followers
Created3 years ago
Updated3 days ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

[1.19] Version 2.0.0

Changelog

What's new in v2.0.0!

  • All the new stuff is documented!
  • Huge refactor needed to allow for conditionals (some variables act a bit differently now)
  • Finally add better conditionals, with comparison support (#2, #14)
    • Also includes 1-deep nesting! (hey, it's better than the previous 0) To nest, use ' instead of " in the inner one
  • Added variable flags:(#5, #26)
    • uppercase (-uc), lowercase (-lc), titlecase (-tc), smallcaps (-sc), and no dashes (-nd) for String variables
    • precision (-p<precision>) and scale (-s<scale>, can either be decimal or fraction) for Decimal variables
  • Added a Statistic variable (#19)
    • Syntax: {stat:<minecraft_statistic_id>} or {stat:<type>:<value>}
    • Since mc stats are ints, you can use the scale and precision flags to get it to the right unit
    • Also has -f flag to use the stat's built-in formatter (doesn't work with scale and precision flags)
    • Updates twice a second for now (it's limited as it has to send and receive a packet from the server to update)
  • Added variables for target block, fluid, and entity (#8)
    • Block: {target_block} (block name) and {target_block_id} (target cord variables already exist)
    • Fluid: {target_fluid}, {target_fluid_id}, {target_fluid_x}/{tfx}, {target_fluid_y}/{tfy}, {target_fluid_z}/{tfz}
    • Entity: {target_entity}, {target_entity_id}, {target_entity_x}/{tex}, {target_entity_y}/{tey}, {target_entity_z}/{tez}
  • Added variables for held items: (#23)
    • Main hand: {item}, {item_id}, {item_dur}, {item_max_dur}, {item_dur_per}, {item_has_dur}
    • Offhand: {oitem}, {oitem_id}, {oitem_dur}, {oitem_max_dur}, {oitem_dur_per}, {oitem_has_dur}
  • Added Region variables (in 1.18, it's the number and file name next to chunk_x and chunk_z)
    • Region: {region_x}/{rex}, {region_z}/{rez}
    • Region Relative: {region_relative_x}/{rrx}, {region_relative_z}/{rrz}
  • Added CPU Usage ({cpu}/{cpu_usage}) (#14)
  • Added GPU Usage ({gpu}/{gpu_usage})
  • Added Slime Chunk boolean variable ({slime_chunk}) (#13)
  • Added Simulation Distance ({simulation_distance}/{sd})
  • Added Off Heap Memory ({memory_off_heap})
  • Added Sodium Support:
    • {sodium_version}, {sodium_chunk_arena_allocator}, {sodium_staging_buffers}, {sodium_buffer_objects}, {sodium_memory_used}, {sodium_memory_allocated}
    • Currently ignores flags
  • Added (some) Iris Support:
    • {iris_version}, {iris_shaderpack}, {iris_shaderpack_profile}, {iris_shaderpack_changes},
  • Add optional width for sections (#27)
  • Add ability for certain sections to hide when the chat is open (#21)
  • Ability to select font
    • Using the ==Font:<font>== flag
    • 1.18's new illageralt font was modified to allow non-alphanumeric characters to show (aka not be boxes) so that it's usable for the hud
    • Same thing with the alt font (the one used in the enchanting table, the Standard Galactic Alphabet)
    • Made an illageralt2 font that's the same as above, but also displays numbers normally
  • Added ability for other mods to add their own variables
    • Done by using the CustomHudRegistry.register(name, element) method
  • Updated to 1.19
  • Added a default profile with instructions on how to edit
  • Fixed right padding (#18)
  • Fixed scaling shifting bottom/right sections (#7)
  • Fixed translation keys (#17, I swore I merged this before, but oh well)
  • Added Portuguese (Portugal) translation (#17)
  • Removed {client_chunk_cache}, {client_chunk_cache_capacity}, and {server_chunk_cache}

Files

custom_hud-2.0.0+1.19.jar(132.59 KiB) Primary Download

External resources



Project members

Minenash

Owner


Technical information

License
MIT
Client side
required
Server side
unsupported
Project ID