idk I dont remember
Some checks failed
Compile / gradle (ubuntu-latest) (push) Has been cancelled

This commit is contained in:
Justus Wolff
2026-03-13 14:04:44 +01:00
parent b553e36819
commit 4491025245
103 changed files with 712 additions and 6 deletions

Binary file not shown.

View File

@@ -0,0 +1,2 @@
Manifest-Version: 1.0

View File

@@ -113,6 +113,17 @@ public class LegacyAgent extends Agent {
} }
} }
private void placeblocking(Location location, Terminator bot) {
Block block = location.getBlock();
if (block.getType() == Material.AIR) {
bot.setItem(new ItemStack(Material.COBBLESTONE));
block.setType(Material.COBBLESTONE);
bot.punch();
for (Player all : Bukkit.getOnlinePlayers())
all.playSound(bot.getLocation(), Sound.BLOCK_STONE_PLACE, SoundCategory.BLOCKS, 1, 1);
}
}
private void tickBot(Terminator bot) { private void tickBot(Terminator bot) {
if (!bot.isBotAlive()) { if (!bot.isBotAlive()) {
return; return;
@@ -134,7 +145,7 @@ public class LegacyAgent extends Agent {
tryWindchargeMaceAttack(bot, livingTarget, false); tryWindchargeMaceAttack(bot, livingTarget, false);
} else if (bot.getLocation().getY() > livingTarget.getLocation().getY() && bot.getLocation().distanceSquared(livingTarget.getLocation()) <= 4 && macemode(bot)) { } else if (bot.getLocation().getY() > livingTarget.getLocation().getY() && bot.getLocation().distanceSquared(livingTarget.getLocation()) <= 4 && macemode(bot)) {
bot.jump(); bot.jump();
macesmash(bot, livingTarget, false, 2.5); macesmash(bot, livingTarget, false, 10);
} }
blockCheck.clutch(bot, livingTarget); blockCheck.clutch(bot, livingTarget);
@@ -153,7 +164,7 @@ public class LegacyAgent extends Agent {
network.feed(BotData.generate(bot, livingTarget)); network.feed(BotData.generate(bot, livingTarget));
} }
if (entholdsmace(livingTarget) && livingTarget.getLocation().getY() > bot.getLocation().getY()) { if (livingTarget.getLocation().getY() > bot.getLocation().getY()) {
bot.block(10, 0); bot.block(10, 0);
} }
if (bot.tickDelay(3) && !miningAnim.containsKey(botPlayer)) { if (bot.tickDelay(3) && !miningAnim.containsKey(botPlayer)) {
@@ -163,13 +174,21 @@ public class LegacyAgent extends Agent {
if (ai) { if (ai) {
if (network.check(BotNode.BLOCK) && loc.distance(livingTarget.getLocation()) < 6) { if (network.check(BotNode.BLOCK) && loc.distance(livingTarget.getLocation()) < 6) {
bot.block(10, 10); bot.block(20, 0);
} }
} }
if (LegacyUtils.checkFreeSpace(botEyeLoc, playerEyeLoc) || LegacyUtils.checkFreeSpace(botEyeLoc, playerLoc)) { if (LegacyUtils.checkFreeSpace(botEyeLoc, playerEyeLoc) || LegacyUtils.checkFreeSpace(botEyeLoc, playerLoc) && bot.getLocation().distanceSquared(livingTarget.getLocation()) <= 10) {
// place an block over the target such that he cant windcharge away or smth
World world = livingTarget.getWorld();
placeblocking(livingTarget.getLocation().add(new Location(world, 0, 2, 0)), bot); // over target
placeblocking(livingTarget.getLocation().add(new Location(world, 0, 0, 1)), bot); // +z
placeblocking(livingTarget.getLocation().add(new Location(world, 0, 0, -1)), bot); // -z
placeblocking(livingTarget.getLocation().add(new Location(world, 1, 0, 0)), bot); // +x
placeblocking(livingTarget.getLocation().add(new Location(world, -1, 0, 0)), bot); // -x
attack(bot, livingTarget, loc); attack(bot, livingTarget, loc);
} }
} }
@@ -208,7 +227,7 @@ public class LegacyAgent extends Agent {
if (checkDown(bot, botPlayer, livingTarget.getLocation(), bothXZ)) return; if (checkDown(bot, botPlayer, livingTarget.getLocation(), bothXZ)) return;
if ((withinTargetXZ || sameXZ) && entholdsmace(livingTarget) && livingTarget.getLocation().getY() > bot.getLocation().getY() && bot.getLocation().distanceSquared(livingTarget.getLocation()) > 5) { if ((withinTargetXZ || sameXZ) && !entholdsmace(livingTarget) && livingTarget.getLocation().getY() > bot.getLocation().getY() && bot.getLocation().distanceSquared(livingTarget.getLocation()) > 5) {
if (checkUp(bot, livingTarget, botPlayer, target, withinTargetXZ, sameXZ)) return; if (checkUp(bot, livingTarget, botPlayer, target, withinTargetXZ, sameXZ)) return;
} }

View File

@@ -1,2 +1,2 @@
Command: C:\Program Files\Java\jdk-21.0.10\bin\java.exe -Xmx1G -classpath C:\Users\JUFS-STL-SECONDARY\.gradle\caches\modules-2\files-2.1\net.fabricmc\tiny-remapper\0.12.0\bfb93e1bfb66d47272ccd37ce894dcfc20ba0b6\tiny-remapper-0.12.0-fat.jar net.fabricmc.tinyremapper.Main C:\Users\JUFS-STL-SECONDARY\Desktop\terminatorplus\TerminatorPlus-Plugin\build\libs\TerminatorPlus-Plugin-4.5.1-BETA.jar C:\Users\JUFS-STL-SECONDARY\Desktop\terminatorplus\TerminatorPlus-Plugin\build\libs\TerminatorPlus-Plugin-4.5.1-BETA-reobf.jar C:\Users\JUFS-STL-SECONDARY\Desktop\terminatorplus\TerminatorPlus-Plugin\.gradle\caches\paperweight\taskCache\reobfMappings.tiny mojang spigot C:\Users\JUFS-STL-SECONDARY\Desktop\terminatorplus\TerminatorPlus-Plugin\.gradle\caches\paperweight\taskCache\mappedServerJar.jar --threads=1 Command: C:\Program Files\Java\jdk-21.0.10\bin\java.exe -Xmx1G -classpath C:\Users\JUFS-STL-SECONDARY\.gradle\caches\modules-2\files-2.1\net.fabricmc\tiny-remapper\0.12.0\bfb93e1bfb66d47272ccd37ce894dcfc20ba0b6\tiny-remapper-0.12.0-fat.jar net.fabricmc.tinyremapper.Main C:\Users\JUFS-STL-SECONDARY\Desktop\terminatorplus\TerminatorPlus-Plugin\build\libs\TerminatorPlus-Plugin-4.5.1-BETA.jar C:\Users\JUFS-STL-SECONDARY\Desktop\terminatorplus\TerminatorPlus-Plugin\build\libs\TerminatorPlus-Plugin-4.5.1-BETA-reobf.jar C:\Users\JUFS-STL-SECONDARY\Desktop\terminatorplus\TerminatorPlus-Plugin\.gradle\caches\paperweight\taskCache\reobfMappings.tiny mojang spigot C:\Users\JUFS-STL-SECONDARY\Desktop\terminatorplus\TerminatorPlus-Plugin\.gradle\caches\paperweight\taskCache\mappedServerJar.jar --threads=1
[INFO] Finished after 1637.01 ms. [INFO] Finished after 1693.73 ms.

View File

@@ -0,0 +1,3 @@
Manifest-Version: 1.0
paperweight-mappings-namespace: mojang

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,17 @@
name: TerminatorPlus
main: net.nuggetmc.tplus.TerminatorPlus
version: 4.5.1-BETA
api-version: 1.16 # Set to 1.16 so the plugin loads, and we can tell the user that it may not be compatible with their version, because people can't scroll up.
author: HorseNuggets
depend:
- Citizens
permissions:
terminatorplus.*:
description: TerminatorPlus parent permission.
default: op
children:
terminatorplus.manage: true
terminatorplus.manage:
description: Allows for TerminatorPlus bot management.
default: op

View File

@@ -0,0 +1,2 @@
Manifest-Version: 1.0

Some files were not shown because too many files have changed in this diff Show More