minenash / customhud Goto Github PK
View Code? Open in Web Editor NEWA highly customizable variable-based text HUD for Minecraft
License: MIT License
A highly customizable variable-based text HUD for Minecraft
License: MIT License
do you have any intentions for a 1.18 release?
It would be neat to be able to customize how many decimals are shown for a variable, e.g. {x.1}
to show 236.1
.
Having this makes text not show properly in the right sections (top and bottom):
==Section:TopRight==
Looking at: {{tbx, "{tbx}, {tby}, {tbz}", "the sky"}} with a
light level of &{ff7c0aff}{light}/{light_sky}&f
Chunk co-ords:
(chunk): {cx}, {cy}, {cz}
(inside chunk): {icx}, {icy}, {icz}
&{ffdeadff}Biome: {biome}&f
Text not aligning properly to the right
Left side doesn't have this problem because text starts from left which is.... left aligned
This could be done with a flag requiring the worlds seed.
it would be nice if you could have user set variables and math so you can make things like
{{[hour24*60+minute] > 1112 | [hour24*60+minute] < 360 , "go to bed"}}
here the math bit is separated by the square brackets [] this just converts the hour and minutes to just minutes and tells you when you can sleep and if you could set custom variables it can even be easier to read
==Section:Variables==
TimeToMin=hour24*60+minute]
==Section:TopLeft==
{{TimeToMin > 1112 | TimeToMin < 360 , "go to bed"}}
After I've installed the mod and set up profiles, Minecraft started to crash when I’m trying to launch it and it says the problem is with CustomHUD.
Here’s the crash report: crash-2021-06-10_14.14.22-client.txt
And one of my profiles: profile2.txt (the other one is the same except for it doesn't have lines 10-15)
Idk if that could happen because of other mods, but before that I’ve messed with the Notes mod. I wanted it to run on 1.17 and I know nothing about mods, so I just changed the version in its fabric.mod.json
hoping that would work... Minecraft crashed after I clicked on its settings in Mod Menu, and now I can’t launch the game with CustomHUD. Having or not having Mod Menu and Notes doesn’t seem to change anything though, so that could be a coincidence.
nx and nz just divide the coords again even in the nether. while its supposed to multipy
{iris_shadow_half_plane}
, {iris_shadow_res}
, {iris_shadow_entities}
, {iris_shadow_blockentities}
, {iris_should_render_translucent}
, {iris_should_render_terrain}
I think it would be neat if you could change colors based on the different values of conditionals. For example, different colors for different fps values or server brands. I also think it would be neat to have a variable to check if a mod is present (e.g. sodium).
{cps} - clicks per second of left mouse button
{rcps} - clicks per second of right mouse button
Minecraft version: 1.18.2
Mod version: 1.18 - 1.2.3
Stacktrace:
java.lang.IncompatibleClassChangeError: Found interface net.minecraft.class_5455, but class was expected
at com.minenash.customhud.HudElements.SupplierElement.lambda$static$68(SupplierElement.java:145)
at com.minenash.customhud.HudElements.SupplierElement.getString(SupplierElement.java:195)
at com.minenash.customhud.CustomHudRenderer.render(CustomHudRenderer.java:42)
at net.minecraft.class_329.handler$zza000$renderCustomHud(class_329.java:1517)
at net.minecraft.class_329.method_1753(class_329.java:416)
at net.minecraft.class_757.method_3192(class_757.java:858)
at net.minecraft.class_310.method_1523(class_310.java:1122)
at net.minecraft.class_310.method_1514(class_310.java:737)
at net.minecraft.client.main.Main.main(Main.java:236)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:416)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:77)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210)
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245)
at org.multimc.EntryPoint.listen(EntryPoint.java:143)
at org.multimc.EntryPoint.main(EntryPoint.java:34)
I have seen other mods that can estimate server TPS client side. Since the current TPS variable only works in singleplayer, it would be cool if this could be implemented in the form of an estimated TPS variable.
Render distance cannot be greater than 64
Mod used c2me
This is a very annoying thing with this mod and I think that it should instead show a warning, or go on with the game.
ive been trying to add server name and idk the code, wondering if you could tell me, thanks
After such a long time, I've finally got around to updating this. This update is going to be huge, with a whole slew of new features.
{iris_shadow_half_plane}
, {iris_shadow_res}
, {iris_shadow_entities}
, {iris_shadow_blockentities}
, {iris_should_render_translucent}
, {iris_should_render_terrain}
'
instead of "
in the inner one-uc
), lowercase (-lc
), titlecase (-tc
), smallcaps (-sc
), and no dashes (-nd
) for String variables-p<precision>
) and scale (-s<scale>
, can either be decimal or fraction) for Decimal variables{stat:<minecraft_statistic_id>}
or {stat:<type>:<value>}
int
s, you can use the scale and precision flags to get it to the right unit-f
flag to use the stat's built-in formatter (doesn't work with scale and precision flags){target_block}
(block name) and {target_block_id}
(target cord variables already exist){target_fluid}
, {target_fluid_id}
, {target_fluid_x}
/{tfx}
, {target_fluid_y}
/{tfy}
, {target_fluid_z}
/{tfz}
{target_entity}
, {target_entity_id}
, {target_entity_x}
/{tex}
, {target_entity_y}
/{tey}
, {target_entity_z}
/{tez}
{item}
, {item_id}
, {item_dur}
, {item_max_dur}
, {item_dur_per}
, {item_has_dur}
{oitem}
, {oitem_id}
, {oitem_dur}
, {oitem_max_dur}
, {oitem_dur_per}
, {oitem_has_dur}
{region_x}
/{rex}
, {region_z}
/{rez}
{region_relative_x}
/{rrx}
, {region_relative_z}
/{rrz}
{slime_chunk}
) (#13){simulation_distance}
/{sd}
){memory_off_heap}
){sodium_version}
, {sodium_chunk_arena_allocator}
, {sodium_staging_buffers}
, {sodium_buffer_objects}
, {sodium_memory_used}
, {sodium_memory_allocated}
{iris_version}
, {iris_shaderpack}
, {iris_shaderpack_profile}
, {iris_shaderpack_changes}
,==Font:<font>==
flagCustomHudRegistry.register(name, element)
method{client_chunk_cache}
, {client_chunk_cache_capacity}
, and {server_chunk_cache}
{real_time:time_format} Crashing game
if i do my time - crash
I'd like to be able to change the display of something based on its value, not just its boolean presence.
e.g.
{{ {hour24} > 6 && {hour24} < 8, &a{hour24}:{minute}, &c{hour24}:{minute}
would make the time appear green during the day and red at night.
This could also be useful for numeric stats like FPS, TPS, and memory, or highlighting the correct coords for which dimension you are in.
Greetings! I have potentially discovered a bug while trying out this mod for the first time in which I would like to make apparent.
https://github.com/Minenash/CustomHUD/wiki/Profile-Structure#global-flags
The example for the 'TextShadow' global flag in the CustomHUD wiki documentation is either incorrect or broken. When following the example configuration for the 'TextShadow' global flag, the in-game hud will display a basic string rather than the formatted text:
I have found that this can be fixed by simply adding a single space between the colon and the desired boolean value in the configuration file:
==TextShadow:false==
---> ==TextShadow: false==
This results in the correct formatting of the text:
I'm not sure if the wiki documentation is incorrect or if there is an error within the mod itself.
A similar problem also occurred when trying to configure the 'Section Options', more specifically, the 'hide_on_chat' boolean value within the section options. It seems like whatever the problem is, is only affecting the true/false parameters of the configuration file (from what I've tested at least).
I hope this helps, thanks.
The hour
, hour12
, and hour24
variables always return true when used in a numerical conditional.
{{hour24 >= 6 & hour24 < 18, '&aDay'}}{{hour24 >= 18 & hour24 < 19, '&6Evening'}}{{hour24 >= 19 & hour24 < 5, '&8Night'}}{{hour24 >= 5 & hour24 < 6, '&9Morning'}}
Here all four conditionals return true, so at any in-game-time it will say DayEveningNightMorning
rather than indicating the current part of the day night cycle.
Your LICENSE file says it is under the MIT license, but your README.md file says it is under the CC0 license. Did you forget to edit it?
I know, it can be low priority, but being aple to put the GPU and CPU name in the custom hud may be an option.
{nx} and {nz} exist, but not {ny}
The game crashes after restarting with the configured config
I'd like to be able to see the number of in game days that have past since I've slept. Mainly because of afk and phantoms.
i have been trying to add a box so its all in a box but i cant get some of the variables to line up correctly. You can see by the ping and by the server brand i had to add a period just to make it line up
This is my profile (i think the "|" made githubs code format not format sorry)
==Section:TopLeft==
Minecraft {version} ({client_version}) |
Playing on a {server_brand} server. |
&a{fps}&f/{max_fps} fps {{vsync, "(vsync)", ""}} |
Ping:&a{ping}.&f |
In Game Time:&a{hour}:{minute}{am_pm}&f |
Real Time:&a{real_time:h:ma}&f |
&a{ms_ticks}&f MS Ticks |
{{tps, "&a{tps}&f Tps", ""}} |
==Section:TopRight==
(13 blank lines to get below my minimap)
§1| &cX&aY&bZ: &c{bx} &a{by} &b{bz} §1|
§1| &fBiome:{biome} §1|
Trying to fix it myself at this moment, but the mixin.json is named as "modid.mixin.json" which conflicts with some mods that are made in a rush and is just over all not a great practice.
is their anyway to change the color of the background of the mod? thanks
Title says it all, your position still shows up when the game rule is true.
Got this error every time I wanted to join single- and multiplayer
dynamic fps changes the fps when you tab out of the minecraft window but your mod still reports the frames offered not the frames being produced on screen making the fps counter inaccurate
Running Flex FOV with this mod makes the Flex FOV Settings button dissapear.
When comparing numeral values (e.g. yaw), the mod strips the leading sign (i.e. the minus sign -
) from the (right hand side) comparison.
Consider the following example: {{yaw >= -180, "N", "?"}}
Regardless of the actual yaw
-value, the mod shows ?
instead of N
. (In fact, since the smallest yaw
-value is -180
the mod should always display N
.)
Another example is {{yaw >= -67, "SE", "?"}}
.
In this case, the mod displays SE
if the actual yaw
-value is in between 67.0
and 179.9
and ?
if the value is between -179.9
and 66.9
—though the expected output would be ?
from -179.9
to -66.9
and SE
from -67.0
onwards.
Some fixes (like that of #46) would be pretty useful in 1.18.2.
I should also note that some people religiously avoid 1.19 because of chat reporting.
For example, say you'd have
Light: {light}
Currently that I know of, there is no way to compare values, but if there was you could do:
Can Mobs Spawn: {{light} <= 7, "Yes", "No"}
Example of comparisons:
==
>=
<=
!=
>
<
=== (Check for type and value)
For strings just ignore the bigger/smaller than signs
Is it possible to add a variable which indicates if the current chunk is a "slime chunk"?
It would be great if we had a boolean to detect if the user is in the end, so i could properly handle nether and overworld coordinates in that situtation.
Supersedes #14
The error is in:
ComplexData.timeOfDay > 12000 ? "am" : "pm";
Should be a '<' instead of '>' or reverse the assignment
example text: {example_var:example_configuration}
my idea is that after a variable you can put a : and then some configuration like caps, however this var config system i have no suggestions for
Either a setting allowing you to hide HUD elements while chat is open, or a conditional variable corresponding to whether chat is open.
==Scale:0.7==
==LineSpacing:0==
{{nether, "&c{bx} {bz} &b{by}&r ({facing})", "&a{bx} {bz} &b{by}&r ({facing})"}}
{{nether, "o &a{nx} {nz}&r", "n &c{nx} {nz}&r"}}
{biome} &7{biome_id}&r
&6{fps} &e{tps}&r
==Section:BottomRight==
{real_time:H:m, d MMM, E}
if scale is set to 1.0 than the date will be exactly at bottom right, but with 0.7 it is in the middle of the screen
I am using sodium if that helps
It would be nice to have a variable for the Item held (maybe even the lore? idk) and it's durability as variables
Again, coloring durability would be awesome but i guess that would come as a direct result of the conditional update.
Any news on that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.