Skip to content

Commit

Permalink
release 0.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ItziSpyder committed Jul 19, 2023
1 parent a950f76 commit 85bd3ee
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 24 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,21 @@ Happy coding and cpvping!
## Newest Changes
```yml
Minecraft: 1.20-1.20.1
Mod: 0.9.3
Mod: 0.9.4

Changelog:
- Fixed CONFIG saving issues
- Revamped config to use .json
- Each module has its own json config
- Added ArmorHud -> Shows item count and armor durability
- Fixed other major config issues.
- Added Left Hand armor HUD option.
- Revamped the Keybind Manager
* Keybinds are now all handled in the GUI
* The default GUI keybind is Right-Shift
* Click the view modules, and in the icon group with the search, click the keyboard to access the keybind manager
* You can set the keybinds for individual modules as well as the whole ClickGUI

NOTICE:
- NoBreakDelay has been removed
- Any versions regarding Minecraft 1.19.x has been discontinued,
meaning it will no longer be worked on in the future.
However, they will still be available for download.
- NoBreakDelay has been removed
- Any versions regarding Minecraft 1.19.x has been discontinued,
meaning it will no longer be worked on in the future.
However, they will still be available for download.
```
<div class="demo-menu">
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.14.21

# Mod Properties
mod_version=1.20-0.9.3
mod_version=1.20-0.9.4
maven_group=io.github.itzispyder
archives_base_name=ClickCrystals

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public final class ClickCrystals implements ModInitializer {
modId = "clickcrystals",
prefix = "[ClickCrystals] ",
starter = "§7[§bClick§3Crystals§7] §r",
version = "0.9.3";
version = "0.9.4";

/**
* Runs the mod initializer.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import net.minecraft.network.packet.s2c.play.EntityStatusS2CPacket;

import java.util.List;
import java.util.stream.Stream;

public class AutoGG extends Module implements Listener {

Expand Down Expand Up @@ -87,18 +88,23 @@ private void onReceivePacket(PacketReceiveEvent e) {
boolean playerWithinRange = ent instanceof PlayerEntity player && player.getPos().distanceTo(p.getPos()) < distance.getVal() && player != p;

if (status == EntityStatusType.DEATH && playerWithinRange) {
ChatUtils.sendChatMessage(getRandomMessage());
this.sendRandomMessage();
}
}
}

public String getRandomMessage() {
return new Randomizer<>(List.of(
public void sendRandomMessage() {
List<String> messages = Stream.of(
message1.getVal(),
message2.getVal(),
message3.getVal(),
message4.getVal(),
message5.getVal()
)).pickRand();
).filter(s -> !s.isEmpty()).toList();

if (!messages.isEmpty()) {
String msg = new Randomizer<>(messages).pickRand();
ChatUtils.sendChatMessage(msg);
}
}
}
8 changes: 0 additions & 8 deletions src/main/resources/assets/minecraft/lang/en_us.json

This file was deleted.

0 comments on commit 85bd3ee

Please sign in to comment.