diff --git a/src/main/java/com/fusionflux/portalcubed/client/PortalCubedClient.java b/src/main/java/com/fusionflux/portalcubed/client/PortalCubedClient.java index 28a39bcd..17e88f4b 100644 --- a/src/main/java/com/fusionflux/portalcubed/client/PortalCubedClient.java +++ b/src/main/java/com/fusionflux/portalcubed/client/PortalCubedClient.java @@ -493,6 +493,9 @@ Items.LIGHT, new ResourceLocation("level") final LocalPlayer player = minecraft.player; if (player == null) return; + poseStack.pushPose(); + poseStack.scale(1f, 1f, 1f); + minecraft.font.draw(poseStack, Component.literal("name: ").append(player.getName()), 2, 11, 0xffffffff); minecraft.font.draw( @@ -516,6 +519,14 @@ Items.LIGHT, new ResourceLocation("level") ' ' + CL_SHOWPOS_FORMAT.format(Math.toDegrees(angle.z)), 2, 29, 0xffffffff ); + + minecraft.font.draw( + poseStack, + "vel: " + CL_SHOWPOS_FORMAT.format(player.getDeltaMovement().length()), + 2, 38, 0xffffffff + ); + + poseStack.popPose(); }); try {