Skip to content

Commit 708e79e

Browse files
committed
Add ASCII mode to /cbook
1 parent 3085a0c commit 708e79e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/net/earthcomputer/clientcommands/command/CommandBook.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ public void execute(MinecraftServer server, ICommandSender sender, String[] args
6363
case "random":
6464
characterGenerator = rand.ints(0x80, 0x10ffff - 0x800).map(i -> i < 0xd800 ? i : i + 0x800);
6565
break;
66+
case "ascii":
67+
characterGenerator = rand.ints(0x20, 0x7f);
6668
default:
6769
throw new CommandException(getUsage(sender));
6870
}

src/main/resources/assets/clientcommands/lang/en_us.lang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ commands.cabort.usage=/cabort
6363
commands.cbook.success=Successfully edited book
6464
commands.cbook.noBook=You are not holding a book
6565
commands.cbook.noPlayer=You are not a player
66-
commands.cbook.usage=/cbook <fill|random> [pages] [random-seed]
66+
commands.cbook.usage=/cbook <fill|random|ascii> [pages] [random-seed]
6767

6868
commands.ccalc.mathError=Math error: %s
6969
commands.ccalc.syntaxError=Syntax error

0 commit comments

Comments
 (0)