Skip to content

Commit

Permalink
Update MeteorTextHud.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Zgoly committed Apr 29, 2024
1 parent 5abc0ff commit 5554b47
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class MeteorTextHud {
public static final HudElementInfo<TextHud>.Preset TPS;
public static final HudElementInfo<TextHud>.Preset PING;
public static final HudElementInfo<TextHud>.Preset SPEED;
public static final HudElementInfo<TextHud>.Preset GAME_MODE;
public static final HudElementInfo<TextHud>.Preset DURABILITY;
public static final HudElementInfo<TextHud>.Preset POSITION;
public static final HudElementInfo<TextHud>.Preset OPPOSITE_POSITION;
Expand All @@ -37,6 +38,7 @@ public class MeteorTextHud {
TPS = addPreset("TPS", "TPS: #1{round(server.tps, 1)}");
PING = addPreset("Ping", "Ping: #1{ping}");
SPEED = addPreset("Speed", "Speed: #1{round(player.speed, 1)}", 0);
GAME_MODE = addPreset("Game mode", "Game mode: #1{player.gamemode}", 0);
DURABILITY = addPreset("Durability", "Durability: #1{player.hand_or_offhand.durability}");
POSITION = addPreset("Position", "Pos: #1{floor(camera.pos.x)}, {floor(camera.pos.y)}, {floor(camera.pos.z)}", 0);
OPPOSITE_POSITION = addPreset("Opposite Position", "{player.opposite_dimension != \"End\" ? player.opposite_dimension + \":\" : \"\"} #1{player.opposite_dimension != \"End\" ? \"\" + floor(camera.opposite_dim_pos.x) + \", \" + floor(camera.opposite_dim_pos.y) + \", \" + floor(camera.opposite_dim_pos.z) : \"\"}", 0);
Expand Down

0 comments on commit 5554b47

Please sign in to comment.