tutorial:command_exceptions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:command_exceptions [2022/09/18 13:37] – nexus-dino | tutorial:command_exceptions [2022/09/18 13:38] – nexus-dino | ||
---|---|---|---|
Line 20: | Line 20: | ||
throw new SimpleCommandExceptionType(new TranslatableText(" | throw new SimpleCommandExceptionType(new TranslatableText(" | ||
})); | })); | ||
+ | </ | ||
+ | |||
+ | <code java [enable_line_numbers=" | ||
+ | DynamicCommandExceptionType used_name = new DynamicCommandExceptionType(name -> { | ||
+ | return new LiteralText(" | ||
+ | }); | ||
</ | </ | ||
tutorial/command_exceptions.txt · Last modified: 2024/04/15 06:43 by solidblock