|
42 | 42 | import net.minecraft.util.Identifier; |
43 | 43 | import net.minecraft.world.GameMode; |
44 | 44 |
|
45 | | -import java.io.IOException; |
| 45 | +import java.io.*; |
| 46 | +import java.net.*; |
46 | 47 | import java.nio.file.Files; |
47 | 48 | import java.nio.file.Path; |
48 | 49 | import java.text.SimpleDateFormat; |
@@ -118,7 +119,7 @@ public enum ScriptActionType { |
118 | 119 | ctx.variable("Variable").name(), |
119 | 120 | ctx.value("Value") |
120 | 121 | ))), |
121 | | - |
| 122 | + |
122 | 123 | GET_REQUEST(builder -> builder.name("Get Webrequest") |
123 | 124 | .description("Makes a get request to the internet.") |
124 | 125 | .icon(Items.GRASS_BLOCK) |
@@ -936,7 +937,7 @@ public enum ScriptActionType { |
936 | 937 | String text = ctx.value("Text").asText(); |
937 | 938 | ctx.task().context().setVariable(ctx.variable("Result").name(), new ScriptNumberValue(text.length())); |
938 | 939 | })), |
939 | | - |
| 940 | + |
940 | 941 | READ_FILE(builder -> builder.name("Read File") |
941 | 942 | .description("Reads a file from the scripts folder.") |
942 | 943 | .icon(Items.WRITTEN_BOOK) |
@@ -1256,7 +1257,7 @@ public enum ScriptActionType { |
1256 | 1257 | OverlayManager.getInstance().add("Unable to set text field value! (Unknown menu type)"); |
1257 | 1258 | } |
1258 | 1259 | })), |
1259 | | - |
| 1260 | + |
1260 | 1261 | RANDOM_INT(builder -> builder.name("Random Int") |
1261 | 1262 | .description("Generates a random whole number between two other numbers.") |
1262 | 1263 | .icon(Items.HOPPER) |
@@ -1291,7 +1292,7 @@ public enum ScriptActionType { |
1291 | 1292 | new ScriptNumberValue(result) |
1292 | 1293 | ); |
1293 | 1294 | })), |
1294 | | - |
| 1295 | + |
1295 | 1296 | RANDOM_NUMBER(builder -> builder.name("Random Number") |
1296 | 1297 | .description("Generates a random number between two other numbers.") |
1297 | 1298 | .icon(Items.HOPPER) |
|
0 commit comments