Skip to content

Commit

Permalink
1.4.0 PortalPatternFinder, Spawner, BaseFinder updates
Browse files Browse the repository at this point in the history
**MaceKill**
- Made the Mace Power slider disappear if Maximum Mace Power is enabled because it's irrelevant then. 
- Adjusted the maths very slightly for improved teleport efficiency maybe

**PortalPatternFinder and CaveDisturbanceDetector update**
- Made the chunk scanning on tick as opposed to on packet recieved (chunk data) to improve detection of the air patterns.

**ActivatedSpawnerDetector Update**
- Added options so you can choose to enable or disable the messages and renders for certain structures containing spawners (based on the natural spawner type within).

**BaseFinder Adjustments**
- Made the block which triggered Basefinder display again when the DisplayCoords option is disabled. I accidentally deleted that in addition to the coordinate when changing the code.
- Adjusted Entity Cluster Finder threshold from 12 to 14 in the BaseFinder module.
- Removed Redstone Wall Torch from List 6 to prevent false positives with Ancient Cities.
- Moved Furnace from List 6 to List 5
  • Loading branch information
etianl authored Jan 12, 2025
1 parent 6afb65e commit e72aab4
Show file tree
Hide file tree
Showing 8 changed files with 140 additions and 120 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ In no particular order
- **LecternCrash:** Crash 1.18.X vanilla servers and possibly below. (Credits to Coderx-Gamer)
- **MaceKill:** Exploits Mace mechanics to make the Mace super OP everytime you swing it instead of just when you drop from a height. (Credits to etianl :D)
- **MultiUse:** Allows you to do the item use action more than once per item use. Essentially a strange form of the FastUse module and may work well combined with it. Initially created by [maytrixc](https://github.com/maytrixc), modified by etianl to use doItemUse.
- **NbtEditor:** Requires Creative mode. Generates custom entities in the form of a custom spawn egg, generate items with custom enchantments (Only in Minecraft 1.20.4 and below), and potions with custom effects all based on the settings you configure. It can also copy the Nbt data from one item to another. (Credits to etianl :D)
- **NbtEditor:** Requires Creative mode. Generates custom entities in the form of a custom spawn egg, generate items with custom enchantments, and potions with custom effects all based on the settings you configure. It can also copy the Nbt data from one item to another. (Credits to etianl :D)
- **NewerNewChunks:** NewChunks module with new newchunk estimation exploits, and the ability to save chunk data for later! Comes with several new homebrewed newchunks methods made by yours truly. (Credits to Meteor Rejects, and BleachHack from where it was ported, and etianl for updating :D.)

-------------------------------------------------------------------------------------
Expand Down Expand Up @@ -193,9 +193,8 @@ In no particular order
- Joining a server with HandOfGod or Voider already on causes the module to be turned off due to "Not being OP" even if you are an operator

## Requirements:
- If you are using Minecraft version **1.21.4**, then use the latest **MeteorClient Dev Build of v0.6.0**
- If you are using Minecraft version **1.21.3**, then use **MeteorClient "Full Release" v0.5.9**
- If you are using Minecraft version **1.21.4**, then use the latest **MeteorClient Build for Minecraft 1.21.4**
- If you are using Minecraft version **1.21.3**, then use **MeteorClient "Full Release" v0.5.9** (Not available for download anymore)
- Please try [ViaFabricPlus](https://github.com/FlorianMichael/ViaFabricPlus), which will let you connect to almost any version from a new version client.
- Don't forget to try updating any other mods you are using if your game is crashing.

plz give me star on githoob kthx
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ yarn_mappings=1.21.4+build.7
loader_version=0.16.9

# Mod Properties
mod_version=1.3.9-1.21.4-newMeteorAddonFormat
mod_version=1.4.0-1.21.4
maven_group=pwn.noobs
archives_base_name=1trouser-streak
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import net.minecraft.block.enums.TrialSpawnerState;
import net.minecraft.client.gui.screen.DisconnectedScreen;
import net.minecraft.client.gui.screen.DownloadingTerrainScreen;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.vehicle.ChestMinecartEntity;
import net.minecraft.text.Text;
import net.minecraft.util.math.BlockPos;
Expand All @@ -35,6 +36,57 @@
public class ActivatedSpawnerDetector extends Module {
private final SettingGroup sgGeneral = settings.getDefaultGroup();
private final SettingGroup sgRender = settings.createGroup("Render");
private final SettingGroup sgLocations = settings.createGroup("Location Toggles");
private final Setting<Boolean> trialSpawner = sgLocations.add(new BoolSetting.Builder()
.name("Trial Spawner Detector")
.description("Detects activated Trial Spawners.")
.defaultValue(true)
.build()
);
private final Setting<Boolean> showmoremenu = sgLocations.add(new BoolSetting.Builder()
.name("Show More Location Toggles")
.description("Make the options menu bigger or smaller.")
.defaultValue(false)
.build());
private final Setting<Boolean> enableDungeon = sgLocations.add(new BoolSetting.Builder()
.name("Enable Dungeon")
.description("Enable detection for dungeons.")
.defaultValue(true)
.visible(showmoremenu::get)
.build());

private final Setting<Boolean> enableMineshaft = sgLocations.add(new BoolSetting.Builder()
.name("Enable Mineshaft")
.description("Enable detection for mineshafts.")
.defaultValue(true)
.visible(showmoremenu::get)
.build());

private final Setting<Boolean> enableBastion = sgLocations.add(new BoolSetting.Builder()
.name("Enable Bastion")
.description("Enable detection for bastions.")
.defaultValue(true)
.visible(showmoremenu::get)
.build());

private final Setting<Boolean> enableWoodlandMansion = sgLocations.add(new BoolSetting.Builder()
.name("Enable Woodland Mansion")
.description("Enable detection for woodland mansions.")
.defaultValue(true)
.visible(showmoremenu::get)
.build());
private final Setting<Boolean> enableFortress = sgLocations.add(new BoolSetting.Builder()
.name("Enable Fortress")
.description("Enable detection for fortresses.")
.defaultValue(true)
.visible(showmoremenu::get)
.build());
private final Setting<Boolean> enableStronghold = sgLocations.add(new BoolSetting.Builder()
.name("Enable Stronghold")
.description("Enable detection for strongholds.")
.defaultValue(true)
.visible(showmoremenu::get)
.build());
private final Setting<Boolean> chatFeedback = sgGeneral.add(new BoolSetting.Builder()
.name("Chat feedback")
.description("Display info about spawners in chat.")
Expand Down Expand Up @@ -78,12 +130,6 @@ public class ActivatedSpawnerDetector extends Module {
.defaultValue(true)
.build()
);
private final Setting<Boolean> trialSpawner = sgGeneral.add(new BoolSetting.Builder()
.name("Trial Spawner Detector")
.description("Detects activated Trial Spawners.")
.defaultValue(true)
.build()
);
public final Setting<Integer> deactivatedSpawnerdistance = sgGeneral.add(new IntSetting.Builder()
.name("Torch Scan distance")
.description("How many blocks from the spawner to look for blocks that make light")
Expand Down Expand Up @@ -216,6 +262,7 @@ public class ActivatedSpawnerDetector extends Module {
private int closestSpawnerY=2000000000;
private int closestSpawnerZ=2000000000;
private double SpawnerDistance=2000000000;
private boolean activatedSpawnerFound = false;

public ActivatedSpawnerDetector() {
super(Trouser.Main,"ActivatedSpawnerDetector", "Detects if a player has been near a mob spawner in the past. May be useful for finding player made stashes in dungeons, mineshafts, and other places.");
Expand Down Expand Up @@ -260,7 +307,7 @@ private void onPreTick(TickEvent.Pre event) {

for (BlockEntity blockEntity : blockEntities) {
if (blockEntity instanceof MobSpawnerBlockEntity){
boolean activatedSpawnerFound = false;
activatedSpawnerFound = false;
MobSpawnerBlockEntity spawner = (MobSpawnerBlockEntity) blockEntity;
BlockPos pos = spawner.getPos();
BlockPos playerPos = new BlockPos(mc.player.getBlockX(), pos.getY(), mc.player.getBlockZ());
Expand All @@ -283,8 +330,6 @@ private void onPreTick(TickEvent.Pre event) {
}
}
if (caveAirFound && airFound) {
spawnerPositions.add(pos);
activatedSpawnerFound = true;
if (monster == ":spider") displayMessage("dungeon", pos, ":spider");
else displayMessage("dungeon", pos, "null");
}
Expand All @@ -300,8 +345,6 @@ private void onPreTick(TickEvent.Pre event) {
}
}
if (caveAirFound && airFound) {
spawnerPositions.add(pos);
activatedSpawnerFound = true;
displayMessage("cave_spider", pos, "null");
}
} else if (monster.contains("silverfish")) {
Expand All @@ -316,8 +359,6 @@ private void onPreTick(TickEvent.Pre event) {
}
}
if (caveAirFound && airFound) {
spawnerPositions.add(pos);
activatedSpawnerFound = true;
displayMessage("silverfish", pos, "null");
}
}
Expand All @@ -341,14 +382,16 @@ private void onPreTick(TickEvent.Pre event) {
} else {
if (displaycoords.get()) ChatUtils.sendMsg(Text.of("Detected Activated Spawner! Block Position: " + pos));
else ChatUtils.sendMsg(Text.of("Detected Activated Spawner!"));
spawnerPositions.add(pos);
activatedSpawnerFound = true;
}
} else {
if (displaycoords.get()) ChatUtils.sendMsg(Text.of("Detected Activated Spawner! Block Position: " + pos));
else ChatUtils.sendMsg(Text.of("Detected Activated Spawner!"));
spawnerPositions.add(pos);
activatedSpawnerFound = true;
}
}
spawnerPositions.add(pos);
activatedSpawnerFound = true;
}
if (activatedSpawnerFound == true) {
if (deactivatedSpawner.get()){
Expand Down Expand Up @@ -523,30 +566,50 @@ private void displayMessage(String key, BlockPos pos, String key2) {
if (chatFeedback.get()){
if (key=="dungeon") {
if (key2==":spider") {
if (mc.world.getBlockState(pos.down()).getBlock() == Blocks.BIRCH_PLANKS){
if (mc.world.getBlockState(pos.down()).getBlock() == Blocks.BIRCH_PLANKS && enableWoodlandMansion.get()){
activatedSpawnerFound = true;
spawnerPositions.add(pos);
if (displaycoords.get()) ChatUtils.sendMsg(Text.of("Detected Activated §cWOODLAND MANSION§r Spawner! Block Position: " + pos));
else ChatUtils.sendMsg(Text.of("Detected Activated §cWOODLAND MANSION§r Spawner!"));
} else {
if (enableDungeon.get()){
activatedSpawnerFound = true;
spawnerPositions.add(pos);
if (displaycoords.get()) ChatUtils.sendMsg(Text.of("Detected Activated §cDUNGEON§r Spawner! Block Position: " + pos));
else ChatUtils.sendMsg(Text.of("Detected Activated §cDUNGEON§r Spawner!"));
}
}
} else {
if (enableDungeon.get()){
activatedSpawnerFound = true;
spawnerPositions.add(pos);
if (displaycoords.get()) ChatUtils.sendMsg(Text.of("Detected Activated §cDUNGEON§r Spawner! Block Position: " + pos));
else ChatUtils.sendMsg(Text.of("Detected Activated §cDUNGEON§r Spawner!"));
}
} else {
if (displaycoords.get()) ChatUtils.sendMsg(Text.of("Detected Activated §cDUNGEON§r Spawner! Block Position: " + pos));
else ChatUtils.sendMsg(Text.of("Detected Activated §cDUNGEON§r Spawner!"));
}
} else if (key=="cave_spider") {
} else if (key=="cave_spider" && enableMineshaft.get()) {
activatedSpawnerFound = true;
spawnerPositions.add(pos);
if (displaycoords.get()) ChatUtils.sendMsg(Text.of("Detected Activated §cMINESHAFT§r Spawner! Block Position: " + pos));
else ChatUtils.sendMsg(Text.of("Detected Activated §cMINESHAFT§r Spawner!"));
} else if (key=="silverfish") {
} else if (key=="silverfish" && enableStronghold.get()) {
activatedSpawnerFound = true;
spawnerPositions.add(pos);
if (displaycoords.get()) ChatUtils.sendMsg(Text.of("Detected Activated §cSTRONGHOLD§r Spawner! Block Position: " + pos));
else ChatUtils.sendMsg(Text.of("Detected Activated §cSTRONGHOLD§r Spawner!"));
} else if (key=="blaze") {
} else if (key=="blaze" && enableFortress.get()) {
activatedSpawnerFound = true;
spawnerPositions.add(pos);
if (displaycoords.get()) ChatUtils.sendMsg(Text.of("Detected Activated §cFORTRESS§r Spawner! Block Position: " + pos));
else ChatUtils.sendMsg(Text.of("Detected Activated §cFORTRESS§r Spawner!"));
} else if (key=="magma") {
} else if (key=="magma" && enableBastion.get()) {
activatedSpawnerFound = true;
spawnerPositions.add(pos);
if (displaycoords.get()) ChatUtils.sendMsg(Text.of("Detected Activated §cBASTION§r Spawner! Block Position: " + pos));
else ChatUtils.sendMsg(Text.of("Detected Activated §cBASTION§r Spawner!"));
} else {
activatedSpawnerFound = true;
spawnerPositions.add(pos);
if (displaycoords.get()) ChatUtils.sendMsg(Text.of("Detected Activated Spawner! Block Position: " + pos));
else ChatUtils.sendMsg(Text.of("Detected Activated Spawner!"));
}
Expand Down
Loading

0 comments on commit e72aab4

Please sign in to comment.