Skip to content

Commit

Permalink
Update v0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
RattlesHyper committed Aug 11, 2024
1 parent 6e5a9a0 commit b68c2f7
Show file tree
Hide file tree
Showing 34 changed files with 626 additions and 561 deletions.
65 changes: 30 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<p align="center">
<img src="https://github.com/user-attachments/assets/86b45ab2-95aa-42a2-970a-06c1935cd719"/>
</p>
<p align="center">Lyra Addon is a Meteor Client addon that has features specificed for Creative Mode/Creative Servers.</p>
<p align="center">Lyra Addon is a Meteor Client add-on specifically designed for Creative Mode and Creative servers.</p>
<p align="center">
<a href="https://github.com/RattlesHyper/Lyra-Addon/releases/latest">
<img src="https://img.shields.io/github/v/release/RattlesHyper/Lyra-Addon?color=red&style=for-the-badge"/>
Expand All @@ -17,7 +18,7 @@
- Download the latest [release](/../../releases) of the mod from the releases tab.
- Put it in your `.minecraft/mods` folder where you have installed Meteor.

*Note: It is recommended to use [1.20.4] version of meteor while using Lyra-Addon*
*Note: It is recommended to use [1.21] version of meteor while using Lyra-Addon*

## Modules

Expand All @@ -32,26 +33,26 @@
- **[OnSightCommand](#onsightcommand)**
- **[PacketScaffold](#packetscaffold)**
- **[RainbowArmor](#rainbowarmor)**
- **[DisableTooltips](#disabletooltips)**
- **[Stick](#stick)**
- **[TpAura](#tpaura)**
- **[TpMine](#tpaura)**
- **[Uwuifier](#uwuifier)**

## Commands

- `.rename` Renames the held item. Creative mode only.
- `.sptp` Teleports via spectator mode teleport packet.
- `.steal` Steals the targets held item. Creative mode only.
- `.rename` Renames the held item in creative mode.
- `.sptp` Teleports you with Spectator Mode Teleport packet.
- `.stack` Gives you a stack of the item you're holding.
- `.stick` Sticks to the target players head.
- `.stack` Gives you a stack of the item you're holding. Creative mode only.
- `.summon` Uses spawn eggs silently to spawn mobs. Creative mode only.

<hr />

## AutoMap

Helps you build 2d schematics by moving over all the blocks from start position to end position.

![](https://cdn.discordapp.com/attachments/937393739490537493/1116078413267075275/automap.gif)
![](https://github.com/user-attachments/assets/930ba533-9486-40f2-af56-613c0a5ef198)

![](https://cdn.discordapp.com/attachments/937393739490537493/1116068310245707807/image.png)

Expand All @@ -60,82 +61,76 @@ Helps you build 2d schematics by moving over all the blocks from start position
## ChatColor
Better chat colors and style formatting. for the servers that support it. Servers with Chatcolor2 plugin.

![](https://cdn.discordapp.com/attachments/937393739490537493/1116070696133607474/image.png)

![](https://cdn.discordapp.com/attachments/937393739490537493/1145952727122329670/image.png)

<hr />

### CommandAura
Sends a message when players come in render distance.

`%player%` will put the target players name.
`%target%` will put the target players name.

![](https://cdn.discordapp.com/attachments/937393739490537493/1116071408494194799/image.png)
`%me` will put your name.

<hr />

## ForEach
Execute command on all players.

`%player%` will put the target players name.
`%target%` will put the target players name.

![](https://cdn.discordapp.com/attachments/937393739490537493/1116072115305709608/image.png)
`%me` will put your name.

<hr />

## ItemDropper
Generates selected items and drops them from your inventory.

![](https://cdn.discordapp.com/attachments/937393739490537493/1116072378204700744/image.png)
Generates selected items and drops them from your inventory. Ability to clone and drop held items and with custom name.

<hr />

## JoinMessage
Runs command when you spawn in a server. Put (me) to put username automatically.
Runs command when you spawn in a server.

![](https://cdn.discordapp.com/attachments/937393739490537493/1143089914989269012/image.png)
`%me` will put your name.

<hr />

## NoChatClear
It disables the method servers try to clear your chat.
Bypasses EssentialsX chat clear method.

<hr />

## OnSightCommand
Executes commands on target in sight.

`%target%` will put the target players name.

`%me` will put your name.

<hr />

## PacketScaffold
Sends use packet to the server. (Useful for using spawn eggs in air or scaffold.)
## Stick
Sticks to target player.

![](https://cdn.discordapp.com/attachments/937393739490537493/1116073604921172071/image.png)
<hr />

## PacketScaffold
Sends block placement packets under you to the server. (Useful for using spawn eggs in air.)

<hr />

## RainbowArmor
Gives you Rainbow Leather Armor with various modes.

![](https://cdn.discordapp.com/attachments/937393739490537493/1134086384483831848/image.png)
<hr />

## TpAura
Teleports to target to increase range on KillAura.
Silently teleports to target to increase range of KillAura.

![](https://cdn.discordapp.com/attachments/937393739490537493/1134086751619645470/image.png)
<hr />

## TpMine
Teleports you to the block silently and breaks it.

![](https://cdn.discordapp.com/attachments/937393739490537493/1145961789104857228/tpmine.gif)
![](https://cdn.discordapp.com/attachments/937393739490537493/1145964040657584138/image.png)
<hr />
Silently teleports you to the block and breaks it.

## DisableTooltips
Replaces all tooltips with custom name.
![](https://github.com/user-attachments/assets/1f119afd-0d46-47b1-9fb6-c471ebb2187c)

<hr />

Expand Down
43 changes: 31 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
plugins {
id "fabric-loom" version "1.5-SNAPSHOT"
id "fabric-loom" version "1.7-SNAPSHOT"
}

sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17

archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
base {
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
}

repositories {
maven {
Expand All @@ -29,12 +29,31 @@ dependencies {
modImplementation "meteordevelopment:meteor-client:${project.meteor_version}"
}

processResources {
filesMatching("fabric.mod.json") {
expand "version": project.version, "mc_version": project.minecraft_version
tasks {
processResources {
def propertyMap = [
"version" : project.version,
"mc_version": project.minecraft_version,
]

filesMatching("fabric.mod.json") {
expand(propertyMap)
}
}
}

tasks.withType(JavaCompile).configureEach {
it.options.encoding("UTF-8")
jar {
from("LICENSE") {
rename { "${it}_${project.base.archivesBaseName}" }
}
}

java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 21
}
}
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
org.gradle.jvmargs=-Xmx2G

# Fabric Properties (https://fabricmc.net/develop)
minecraft_version=1.20.4
yarn_mappings=1.20.4+build.3
loader_version=0.15.7
minecraft_version=1.21
yarn_mappings=1.21+build.8
loader_version=0.15.11

# Mod Properties
mod_version=0.7.0
mod_version=0.8.0
maven_group=com.lyra
archives_base_name=lyra

# Dependencies

# Meteor (https://maven.meteordev.org/)
meteor_version=0.5.6-SNAPSHOT
meteor_version=0.5.8-SNAPSHOT
Binary file removed gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
10 changes: 3 additions & 7 deletions src/main/java/com/lyra/addon/Addon.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import meteordevelopment.meteorclient.systems.modules.Modules;
import org.slf4j.Logger;


public class Addon extends MeteorAddon {
public static final Logger LOG = LogUtils.getLogger();
public static final Category CATEGORY = new Category("Lyra Addon");
Expand All @@ -25,27 +24,24 @@ public void onInitialize() {
Modules.get().add(new CustomHead());
Modules.get().add(new ChatColor());
Modules.get().add(new CommandAura());
Modules.get().add(new DisableTooltips());
Modules.get().add(new ForEach());
Modules.get().add(new ItemDropper());
Modules.get().add(new JoinMessage());
Modules.get().add(new OnSightCommand());
Modules.get().add(new NoClearChat());
Modules.get().add(new OnSightCommand());
Modules.get().add(new PacketScaffold());
Modules.get().add(new RainbowArmor());
Modules.get().add(new SpectatorTeleport());
Modules.get().add(new Stick());
Modules.get().add(new TpAura());
Modules.get().add(new TpMine());
Modules.get().add(new Uwuifier());



// Commands
Commands.add(new ItemStealer());
Commands.add(new RenameCommand());
Commands.add(new SptpCommand());
Commands.add(new StackCommand());
Commands.add(new StickCommand());
Commands.add(new StealCommand());
Commands.add(new SummonCommand());
}

Expand Down
15 changes: 8 additions & 7 deletions src/main/java/com/lyra/addon/commands/RenameCommand.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package com.lyra.addon.commands;

import com.lyra.addon.utils.SetItem;
import com.mojang.brigadier.arguments.StringArgumentType;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import meteordevelopment.meteorclient.commands.Command;
import net.minecraft.command.CommandSource;
import net.minecraft.component.DataComponentTypes;
import net.minecraft.item.ItemStack;
import net.minecraft.network.packet.c2s.play.CreativeInventoryActionC2SPacket;
import net.minecraft.text.Text;
import static com.mojang.brigadier.Command.SINGLE_SUCCESS;

import static meteordevelopment.meteorclient.MeteorClient.mc;

public class RenameCommand extends Command {
public RenameCommand() {
Expand All @@ -34,11 +32,14 @@ private void setCustomName(String customName) {
error("Creative mode only.");
return;
}
ItemStack heldItemStack = mc.player.getMainHandStack().copy();
ItemStack heldItemStack = mc.player.getInventory().getMainHandStack().copy();

if (!heldItemStack.isEmpty()) {
ItemStack itemStack = heldItemStack.copy();
itemStack.setCustomName(Text.of(customName.replaceAll("&", "§")));
mc.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(36 + mc.player.getInventory().selectedSlot, itemStack));
itemStack.remove(DataComponentTypes.CUSTOM_DATA);
itemStack.set(DataComponentTypes.CUSTOM_NAME, Text.literal(customName.replaceAll("&", "§")));
SetItem.setMainHand(itemStack);
}

}
}
2 changes: 0 additions & 2 deletions src/main/java/com/lyra/addon/commands/SptpCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import static com.mojang.brigadier.Command.SINGLE_SUCCESS;

import static meteordevelopment.meteorclient.MeteorClient.mc;
public class SptpCommand extends Command {
public SptpCommand() {
super("sptp", "Teleports you with Spectator Mode Teleport packet.");
Expand Down
7 changes: 2 additions & 5 deletions src/main/java/com/lyra/addon/commands/StackCommand.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
package com.lyra.addon.commands;

import com.lyra.addon.utils.SetItem;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import com.mojang.brigadier.arguments.IntegerArgumentType;
import meteordevelopment.meteorclient.commands.Command;
import net.minecraft.command.CommandSource;
import net.minecraft.item.ItemStack;
import net.minecraft.network.packet.c2s.play.CreativeInventoryActionC2SPacket;
import static com.mojang.brigadier.Command.SINGLE_SUCCESS;

import static meteordevelopment.meteorclient.MeteorClient.mc;

public class StackCommand extends Command {
public StackCommand() {
Expand Down Expand Up @@ -47,7 +44,7 @@ private void givePlayerHeldItemStack(int stackAmount) {
if (!heldItemStack.isEmpty()) {
ItemStack itemStack = heldItemStack.copy();
itemStack.setCount(stackAmount);
mc.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(36 + mc.player.getInventory().selectedSlot, itemStack));
SetItem.setMainHand(itemStack);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,16 @@
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.network.packet.c2s.play.CreativeInventoryActionC2SPacket;
import static com.mojang.brigadier.Command.SINGLE_SUCCESS;

import static meteordevelopment.meteorclient.MeteorClient.mc;

public class ItemStealer extends Command {
public ItemStealer() {
public class StealCommand extends Command {
public StealCommand() {
super("steal", "Steals the targets held item. Creative mode only.");
}
@Override
public void build(LiteralArgumentBuilder<CommandSource> builder) {
builder.then(argument("player", PlayerArgumentType.create()).executes(context -> {
PlayerEntity player = PlayerArgumentType.get(context);
ItemStack stack = player.getInventory().getMainHandStack();
System.out.println(stack);
giveItem(stack);
return SINGLE_SUCCESS;
}));
Expand Down
Loading

0 comments on commit b68c2f7

Please sign in to comment.