Skip to content

Commit

Permalink
Remove minimum and maximum y values in the teleport command
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertSoda committed Apr 21, 2024
1 parent ab3328b commit 49d663a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class TeleportCommand implements Command {
public void register(LiteralArgumentBuilder<CommandSource> literalArgumentBuilder) {
literalArgumentBuilder.then(
CommandManager.argument("x", RelativeFloatType.argument(() -> InGame.getLocalPlayer().getEntity().position.x)).then(
CommandManager.argument("y", RelativeFloatType.argument(0, 255, () -> InGame.getLocalPlayer().getEntity().position.y)).then(
CommandManager.argument("y", RelativeFloatType.argument(() -> InGame.getLocalPlayer().getEntity().position.y)).then(
CommandManager.argument("z", RelativeFloatType.argument(() -> InGame.getLocalPlayer().getEntity().position.z))
.executes(context -> {
float x = RelativeFloatType.getRelativeFloat(context, "x").getValue();
Expand All @@ -36,7 +36,7 @@ public void register(LiteralArgumentBuilder<CommandSource> literalArgumentBuilde

@Override
public String getDescription() {
return "Teleports the player, y is in range of 0 - 255";
return "Teleports the player to the specified position";
}

@Override
Expand Down

0 comments on commit 49d663a

Please sign in to comment.