Skip to content

Commit

Permalink
Update MeteorStarscript.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Zgoly committed Apr 29, 2024
1 parent 2517862 commit 5abc0ff
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ public static void init() {
.set("dimension", () -> Value.string(PlayerUtils.getDimension().name()))
.set("opposite_dimension", () -> Value.string(PlayerUtils.getDimension().opposite().name()))

.set("gamemode", () -> mc.player != null ? Value.string(StringUtils.capitalize(PlayerUtils.getGameMode().getName())) : Value.null_())

.set("pos", new ValueMap()
.set("_toString", () -> posString(false, false))
.set("x", () -> Value.number(mc.player != null ? mc.player.getX() : 0))
Expand Down

0 comments on commit 5abc0ff

Please sign in to comment.