Skip to content

Commit

Permalink
0.2.9-AutoMountain Updates and Cleaning up a bit
Browse files Browse the repository at this point in the history
0.2.9
-AutoMountain now starts paused Press UseKey (RightClick) to start building stairs. There is an option to not start paused when AutoMountain is activated.
-Your position is no longer locked when pausing AutoMountain with the useKey. This is to allow you to easily relocate and press the useKey again to make more stairs expanding the mountain you are working on, or to build another.
-Added Render option. It Renders where your next stair will be placed, to give you an idea of where you will be going.
-Changed the position you hover above blocks while building to hopefully prevent the slim chance of dying.
-Changed onDeactivate stuff to also hopefully prevent slim chance of die.
(Upon further testing it seems much safer on the particular server I tried it on.)
-Removed CenterMode option. You have to be centered to build stairs correctly anyway so I hardcoded it.
  • Loading branch information
etianl authored Jan 20, 2023
1 parent 6a5e5a2 commit 856980f
Show file tree
Hide file tree
Showing 11 changed files with 186 additions and 104 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ In no particular order
- **AutoDrop:** Drops the stack in your selected slot automatically. You can shift click your inventory items to slot one to dump your trash easily.
- **AutoMountain:** AutoMountain builds stairs in the direction you aim. It builds upward if you are looking toward the horizon or higher, and builds downward if you are looking down. (Credits to Frostburn for the base for the code, and Banana for the player centering utils.)
- *AutoMountain Controls:*
- UseKey (Right Click) starts and pauses mountain building.
- Left and RightKeys turn Mountain building.
- ForwardKey Turns mountain up, Back Key turns mountain down.
- JumpKey adjusts spacing of stairs according to the OnDemandSpacing value.
- UseKey (Right Click) pauses and resumes mountain building.
- **AutoStaircase:** Builds stairs upward in the direction you are facing by running forward and jumping. (Credits to Frostburn, and Banana for the player centering utils to make it work correctly) I just had to fix up some stuff for this one but Frostburn had the base code there. I believe this is the first publicly available automatic staircase builder in a Meteor addon, correct me if I'm wrong maybe I didn't have to learn some Java to do this.
- **BetterScaffold:** Give you more options for scaffolding, bigger range and others. (Credits to Meteor-Tweaks)
- **Boom+:** Throws entities when you click (Credits to Allah-Hack) I just added some more fun things you might want to throw.
Expand All @@ -43,14 +43,15 @@ In no particular order
- **Voider:** Replaces the world from the top down (Credits to Allah-Hack) I only added options to set max and minimum height for voiding, and instead of just air it can do water and lava now too.

## Known Bugs:
- Launching a SinglePlayer world with AutoMountain enabled causes crash. Disable the AutoMountain module before loading a single player world to avoid this.
- Some blocks may cause Automountain to attempt to build while not actually placing anything (Torches, walls, and doors did this until I fixed). If a block does not work please make an issue so I can correct it.
-------------------------------------
- **Blocks That do not work at all with AutoMountain**
- SnowBlocks
- maybe more?
-------------------------------------
- AutoMountain can cause damage once in a while and I'm not sure why. Be prepared to die in the name of mountain building. (it is really rare though)
- AutoMountain can cause damage when disabling the module and when building down if the server is lagging or your ping is too high. There is an included option to pause the builder if no ticks to help keep you safe
- Damage from AutoMountain can rarely happen when disabling the module and when building downward if the server is lagging or your ping is too high. There is an included option to pause the builder if the server is not ticking to help keep you safe.
- TPFly can hurt you once in a while on disable. I tried to prevent this. You also rubberband if going toward a block because it attempts to teleport you through it.
- Adjusting TPFly antikick values while flying can be deadly
- Normal Mode antikick for the velocity flight mode that I added can cause damage once in a while for an unknown reason.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ yarn_mappings=1.19.3+build.3
loader_version=0.14.11

# Mod Properties
mod_version=0.2.8-1.19.3
mod_version=0.2.9-1.19.3
maven_group=pwn.noobs
archives_base_name=trouser-streak

Expand Down
263 changes: 181 additions & 82 deletions src/main/java/pwn/noobs/trouserstreak/modules/AutoMountain.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package pwn.noobs.trouserstreak.modules;

