Skip to content

Commit

Permalink
update 1.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ItziSpyder committed Jun 27, 2024
1 parent 890ee8d commit 6ceeadc
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 34 deletions.
46 changes: 26 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,32 @@ Happy coding and cpvping!

## Newest Changes
```yml
Version: 1.2.5

Update:
- 1.21 SUPPORT # credit: I-No-One

Patched:
- health tags module rendering weirdly when near water or translucent blocks
- dragging the scroll bar being very slow or unbalanced

Added:
- online script downloader, download pre-made scripts!
- GUI opening and closing animations
- GUI widgets (sliders, toggles, etc.) have opening and toggle animations
- script command condition # if input_active k (key_name) ex. if input active key k
- script command input # input key (key_name) ex. input key left_shift
- script command gui_quickmove updated # now supports swapping to hotbar! ex. gui_quickmove #totem 7
- module SelfGlow # credit: I-No-One

Tweaked:
- made wait script command spit an error when people use it wrongly cuz too many people uses it wrongly
Version: 1.2.6

Add:
- as command # as nearest_entity :player if holding :diamond_sword
- if on_ground
- if on_fire
- if frozen
- if has_equiptment
- if blocking
- if in_singleplayer
- if hurt_time
- if cursor_item
- if moving
- if colliding
- if colliding_horizontally
- if colliding_vertically
- if reference_entity
- execute_period # execute_period 0.05 {} to wait 0.05 seconds between each execution inside of the brackets
- hold_input # hold_input attack 100
- hold_input cancel

Patches:
- link module edit screen to module browsing screen

Pulls:
- accept PR https://github.com/ItziSpyder/ClickCrystals/pull/70
```
![demo](https://cdn.modrinth.com/data/YDYPZdGj/images/d4ad4320aaf5d8589829e3d1691ec5755422a778.png)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ org.gradle.java.home=/Program Files/java/jdk-21
loader_version=0.15.11

# Mod Properties
mod_version=1.21-1.2.5
mod_version=1.21-1.2.6
maven_group=io.github.itzispyder
archives_base_name=ClickCrystals

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,14 @@

/**
* ClickCrystals main
* TODO: (1) Update mod version down in "Global.java"
* TODO: (2) Update mod "gradle.properties"
* TODO: (4) Update "README.md"
* TODO: (5) Publishing checklist
* TODO: (6) GitHub Release
* TODO: (7) PlanetMC Release
* TODO: (7) CurseForge Release
* TODO: (8) Update <a href="https://itzispyder.github.io/clickcrystals/info">...</a>
* TODO: (9) Discord Announcement
* TODO: (1) Update mod "gradle.properties"
* TODO: (2) Update "README.md"
* TODO: (3) Publishing checklist
* TODO: (4) GitHub Release
* TODO: (5) PlanetMC Release
* TODO: (6) CurseForge Release
* TODO: (7) Update <a href="https://itzispyder.github.io/clickcrystals/info">...</a>
* TODO: (8) Discord Announcement
*/
public final class ClickCrystals implements ModInitializer, Global {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public String toURL() {
}

public String toLocalPath() {
return Config.PATH_SCRIPTS + toFileName() + ".ccs";
return Config.PATH_SCRIPTS + "downloads/" + toFileName() + ".ccs";
}

public String toFileName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,15 @@ public ModuleCmd(){
public void onCommand(ScriptCommand command, String line, ScriptArgs args) {
switch (args.get(0).toEnum(Action.class, null)) {
case CREATE -> {
if (ClickScript.currentFile.get() == null) {
if (ClickScript.currentFile.get() == null)
throw new IllegalStateException("Module cannot be created: current file pointer is null!");
}
currentScriptModule = new ScriptedModule(args.get(1).toString(), "", ClickScript.currentFile.get());

ScriptedModule created = new ScriptedModule(args.get(1).toString(), "", ClickScript.currentFile.get());

if (system.getModuleById(created.getId()) != null)
throw new IllegalStateException("Cannot create module '%s' because one with the same name already exists!".formatted(created.getId()));

currentScriptModule = created;
system.addModule(currentScriptModule);
ClickScript.currentFile.set(null);
}
Expand Down

0 comments on commit 6ceeadc

Please sign in to comment.