feat: 1.21.4

This commit is contained in:
ChomeNS
2024-12-28 20:10:11 +07:00
parent 052e57a799
commit e50f9cf433
4 changed files with 240 additions and 118 deletions

View File

@@ -1 +1 @@
1341
1346

View File

@@ -41,7 +41,7 @@ repositories {
}
dependencies {
implementation 'org.geysermc.mcprotocollib:protocol:1.21.2-SNAPSHOT'
implementation 'org.geysermc.mcprotocollib:protocol:1.21.4-SNAPSHOT'
implementation 'net.kyori:adventure-text-serializer-ansi:4.15.0'
implementation 'com.google.code.gson:gson:2.11.0'
implementation 'com.google.guava:guava:31.1-jre'

View File

@@ -35,6 +35,9 @@ import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
public class CorePlugin extends PositionPlugin.Listener {
public static final int COMMAND_BLOCK_ID = 418;
public static final int REPEATING_COMMAND_BLOCK_ID = 537;
private final Bot bot;
private final List<Listener> listeners = new ArrayList<>();
@@ -265,8 +268,8 @@ public class CorePlugin extends PositionPlugin.Listener {
(short) 36,
new ItemStack(
bot.serverPluginsManager.hasPlugin(ServerPluginsManagerPlugin.EXTRAS) ?
528 /* repeating command block id */ :
409 /* command block id */,
REPEATING_COMMAND_BLOCK_ID :
COMMAND_BLOCK_ID,
64,
dataComponents
)

File diff suppressed because it is too large Load Diff