-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**0.6.6** AutoMountain update, .wb now .world
- Made NewerNewChunk data reset when changing dimension via dying, this is to prevent chunk data mixing between dimensions. - Renamed the .wb command to .world and renamed the class name from "WorldBorderCoordsCommand" to "WorldInfoCommand" - The .world command now tells you the default location of the world spawn (if it is not changed via commands), in addition to the location of the world borders. It also tells you if the day/night cycle is on. (I hope to add more stuff soon but alot of the gamerules are not accessible directly) - Fixed AutoMountain auto rounding your Y level if no starting paused on activating the module. It will auto round your position on activation still if you choose not to start AutoMountain paused. - Made AutoMountain be able to start staircasing off of blocks that are not one full block in height (chests, slabs, etc.)
- Loading branch information
Showing
7 changed files
with
86 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/main/java/pwn/noobs/trouserstreak/commands/WorldInfoCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package pwn.noobs.trouserstreak.commands; | ||
|
||
import com.mojang.brigadier.builder.LiteralArgumentBuilder; | ||
import meteordevelopment.meteorclient.commands.Command; | ||
import meteordevelopment.meteorclient.utils.player.ChatUtils; | ||
import net.minecraft.command.CommandSource; | ||
import net.minecraft.network.packet.c2s.play.JigsawGeneratingC2SPacket; | ||
import net.minecraft.network.packet.s2c.play.AdvancementUpdateS2CPacket; | ||
import net.minecraft.text.Text; | ||
import net.minecraft.world.GameRules; | ||
|
||
import static meteordevelopment.meteorclient.MeteorClient.mc; | ||
|
||
import static com.mojang.brigadier.Command.SINGLE_SUCCESS; | ||
|
||
public class WorldInfoCommand extends Command { | ||
public WorldInfoCommand() { | ||
super("world", "Tells you the coordinates of each world border, and the spawn location."); | ||
} | ||
|
||
@Override | ||
public void build(LiteralArgumentBuilder<CommandSource> builder) { | ||
builder.executes(context -> { | ||
ChatUtils.sendMsg(Text.of("East World Border X: "+(int) mc.world.getWorldBorder().getBoundEast()+", West World Border X: "+(int) mc.world.getWorldBorder().getBoundWest()+", South World Border Z: "+(int) mc.world.getWorldBorder().getBoundSouth()+", North World Border Z: "+(int) mc.world.getWorldBorder().getBoundNorth())); | ||
ChatUtils.sendMsg(Text.of("Default WorldSpawn Location (May be different if changed): "+mc.world.getSpawnPos())); | ||
ChatUtils.sendMsg(Text.of("Difficulty: "+mc.world.getDifficulty().toString())); | ||
ChatUtils.sendMsg(Text.of("DO_DAYLIGHT_CYCLE: "+mc.world.getGameRules().getBoolean(GameRules.DO_DAYLIGHT_CYCLE))); | ||
return SINGLE_SUCCESS; | ||
}); | ||
} | ||
} |
Oops, something went wrong.