Description
|
component.setStyle(Style.EMPTY.withClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, "/execute in %s run tp @s %.2f %.2f %.2f".formatted(dimension, pos.x(), pos.y(), pos.z()))) |
the .formatted(...) will replace the %.2f into X,X instead of X.X
so for example it will give execute in minecraft:overworld run tp @s 4,50 -62,50 2,50 with , instead of . making the command invalid
Game Log
Not imporant :3
Description
sable/common/src/main/java/dev/ryanhcode/sable/command/SableCommand.java
Line 84 in fd81423
the .formatted(...) will replace the %.2f into X,X instead of X.X
so for example it will give execute in
minecraft:overworld run tp @s 4,50 -62,50 2,50with , instead of . making the command invalidGame Log
Not imporant :3