import meteordevelopment.meteorclient.events.meteor.KeyEvent;
import meteordevelopment.meteorclient.events.entity.player.PlayerMoveEvent;
import meteordevelopment.meteorclient.events.meteor.MouseButtonEvent;
import meteordevelopment.meteorclient.events.world.TickEvent;
import meteordevelopment.meteorclient.gui.GuiTheme;
import meteordevelopment.meteorclient.gui.widgets.WWidget;
Expand All @@ -12,7 +10,6 @@
import meteordevelopment.meteorclient.systems.modules.world.Timer;
import meteordevelopment.meteorclient.utils.misc.input.Input;
import meteordevelopment.meteorclient.utils.misc.input.KeyAction;
import meteordevelopment.meteorclient.utils.player.ChatUtils;
import meteordevelopment.meteorclient.utils.player.PlayerUtils;
import meteordevelopment.orbit.EventHandler;
import net.minecraft.block.Blocks;
Expand All @@ -31,7 +28,6 @@
import pwn.noobs.trouserstreak.utils.BEntityUtils;
import pwn.noobs.trouserstreak.utils.BPlayerUtils;
import pwn.noobs.trouserstreak.utils.BWorldUtils;
import pwn.noobs.trouserstreak.utils.PositionUtils;


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package pwn.noobs.trouserstreak.modules;

import meteordevelopment.meteorclient.events.entity.player.PlayerMoveEvent;
import meteordevelopment.meteorclient.events.meteor.MouseButtonEvent;
import meteordevelopment.meteorclient.events.world.TickEvent;
import meteordevelopment.meteorclient.settings.*;
import meteordevelopment.meteorclient.systems.modules.Module;
import meteordevelopment.meteorclient.utils.player.ChatUtils;
import meteordevelopment.orbit.EventHandler;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/pwn/noobs/trouserstreak/modules/HandOfGod.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
package pwn.noobs.trouserstreak.modules;

import meteordevelopment.meteorclient.events.meteor.MouseButtonEvent;
import net.minecraft.block.Block;
import net.minecraft.block.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.nbt.NbtCompound;
Expand All @@ -29,8 +27,6 @@
import meteordevelopment.orbit.EventHandler;
import net.minecraft.client.gui.screen.DisconnectedScreen;

import java.util.List;

public class HandOfGod extends Module {
private final SettingGroup sgGeneral = settings.getDefaultGroup();

Expand Down
1 change: 0 additions & 1 deletion src/main/java/pwn/noobs/trouserstreak/modules/Phase.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package pwn.noobs.trouserstreak.modules;

import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.Vec3d;
import net.minecraft.util.shape.VoxelShapes;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
import meteordevelopment.meteorclient.events.world.TickEvent;
import meteordevelopment.meteorclient.renderer.ShapeMode;
import meteordevelopment.meteorclient.settings.*;
import meteordevelopment.meteorclient.systems.modules.Categories;
import meteordevelopment.meteorclient.systems.modules.Module;
import meteordevelopment.meteorclient.systems.modules.Modules;
import meteordevelopment.meteorclient.systems.modules.player.AutoTool;
import meteordevelopment.meteorclient.systems.modules.world.InfinityMiner;
import meteordevelopment.meteorclient.utils.Utils;
import meteordevelopment.meteorclient.utils.misc.Pool;
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/pwn/noobs/trouserstreak/modules/TPFly.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,16 @@

import meteordevelopment.meteorclient.events.world.TickEvent;
import meteordevelopment.meteorclient.settings.*;
import meteordevelopment.meteorclient.systems.modules.Categories;
import meteordevelopment.meteorclient.systems.modules.Module;
import meteordevelopment.orbit.EventHandler;
import net.minecraft.block.BlockState;
import net.minecraft.command.argument.EntityAnchorArgumentType;
import net.minecraft.item.BlockItem;
import net.minecraft.util.ActionResult;
import net.minecraft.util.Hand;
import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.hit.EntityHitResult;
import net.minecraft.util.hit.HitResult;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.Vec3d;
import net.minecraft.util.math.Vec3i;
import net.minecraft.util.shape.VoxelShape;
import pwn.noobs.trouserstreak.Trouser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.minecraft.util.math.Vec3i;
import pwn.noobs.trouserstreak.Trouser;
import pwn.noobs.trouserstreak.utils.BEntityUtils;

public class TrouserFlight extends Module {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"etianll, and various authors"
],
"contact": {
"repo": "https://github.com/"
"repo": "https://github.com/etianl/Trouser-Streak/"
},
"icon": "assets/icon/icon.png",
"environment": "client",
Expand Down

0 comments on commit 856980f

Please sign in to comment.