Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit da83e0a

Browse files
authored
Merge branch 'master' into feature/custom-failsafe-recordings
2 parents 4afbf9a + 308b591 commit da83e0a

8 files changed

Lines changed: 187 additions & 155 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
run/
44
build/
55
.gradle/
6-
6+
*.swp

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ dependencies {
8484
compileOnly("org.projectlombok:lombok:1.18.34")
8585
annotationProcessor("org.projectlombok:lombok:1.18.34")
8686

87-
shadowImpl("org.java-websocket:Java-WebSocket:1.5.4")
87+
shadowImpl("org.java-websocket:Java-WebSocket:1.5.7")
8888

8989
implementation("me.djtheredstoner:DevAuth-forge-legacy:1.2.1")
9090

src/main/java/com/jelly/farmhelperv2/command/FarmHelperMainCommand.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.jelly.farmhelperv2.FarmHelper;
88
import com.jelly.farmhelperv2.config.FarmHelperConfig;
99
import com.jelly.farmhelperv2.feature.impl.AutoWardrobe;
10+
import com.jelly.farmhelperv2.feature.impl.PestFarmer;
1011
import com.jelly.farmhelperv2.handler.GameStateHandler;
1112
import com.jelly.farmhelperv2.pathfinder.FlyPathFinderExecutor;
1213
import com.jelly.farmhelperv2.util.LogUtils;
@@ -87,13 +88,9 @@ public void update() {
8788
FarmHelperConfig.checkForUpdate();
8889
}
8990

90-
@SubCommand(aliases = {"stp"})
91-
public void swapToPest() {
92-
AutoWardrobe.instance.swapTo(FarmHelperConfig.pestFarmingSet0Slot, Arrays.asList(FarmHelperConfig.pestFarmingEq0.split("\\|")));
93-
}
94-
95-
@SubCommand(aliases = {"stf"})
96-
public void swapToFarm() {
97-
AutoWardrobe.instance.swapTo(FarmHelperConfig.pestFarmingSet1Slot, Arrays.asList(FarmHelperConfig.pestFarmingEq1.split("\\|")));
91+
@SubCommand(aliases = {"msc"})
92+
public void markSpawnChanged() {
93+
PestFarmer.instance.wasSpawnChanged = true;
94+
System.out.println("Changed: " + PestFarmer.instance.wasSpawnChanged);
9895
}
9996
}

src/main/java/com/jelly/farmhelperv2/config/FarmHelperConfig.java

Lines changed: 37 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,11 +1303,6 @@ public class FarmHelperConfig extends Config {
13031303
)
13041304
public static int pestAdditionalGUIDelay = 0;
13051305

1306-
@Switch(
1307-
name = "Force Enable Pest Destroyer at X Pests", category = PESTS_DESTROYER, subcategory = "Pests Destroyer"
1308-
)
1309-
public static boolean pestForceEnable = false;
1310-
13111306
@Switch(
13121307
name = "Sprint while flying", category = PESTS_DESTROYER, subcategory = "Pests Destroyer",
13131308
description = "Sprints while flying"
@@ -1512,7 +1507,7 @@ public static void triggerManuallyPestsDestroyer() {
15121507

15131508
//<editor-fold desc="PEST FARMER">
15141509
@Header(
1515-
text = "Read the comments below this page before using pest farmer.",
1510+
text = "Read the FarmHelper Guide to understand how to use this properly.",
15161511
category = PEST_FARMER, size = 2
15171512
)
15181513
public static boolean ignored1;
@@ -1523,17 +1518,23 @@ public static void triggerManuallyPestsDestroyer() {
15231518
)
15241519
public static boolean pestFarming = false;
15251520

1521+
@Switch(
1522+
name = "Use Squeaky Mousemat To Set Angle", category = PEST_FARMER,
1523+
description = "Uses Squeaky Mousemat Ability to set Angle (Must be Preset)"
1524+
)
1525+
public static boolean pestFarmingUseMousemat = false;
1526+
15261527
@Slider(
1527-
name = "Farming Armor Slot", category = PEST_FARMER,
1528+
name = "Fermento Armor Slot", category = PEST_FARMER,
15281529
min = 1, max = 18
15291530
)
1530-
public static int pestFarmingSet0Slot = 1;
1531+
public static int pestFarmingFermentoSlot = 1;
15311532

15321533
@Slider(
1533-
name = "Pest Chance Armor Slot", category = PEST_FARMER,
1534+
name = "Biohazard Armor Slot", category = PEST_FARMER,
15341535
min = 1, max = 18
15351536
)
1536-
public static int pestFarmingSet1Slot = 1;
1537+
public static int pestFarmingBiohazardSlot = 1;
15371538

15381539
@Slider(
15391540
name = "Pest Spawn Timer (In seconds)", category = PEST_FARMER,
@@ -1542,26 +1543,32 @@ public static void triggerManuallyPestsDestroyer() {
15421543
)
15431544
public static int pestFarmingWaitTime = 255;
15441545

1546+
@Switch(
1547+
name = "Set Spawn After Armor Swap(Read Desc)", category = PEST_FARMER,
1548+
description = "Sets spawn after swapping armor. Sicne farmhelper does not have anything to farm shards, use this to kill manually while ensuring macro returns back to spawn automacially."
1549+
)
1550+
public static boolean pestFarmingSetSpawn = false;
1551+
15451552
@Switch(
15461553
name = "Swap Equipments", category = PEST_FARMER
15471554
)
15481555
public static boolean pestFarmingSwapEq = false;
15491556

15501557
@Text(
15511558
name = "Farming Fortune Equipments", category = PEST_FARMER, size=2,
1552-
description = "Separate Equipment Names With |", placeholder = "Lotus Necklace|Lotus Cloak|Lotus Belt"
1559+
description = "Separate Equipment Names With |", placeholder = "Ex: Lotus Necklace|Lotus Cloak|Lotus Belt|Lotus Bracelet"
15531560
)
15541561
public static String pestFarmingEq0 = "";
15551562

15561563
@Text(
15571564
name = "Pest Chance Equipments", category = PEST_FARMER, size=2,
1558-
description = "Separate Equipment Names With |", placeholder = "Pesthunter's Necklace|Pesthunter's Cloak|Pesthunter's Belt"
1565+
description = "Separate Equipment Names With |", placeholder = "Ex: Pesthunter's Necklace|Pesthunter's Belt|Pesthunter's Gloves|Pest Vest"
15591566
)
15601567
public static String pestFarmingEq1 = "";
15611568

15621569
@Slider(
15631570
name = "Equipment Click Delay", category = PEST_FARMER,
1564-
min = 50, max = 2000, step = 10
1571+
min = 300, max = 2000, step = 10
15651572
)
15661573
public static int pestFarmerEquipmentClickDelay = 400;
15671574

@@ -1571,7 +1578,7 @@ public static void triggerManuallyPestsDestroyer() {
15711578
public static boolean pestFarmerKillPests = false;
15721579

15731580
@Switch(
1574-
name = "Cast Rod After Warping", category = PEST_FARMER
1581+
name = "Cast Rod After Killing", category = PEST_FARMER
15751582
)
15761583
public static boolean pestFarmerCastRod = false;
15771584

@@ -1581,42 +1588,6 @@ public static void triggerManuallyPestsDestroyer() {
15811588
)
15821589
public static int pestFarmerStartKillAt = 1;
15831590

1584-
@Info(
1585-
text = "It's supposed to swap armor before pest spawns, swap back after pest spawns and kill with Pest Destryoer/the other one.",
1586-
type = InfoType.INFO, category = PEST_FARMER, size = 2
1587-
)
1588-
public static boolean ignored0;
1589-
@Info(
1590-
text = "Use this Auto-Pet Rule:",
1591-
type = InfoType.INFO, category = PEST_FARMER, size = 2
1592-
)
1593-
public static boolean ignored2;
1594-
@Info(
1595-
text = " 1. On Gain Crop Collection -> Farming Pet, Except if slug is Equipped",
1596-
type = InfoType.INFO, category = PEST_FARMER, size = 2
1597-
)
1598-
public static boolean ignored3;
1599-
@Info(
1600-
text = " 2. On Equip Farming Armor -> Farming Pet",
1601-
type = InfoType.INFO, category = PEST_FARMER, size = 2
1602-
)
1603-
public static boolean ignored4;
1604-
@Info(
1605-
text = " 3. On Equip Pest Chance Armor -> Slug Pet",
1606-
type = InfoType.INFO, category = PEST_FARMER, size = 2
1607-
)
1608-
public static boolean ignored5;
1609-
@Info(
1610-
text = " 4. On Enter Combat -> Hedgehog Pet",
1611-
type = InfoType.INFO, category = PEST_FARMER, size = 2
1612-
)
1613-
public static boolean ignored6;
1614-
@Info(
1615-
text = "Use Armor Swapper in Pest Destroyer. Swap to Farming Armor On Start Just in case Pest Farmer doesn't do that itself.",
1616-
type = InfoType.INFO, category = PEST_FARMER, size = 2
1617-
)
1618-
public static boolean ignored7;
1619-
16201591
//</editor-fold>
16211592
//<editor-fold desc="DISCORD INTEGRATION">
16221593
//<editor-fold desc="Webhook Discord">
@@ -2501,6 +2472,11 @@ public static void triggerManuallyAutoComposter() {
25012472
)
25022473
public static boolean debugMode = false;
25032474

2475+
@Switch(
2476+
name = "New Fly", category = DEBUG
2477+
)
2478+
public static boolean debugNewFly = true;
2479+
25042480
//</editor-fold>
25052481

25062482
//<editor-fold desc="Debug Hud">
@@ -2788,7 +2764,17 @@ public FarmHelperConfig() {
27882764
registerKeyBind(tpToInfestedPlot, () -> {
27892765
List<Integer> infestedPlots = GameStateHandler.getInstance().getInfestedPlots();
27902766
if (infestedPlots.isEmpty()) return;
2791-
mc.thePlayer.sendChatMessage("/plottp " + infestedPlots.get(0));
2767+
2768+
while (!infestedPlots.isEmpty()) {
2769+
int curr = infestedPlots.get(0);
2770+
if (curr == GameStateHandler.getInstance().getCurrentPlot()
2771+
&& GameStateHandler.getInstance().getPestsCount() == 0) {
2772+
infestedPlots.remove(0);
2773+
continue;
2774+
}
2775+
mc.thePlayer.sendChatMessage("/plottp " + curr);
2776+
break;
2777+
}
27922778
});
27932779
// registerKeyBind(debugKeybind2, () -> {
27942780
// MovingObjectPosition objectMouseOver = Minecraft.getMinecraft().objectMouseOver;
Binary file not shown.

0 commit comments

Comments
 (0)