File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed
java/net/earthcomputer/clientcommands
resources/assets/clientcommands/lang Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ public static void registerCommands(CommandDispatcher<ServerCommandSource> dispa
30
30
WikiCommand .register (dispatcher );
31
31
CEnchantCommand .register (dispatcher );
32
32
33
- CrackPlayerRNGWithItemsCommand .register (dispatcher );
33
+ CrackRNGCommand .register (dispatcher );
34
34
35
35
if (MinecraftClient .getInstance ().isIntegratedServerRunning ()) {
36
- CrackPlayerRNGCommand .register (dispatcher );
36
+ CheatCrackRNGCommand .register (dispatcher );
37
37
}
38
38
}
39
39
}
Original file line number Diff line number Diff line change 8
8
import static net .earthcomputer .clientcommands .command .ClientCommandManager .*;
9
9
import static net .minecraft .server .command .CommandManager .*;
10
10
11
- public class CrackPlayerRNGCommand {
11
+ public class CheatCrackRNGCommand {
12
12
13
13
public static void register (CommandDispatcher <ServerCommandSource > dispatcher ) {
14
- addClientSideCommand ("ccrackplayerrng " );
14
+ addClientSideCommand ("ccheatcrackrng " );
15
15
16
- dispatcher .register (literal ("ccrackplayerrng " )
16
+ dispatcher .register (literal ("ccheatcrackrng " )
17
17
.executes (ctx -> crackPlayerRNG (ctx .getSource ())));
18
18
}
19
19
20
20
private static int crackPlayerRNG (ServerCommandSource source ) {
21
21
long seed = EnchantmentCracker .singlePlayerCrackRNG ();
22
- sendFeedback (new TranslatableText ("commands.ccrackplayerrng .success" , Long .toHexString (seed )));
22
+ sendFeedback (new TranslatableText ("commands.ccrackrng .success" , Long .toHexString (seed )));
23
23
return (int ) seed ;
24
24
}
25
25
Original file line number Diff line number Diff line change 13
13
import static net .earthcomputer .clientcommands .features .EnchantmentCracker .MULTIPLIER ;
14
14
import static net .minecraft .server .command .CommandManager .literal ;
15
15
16
- public class CrackPlayerRNGWithItemsCommand {
16
+ public class CrackRNGCommand {
17
17
18
18
public static void register (CommandDispatcher <ServerCommandSource > dispatcher ) {
19
- addClientSideCommand ("citemrngcrack " );
19
+ addClientSideCommand ("ccrackrng " );
20
20
21
- dispatcher .register (literal ("citemrngcrack " )
21
+ dispatcher .register (literal ("ccrackrng " )
22
22
.executes (ctx -> crackPlayerRNG (ctx .getSource ())));
23
23
}
24
24
25
25
private static int crackPlayerRNG (ServerCommandSource source ) {
26
26
SeedCracker .crack (seed -> {
27
- sendFeedback (new TranslatableText ("commands.ccrackplayerrng .success" , Long .toHexString (seed )));
27
+ sendFeedback (new TranslatableText ("commands.ccrackrng .success" , Long .toHexString (seed )));
28
28
EnchantmentCracker .playerRand .setSeed (seed ^ MULTIPLIER );
29
29
TempRules .enchCrackState =CRACKED_PLAYER_SEED ;
30
30
});
Original file line number Diff line number Diff line change 4
4
"commands.ccalc.expected" : " Expected %s" ,
5
5
"commands.ccalc.invalidArgumentCount" : " Function \" %s\" cannot take %d arguments" ,
6
6
7
- "commands.ccrackplayerrng .success" : " Player RNG cracked: %d" ,
7
+ "commands.ccrackrng .success" : " Player RNG cracked: %d" ,
8
8
9
9
"commands.cenchant.expectedWithWithout" : " Expected \" with\" /\" without\" " ,
10
10
"commands.cenchant.incompatible" : " Incompatible enchantments" ,
You can’t perform that action at this time.
0 commit comments