diff --git a/.all-contributorsrc b/.all-contributorsrc deleted file mode 100644 index 1fceb9e..0000000 --- a/.all-contributorsrc +++ /dev/null @@ -1,70 +0,0 @@ -{ - "files": [ - "README.md" - ], - "imageSize": 100, - "commit": false, - "commitType": "docs", - "commitConvention": "angular", - "contributors": [ - { - "login": "ItziSpyder", - "name": "ImproperIssues", - "avatar_url": "https://avatars.githubusercontent.com/u/114215797?v=4", - "profile": "https://itzispyder.github.io/", - "contributions": [ - "code", - "doc", - "ideas", - "bug" - ] - }, - { - "login": "TheTrouper", - "name": "TheTrouper", - "avatar_url": "https://avatars.githubusercontent.com/u/93684527?v=4", - "profile": "https://discord.gg/ogre", - "contributions": [ - "code" - ] - }, - { - "login": "e-coders", - "name": "Ark", - "avatar_url": "https://avatars.githubusercontent.com/u/83082760?v=4", - "profile": "http://e-coders.me", - "contributions": [ - "doc", - "ideas" - ] - }, - { - "login": "I-no-one", - "name": "I-No-oNe", - "avatar_url": "https://avatars.githubusercontent.com/u/145749961?v=4", - "profile": "https://i-no-one.github.io/Website/", - "contributions": [ - "code", - "bug", - "ideas" - ] - }, - - { - "login": "ayaanibrahimtutla", - "name": "Tutla", - "avatar_url": "https://avatars.githubusercontent.com/u/91965613?v=4", - "profile": "https://github.com/ayaanibrahimtutla", - "contributions": [ - "ideas" - ] - } - - ], - "contributorsPerLine": 7, - "skipCi": true, - "repoType": "github", - "repoHost": "https://github.com", - "projectName": "ClickCrystalsXYZ", - "projectOwner": "e-coders" -} diff --git a/.hintrc b/.hintrc deleted file mode 100644 index 54048d0..0000000 --- a/.hintrc +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": [ - "development" - ], - "hints": { - "no-inline-styles": "off", - "axe/forms": [ - "default", - { - "label": "off" - } - ] - } -} diff --git a/.htaccess b/.htaccess index 77577f8..ba7fef0 100644 --- a/.htaccess +++ b/.htaccess @@ -1 +1,5 @@ -ErrorDocument 404 /404 +ErrorDocument 404 /404.html + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^(.*)$ $1.html [L,R=301] diff --git a/.nojekyll b/.nojekyll deleted file mode 100644 index 8b13789..0000000 --- a/.nojekyll +++ /dev/null @@ -1 +0,0 @@ - diff --git a/404.html b/404.html index ceb54cb..f3d3f31 100644 --- a/404.html +++ b/404.html @@ -1,12 +1,10 @@ + - 404 | ClickCrystals - - 404 | ClickCrystals diff --git a/404.md b/404.md deleted file mode 100644 index b9976ec..0000000 --- a/404.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -permalink: /404 ---- \ No newline at end of file diff --git a/README.md b/README.md index d8dfc6e..ec8cbb4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ + # 💎 ClickCrystals
diff --git a/ai/config.json b/ai/config.json new file mode 100644 index 0000000..c1cede7 --- /dev/null +++ b/ai/config.json @@ -0,0 +1,1392 @@ +{ + "hasPlayedBefore": true, + "overviewMode": false, + "keybindEntries": { + "module-toggle-keybind": -1, + "open-clickcrystals-module-screen": 344, + "message-resend-keybind": -1, + "open-hud-editor-screen": 59, + "command-prefix": 46, + "zoom-key": -1 + }, + "positionEntries": { + "module-list-text-hud": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "rotation-hud": { + "x": 497, + "y": 280, + "width": 120, + "height": 16 + }, + "clock-hud": { + "x": 299, + "y": 38, + "width": 50, + "height": 16 + }, + "cps-hud": { + "x": 298, + "y": 187, + "width": 50, + "height": 16 + }, + "crystal-speed-hud": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "color-overlay-hud": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "target-hud": { + "x": 77, + "y": 46, + "width": 120, + "height": 16 + }, + "pos-hud": { + "x": 474, + "y": 74, + "width": 120, + "height": 16 + }, + "icon-hud": { + "x": 489, + "y": 242, + "width": 120, + "height": 30 + }, + "crosshair-hud": { + "x": 357, + "y": 265, + "width": 120, + "height": 16 + }, + "resource-hud": { + "x": 532, + "y": 143, + "width": 20, + "height": 20 + }, + "armor-hud": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "ping-hud": { + "x": 225, + "y": 38, + "width": 50, + "height": 16 + }, + "fps-hud": { + "x": 370, + "y": 38, + "width": 50, + "height": 16 + }, + "direction-hud": { + "x": 312, + "y": 294, + "width": 120, + "height": 16 + }, + "biome-hud": { + "x": 520, + "y": 306, + "width": 120, + "height": 16 + }, + "entity-indicator-hud": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "notifications-hud": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + } + }, + "overviewScreenEntries": { + "Lag": { + "left": { + "x": 8, + "y": 140, + "width": 90, + "height": 109 + }, + "right": false + }, + "Render": { + "left": { + "x": 445, + "y": 27, + "width": 90, + "height": 253 + }, + "right": false + }, + "Misc": { + "left": { + "x": 543, + "y": 28, + "width": 90, + "height": 205 + }, + "right": false + }, + "Custom Made": { + "left": { + "x": 106, + "y": 61, + "width": 90, + "height": 241 + }, + "right": false + }, + "PvP": { + "left": { + "x": 109, + "y": 23, + "width": 90, + "height": 25 + }, + "right": true + }, + "search-category-element": { + "left": { + "x": 210, + "y": 25, + "width": 90, + "height": 40 + }, + "right": false + }, + "Client": { + "left": { + "x": 342, + "y": 27, + "width": 90, + "height": 25 + }, + "right": true + }, + "Crystal": { + "left": { + "x": 8, + "y": 26, + "width": 90, + "height": 109 + }, + "right": false + } + }, + "moduleEntries": { + "axe-swap": { + "id": "axe-swap", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "shield-switch": { + "id": "shield-switch", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "sword-swap": { + "id": "sword-swap", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "gap-swap": { + "id": "gap-swap", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "rail-swap": { + "id": "rail-swap", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "tnt-swap": { + "id": "tnt-swap", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false, + "instant": false + }, + "stringEntries": {} + }, + "bow-swap": { + "id": "bow-swap", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false, + "pull-bow": false + }, + "stringEntries": {} + }, + "gui-borders": { + "id": "gui-borders", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "in-game-huds": { + "id": "in-game-huds", + "objectEntries": {}, + "integerEntries": { + "color-alpha": 138, + "color-green": 0, + "color-blue": 0, + "module-toggle-keybind": 256, + "color-red": 0 + }, + "doubleEntries": { + "target-hud-stay-time": 10.0 + }, + "booleanEntries": { + "render-cps-hud": true, + "module-game-join-disable": false, + "render-resource-hud": false, + "module-enabled": false, + "render-icon-hud": false, + "render-clock-hud": true, + "render-crosshair-hud": false, + "render-biome-hud": false, + "target-hud-no-combat-disable": true, + "render-fps-hud": true, + "render-position-hud": false, + "render-ping-hud": true, + "render-direction-hud": false, + "render-target-hud": true, + "render-rotation-hud": false + }, + "stringEntries": { + "clock-hud-hour-display": "HOUR_12" + } + }, + "silk-touch": { + "id": "silk-touch", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "entity-statuses": { + "id": "entity-statuses", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "health-tags": { + "id": "health-tags", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "no-npc": true, + "scale-with-distance": true, + "module-game-join-disable": false, + "only-players": true, + "module-enabled": false, + "no-unliving": true + }, + "stringEntries": {} + }, + "crystal-anchor": { + "id": "crystal-anchor", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false, + "on-sword": false, + "on-crystal": true, + "on-pickaxe": false + }, + "stringEntries": {} + }, + "anchor-switch": { + "id": "anchor-switch", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "click-crystal": { + "id": "click-crystal", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "client-crystals": { + "id": "client-crystals", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "crystal-switch": { + "id": "crystal-switch", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "on-obsidian": true, + "on-glowstone": true, + "exclude-bedrock": false, + "on-totem": true, + "module-game-join-disable": false, + "module-enabled": false, + "on-sword": true, + "on-anchor": true, + "on-crystal": true + }, + "stringEntries": {} + }, + "obsidian-switch": { + "id": "obsidian-switch", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "on-obsidian": true, + "on-glowstone": true, + "exclude-bedrock": false, + "on-totem": true, + "module-game-join-disable": false, + "module-enabled": false, + "on-sword": true, + "on-anchor": true, + "on-crystal": true + }, + "stringEntries": {} + }, + "pearl-switch": { + "id": "pearl-switch", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "on-totem": true, + "module-game-join-disable": false, + "module-enabled": false, + "on-sword": true + }, + "stringEntries": {} + }, + "gui-cursor": { + "id": "gui-cursor", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "totem-shift-holder": true, + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": { + "cursor-action": "HOVER_TOTEM" + } + }, + "no-interactions": { + "id": "no-interactions", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "allow-decor": false, + "allow-sign-editing": false, + "allow-chests": false, + "module-game-join-disable": false, + "allow-doors": false, + "module-enabled": false, + "allow-redstone": false, + "allow-shulker": false + }, + "stringEntries": {} + }, + "armor-hud": { + "id": "armor-hud", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": { + "hand-option": "MAIN_HAND" + } + }, + "auto-gg": { + "id": "auto-gg", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": { + "entity-range": 7.5 + }, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": { + "random-message-4": "noice", + "random-message-5": "ha better luck next time", + "random-message-2": "good game", + "random-message-3": "ez", + "random-message-1": "gg" + } + }, + "auto-respawn": { + "id": "auto-respawn", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "module-list-hud": { + "id": "module-list-hud", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "message-resend": { + "id": "message-resend", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256, + "message-resend-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "tool-switcher": { + "id": "tool-switcher", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "exclude-sword": false, + "exclude-glowstone": false, + "module-game-join-disable": false, + "exclude-totem": false, + "module-enabled": false, + "exclude-crystal": false, + "exclude-obsidian": false, + "exclude-anchor": false + }, + "stringEntries": {} + }, + "totem-pops": { + "id": "totem-pops", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false, + "show-own": true + }, + "stringEntries": { + "own-pop-name": "\u00266\u0026nYou", + "enemy-death-message": "\u00267\u0026n%player% \u00268\u0026o died after popping \u00267\u0026o(\u0026e%pops%\u00267\u0026o) \u00268totems!", + "enemy-pop-message": "\u00267\u0026n%player% \u00268\u0026o popped \u00267\u0026o(\u0026e%pops%\u00267\u0026o) \u00268totems!" + } + }, + "chat-prefix": { + "id": "chat-prefix", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": { + "mentions-pitch": 2.0, + "mentions-volume": 1.0 + }, + "booleanEntries": { + "mentions": true, + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": { + "text-font-style": "Tiny", + "chat-suffix": "", + "chat-prefix": "" + } + }, + "next-block": { + "id": "next-block", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "should-raytrace": true, + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "auto-walk": { + "id": "auto-walk", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false, + "should-sprint": false + }, + "stringEntries": {} + }, + "no-break-delay": { + "id": "no-break-delay", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "mouse-taper": { + "id": "mouse-taper", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "reopen-on-disable": true, + "module-game-join-disable": false, + "module-enabled": false, + "exclude-below": false, + "exclude-above": false, + "should-lock-cursor": false + }, + "stringEntries": { + "button": "Left", + "tape-mode": "Forever" + } + }, + "anti-crash": { + "id": "anti-crash", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": { + "max-explosion-velocity": 100000.0, + "max-explosion-radius": 100.0, + "max-particle-amount": 500.0, + "max-explosion-blocks": 100000.0 + }, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false, + "send-feedback": true + }, + "stringEntries": {} + }, + "explode-particles": { + "id": "explode-particles", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "disable-black-fire-smoke": true, + "module-game-join-disable": false, + "module-enabled": false, + "disable-potion-particles": true, + "disable-white-poof-cloud": true + }, + "stringEntries": {} + }, + "no-item-bounce": { + "id": "no-item-bounce", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "no-load-screen": { + "id": "no-load-screen", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "no-server-packs": { + "id": "no-server-packs", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "full-bright": { + "id": "full-bright", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "time-changer": { + "id": "time-changer", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": { + "time-mode": "NIGHT" + } + }, + "block-outline": { + "id": "block-outline", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": { + "Red": 255.0, + "Blue": 255.0, + "Green": 255.0 + }, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "camera-clip": { + "id": "camera-clip", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": { + "camera-distance": 5.0 + }, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false, + "camera-clip": true + }, + "stringEntries": {} + }, + "no-gui-background": { + "id": "no-gui-background", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "crystal-speed": { + "id": "crystal-speed", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "totem-scale": { + "id": "totem-scale", + "objectEntries": {}, + "integerEntries": { + "x-translation": 0, + "module-toggle-keybind": 256, + "y-translation": -62 + }, + "doubleEntries": { + "scale": 0.3 + }, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "no-armor-render": { + "id": "no-armor-render", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "render-leggings": false, + "module-game-join-disable": false, + "render-helmet": false, + "module-enabled": false, + "render-boots": false, + "render-chestplate": false + }, + "stringEntries": {} + }, + "spectator-sight": { + "id": "spectator-sight", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false, + "entity": true, + "player": true + }, + "stringEntries": {} + }, + "slow-hand-swing": { + "id": "slow-hand-swing", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "no-hurt-cam": { + "id": "no-hurt-cam", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "no-game-overlay": { + "id": "no-game-overlay", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "totem-overlay": { + "id": "totem-overlay", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "Fill": true, + "Meme": false, + "module-game-join-disable": false, + "Crosshair icon": false, + "module-enabled": false, + "Border": false + }, + "stringEntries": {} + }, + "render-own-name": { + "id": "render-own-name", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "no-view-bob": { + "id": "no-view-bob", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "glowing-entities": { + "id": "glowing-entities", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": { + "entity-light-level": 15.0 + }, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "no-scoreboard": { + "id": "no-scoreboard", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "cancel-scoreboard-packets": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "health-as-bar": { + "id": "health-as-bar", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "show-value-text": true, + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "zoom": { + "id": "zoom", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256, + "zoom-key": -1 + }, + "doubleEntries": { + "Multiplier.": 0.3 + }, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false, + "scroll-to-change": true + }, + "stringEntries": {} + }, + "view-model": { + "id": "view-model", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": { + "main-rotation-y": 0.0, + "main-rotation-z": 0.0, + "main-rotation-x": 0.0, + "main-position-x": 0.7, + "off-rotation-z": 0.0, + "main-position-y": -0.3, + "off-rotation-y": 0.0, + "main-position-z": -0.8, + "off-position-y": 0.0, + "off-position-x": -1.3, + "off-rotation-x": 0.0, + "off-position-z": 0.0 + }, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "ghost-totem": { + "id": "ghost-totem", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": 256 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": { + "render-mode": "OffHand" + } + }, + "entity-indicator": { + "id": "entity-indicator", + "objectEntries": {}, + "integerEntries": { + "hud-size": 45, + "module-toggle-keybind": 256, + "sprite-size": 10, + "radar-range": 64 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false, + "only-monsters": false, + "update-per-render": true + }, + "stringEntries": {} + }, + "anti-kb": { + "id": "anti-kb", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "auto-totem": { + "id": "auto-totem", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "kill-aura": { + "id": "kill-aura", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "CW-CRYSTALS-LEGIT": { + "id": "CW-CRYSTALS-LEGIT", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "flight": { + "id": "flight", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "marlow-anchor": { + "id": "marlow-anchor", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "create": { + "id": "create", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "rocket-crystal": { + "id": "rocket-crystal", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "anchor-place": { + "id": "anchor-place", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "middle-click-pearl": { + "id": "middle-click-pearl", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "auto-clicker": { + "id": "auto-clicker", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "double-clicker": { + "id": "double-clicker", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "fireball": { + "id": "fireball", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "new-world": { + "id": "new-world", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": true + }, + "stringEntries": {} + }, + "sprint-reset": { + "id": "sprint-reset", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "clickcrystals-xyz": { + "id": "clickcrystals-xyz", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "gmc-lol": { + "id": "gmc-lol", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "skyblock": { + "id": "skyblock", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "sword-hit": { + "id": "sword-hit", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + }, + "test": { + "id": "test", + "objectEntries": {}, + "integerEntries": { + "module-toggle-keybind": -1 + }, + "doubleEntries": {}, + "booleanEntries": { + "module-game-join-disable": false, + "module-enabled": false + }, + "stringEntries": {} + } + } +} \ No newline at end of file diff --git a/ai/index.html b/ai/index.html new file mode 100644 index 0000000..18fa274 --- /dev/null +++ b/ai/index.html @@ -0,0 +1,20 @@ + + + + + + AI Chat Popup + + + + + + + + + + + diff --git a/ai/index.php b/ai/index.php new file mode 100644 index 0000000..e464b3a --- /dev/null +++ b/ai/index.php @@ -0,0 +1,517 @@ + $e->getMessage())); + } + } else { + // Prompt key is missing in the JSON data + http_response_code(400); // Bad request + echo json_encode(array("error" => "Prompt is missing")); + } +} else { + // Invalid request method + http_response_code(405); // Method Not Allowed + echo json_encode(array("error" => "Method Not Allowed")); +} +$thing = <<. If you want to execute a script file, ,ccs run . + +All script files must have a file extension of .ccs or .txt. If the file does not have either one of these extensions, they will be skipped. + +Downloading ClickCrystals +Hyped up and ready to script? Let’s download the mod itself! + +To download ClickCrystals, you must first acknowledge the fake copies that exist on the internet out there. When things like this happen, it is least likely that someone is using the name of ClickCrystals to get their name out there; most of the time it is someone taking advantage of <70 IQ people to download their infected software. + +Be sure that you only download the .jar from trusted sources. We would encourage most users to download our project on CurseForge. If you don’t trust the CurseForge site, you can always visit Modrinth, but it is not recommended due to content rule compatibility issues and has been discontinued. + +If you are a developer and would rather build the jar yourself, ClickCrystals is a free and open source software on GitHub. + +When in-game, you can press on the apostrophe key on your keyboard. The key should look like this: ‘ . Another name for the apostrophe is called the single quote. + +Navigating GUI +Once the home page has opened, you can either search up modules from the search bar or Browse the client options. For the sake of this tutorial, we will be checking out the “Browse Modules” option. +Navigating Files +When ClickCrystals first launches, it would create a folder named .clickcrystals inside of your .minecraft folder. + +ClickCrystals Folder + +To access your .minecraft folder, press Win+R and type the following. A folder should pop up and in it select .minecraft. Inside of that folder you should see another one at the top named** .clickcrystals**. + +Run + +There are a few key components in your .clickcrystals folder. These include your config, clickcrystals log, profile data, profiles folder, and scripts folder. This wiki will be covering the scripts folder located in .minecraft/.clickcrystals/scripts. + +ClickCrystals Script +CCS is an interpreted script language, meaning that it determines what each execution does before it runs and does not require compilation. This allows ClickCrystals users to easily reload or run their scripts in game. + +All ClickCrystal scripts are run first thing upon game launch. This either includes the creation of new modules or other tasks such as saving the config or printing something into the console. If you want to execute scripts after launch, you can run the command ,ccs compile . If you want to execute a script file, ,ccs run . + +Now, let’s dive deep into scripting. + +Category Name Description +Syntax on Registers an event listener. +if Evaluates an if statement. +if_not Evaluates an if statement and tests if value is false. +while Loops a CCS block or line until the condition is false. +while_not Loops a CCS block or line until the condition is true. +execute Executes any CCS script block or line. +execute_random Executes ONE RANDOM CCS script line from the next script block. +loop Repeats a CCS block or line for the specified amount of times. +loop_period Repeats a CCS block or line for the specified amount of times, while also waiting a period before the next iteration. +print Prints the next quoted message in the console. +throw Throws an exception (error) with the message from the next quoted message. +exit Exits the Java JVM with the specified exit code. +function Calls a script function with the specified name. +Client module Manages modules with the specified module id. +description Sets the description of the current script module to the next quoted message. +config Manages the config for ClickCrystals. +say Make the client type or execute the message of the next quote in chat. +send Direct messages the session user with the message of the next quote. +notify Sends a notification to the session user with the specified stay time and the message of the next quoted message. +playsound Plays a sound to the client session user with the specified volume and pitch. +define Defines a specific object for the client. Mostly used for scripting. +Macros drop Drop the item you have in your main hand with the specified amount. +teleport Send a teleport packet to the server to change your position instantly. +velocity Send a velocity packet to the server to change your velocity +turn_to Slowly turn your head camera to a specified object in the world to simulate player input. +snap_to Snaps your head camera instantly to a specified object in the world. Does not simulate player input. +damage Sends an attack packet to the nearest of the specified entity. +switch Hotkeys to the specified item in your hotbar. +swap Swap the item in your main hand with the one in your offhand. +input Simulates a player input: attack, use, walk, etc... +gui_drop If inventory is opened, drop the specified item with the specified amount. +gui_switch If inventory is opened, hover the cursor over the specified item. +gui_swap If inventory is opened, swap the specified item with your offhand item. +gui_quickmove If inventory is opened, quickmove the specified item. + +Argument Abbreviation Key +Symbol Meaning Example +** Argument format may not be uniform, some may require you to provide another one. A [**] prefix would indicate the argument is only needed for some specific previous arguments. **N +.. [..] argument would indicate any CCS script block or line can follow after. .. +N [N] argument indicates any decimal number. N +n [n] argument indicates any whole number (integer). n ++N [+N] argument indicates an operator in front of a decimal number, there are NO SPACES between the two. +N ++n [+n] argument indicates an operator in front of the whole number (integer), there are NO SPACES between the two. +n +ID [ID] argument indicates minecraft identifiers. Prefix [:] implies exact match, prefix [#] implies match contains. :diamond_sword +Or + +#sword + +“” A quoted message “Hello World!” + +Script Blocks & Lines +A script line is a singular script command. This could sometimes be chained using then-chains. A script block is a collection of one or more script lines surrounded by brackets. If a script block is typed all on one line, semicolons are needed at the end of each line to distinguish it from the rest in the block.Command: on +Registers an event listener. + +All Events & Emissions +Name Usage Example Emission +right_click on right_click .. on right_click { send "Hello world!"; } pre +left_click on left_click .. on left_click { send "Hello World!"; } pre +middle_click on middle_click .. on middle_click { send "Hello World!"; } pre +right_release on right_release .. on right_release { send "Hello world!"; } pre +left_release on left_release .. on left_release { send "Hello World!"; } pre +middle_release on middle_release .. on middle_release { send "Hello World!"; } pre +place_block on place_block .. on place_block { if holding :dirt { send "Hello World!"; } } pre +break_block on break_block .. on break_block { if target_block :dirt { send "Hello World!"; } } post +punch_block on punch_block .. on punch_block { if target_block :dirt { send "Hello World!"; } } pre +interact_block on interact_block .. on interact_block { if target_block :dirt { send "Hello World!"; } } pre +tick on tick .. on tick { send "Hello World!"; } post +item_use on item_use .. on item_use { send "Hello World!"; } pre +item_consume on item_consume on item_consume { send "Hello World!"; } pre +totem_pop on totem_pop .. on totem_pop { send "Hello World!"; } post +module_enable on module_enable .. on module_enable { send "Hello World!"; } post +module_disable on module_disable .. on module_disable { send "Hello World!"; } post +move_pos on move_pos .. on move_pos { send "Hello World!"; } pre +move_look on move_look .. on move_look { send "Hello World!"; } pre +key_press on key_press **key .. on key_press e { send "Hello World!"; } pre +key_release on key_release **key .. on key_release e { send "Hello World!"; } pre +damage on damage .. on damage { send "Hello World!"; } post +respawn on respawn .. on respawn { send "Hello World!"; } post +death on death .. on death { send "Hello World!"; } post +game_join on game_join .. on game_join { send "Hello World!"; } pre +game_leave on game_leave .. on game_leave { send "Hello World!"; } pre +chat_send on chat_send **message .. on chat_send "real" { send "Hello World!"; } pre +chat_receive on chat_receive **message .. on chat_receive "real" { send "Hello World!"; } post + +Command: if, if_not, !if +Evaluates an if statement. + +All Conditions & Examples +Name Usage Example +holding if holding **ID .. if holding :diamond { send "Hello World!"; } +off_holding if off_holding **ID .. if off_holding :diamond { send "Hello World!"; } +inventory_has if inventory_has **ID .. if inventory_has :diamond { send "Hello World!"; } +hotbar_has if hotbar_has **ID .. if hotbar_has :diamond { send "Hello World!"; } +target_block if target_block **ID .. if target_block :diamond_block { send "Hello World!"; } +target_entity if target_entity **ID .. if target_entity :creeper { send "Hello World!"; } +targeting_entity if targeting_entity .. if targeting_entity { send "Hello World!"; } +targeting_block if targeting_block .. if targeting_block { send "Hello World!"; } +input_active if input_active **input .. if input_active attack { send "Hello World!"; } +block_in_range if block_in_range **ID **N .. if block_in_range #diamond_ore 16.0 { send "Hello World!"; } +entity_in_range if entity_in_range **ID **N .. if entity_in_range :zombie 16.0 { send "Hello World!"; } +attack_progress if attack_progress **+N .. if attack_progress >=0.9 { send "Hello World!"; } +health if health **+N .. if health >=20.0 { send "Hello World!"; } +armor if armor **+N .. if armor >=20.0 { send "Hello World!"; } +pos_x if pos_x **+N .. if pos_x >=20.0 { send "Hello World!"; } +pos_y if pos_y **+N .. if pos_y >=20.0 { send "Hello World!"; } +pos_z if pos_z **+N .. if pos_z >=20.0 { send "Hello World!"; } +module_enabled if module_enabled **a-module-id .. if module_enabled armor-hud { send "Hello World!"; } +module_disabled if module_disabled **a-module-id .. if module_disabled armor-hud { send "Hello World!"; } +block if block **N **N **N **ID .. if block ^ ^ ^1 :diamond_block { send "Hello World!"; } +dimension if dimension **dimension_name .. if dimension the_nether { send "Hello World!"; } +effect_duration if effect_duration **ID **+N .. if effect_duration :poison >=1 { send "Hello World!"; } +effect_amplifier if effect_amplifier **ID **+N .. if effect_amplifier :poison >=1 { send "Hello World!"; } +in_game if in_game .. if in_game { send "I'm in the world, but I could be AFK."; } +playing if playing .. if playing { send "I'm in the world and not AFK."; } +chance_of if chance_of **N .. if chance_of 50 { send "A 50/50 chance!"; } +All Conditions & Meanings +Name Meaning and What For +holding If the player is holding this item in main hand +off_holding If the player is holding this item in off hand +inventory_has If the player’s inventory has this item +hotbar_has If the player’s hotbar has this item +target_block If the player is targeting this block +target_entity If the player is targeting this entity +targeting_entity If the player is targeting any entity +targeting_block If the player is targeting any block +input_active If the player has this input active +block_in_range If the player is around this block within this range +entity_in_range If the player is around this entity within this range +attack_progress If the player’s attack cooldown is this range +health If the player’s health value is this range +armor If the player’s armor value is this range +pos_x If the player’s x position is this range +pos_y If the player’s y position is this range +pos_z If the player’s z position is this range +module_enabled If the client has this module enabled +module_disabled If the client has this module disabled +block If the client world has this block at this x, y, z coordinates +dimension If the player is in this dimension (overworld, the_nether, the_end) +effect_duration If the player has this effect with duration in this range +effect_amplifier If the player has this effect with amplifier in this range +in_game If the player is inside of a world or a multiplayer server, but could be afk. +playing If the player is inside of a world or a multiplayer server and not afk. +chance_of A random chance in % + +Command: while, while_not, !while +Loops a script block or line until a condition is not met. + +All Conditions & Examples +Name Usage Example +holding while **N holding **ID .. while 0.05 holding :diamond { send "Hello World!"; } +off_holding while **N off_holding **ID .. while 0.05 off_holding :diamond { send "Hello World!"; } +inventory_has while **N inventory_has **ID .. while 0.05 inventory_has :diamond { send "Hello World!"; } +hotbar_has while **N hotbar_has **ID .. while 0.05 hotbar_has :diamond { send "Hello World!"; } +target_block while **N target_block **ID .. while 0.05 target_block :diamond_block { send "Hello World!"; } +target_entity while **N target_entity **ID .. while 0.05 target_entity :creeper { send "Hello World!"; } +targeting_entity while **N targeting_entity .. while 0.05 targeting_entity { send "Hello World!"; } +targeting_block while **N targeting_block .. while 0.05 targeting_block { send "Hello World!"; } +input_active while **N input_active **input .. while 0.05 input_active attack { send "Hello World!"; } +block_in_range while **N block_in_range **ID **N .. while 0.05 block_in_range #diamond_ore 16.0 { send "Hello World!"; } +entity_in_range while **N entity_in_range **ID **N .. while 0.05 entity_in_range :zombie 16.0 { send "Hello World!"; } +attack_progress while **N attack_progress **+N .. while 0.05 attack_progress >=0.9 { send "Hello World!"; } +health while **N health **+N .. while 0.05 health >=20.0 { send "Hello World!"; } +armor while **N armor **+N .. while 0.05 armor >=20.0 { send "Hello World!"; } +pos_x while **N pos_x **+N .. while 0.05 pos_x >=20.0 { send "Hello World!"; } +pos_y while **N pos_y **+N .. while 0.05 pos_y >=20.0 { send "Hello World!"; } +pos_z while **N pos_z **+N .. while 0.05 pos_z >=20.0 { send "Hello World!"; } +module_enabled while **N module_enabled **a-module-id .. while 0.05 module_enabled armor-hud { send "Hello World!"; } +module_disabled while **N module_disabled **a-module-id .. while 0.05 module_disabled armor-hud { send "Hello World!"; } +block while **N block **N **N **N **ID .. while 0.05 block ^ ^ ^1 :diamond_block { send "Hello World!"; } +dimension while **N dimension **dimension_name .. while 0.05 dimension the_nether { send "Hello World!"; } +effect_duration while **N effect_duration **ID **+N .. while 0.05 effect_duration :poison >=1 { send "Hello World!"; } +effect_amplifier while **N effect_amplifier **ID **+N .. while 0.05 effect_amplifier :poison >=1 { send "Hello World!"; } +in_game while **N in_game .. while 0.05 in_game { send "I'm in the world, but I could be AFK."; } +playing while **N playing .. while 0.05 playing { send "I'm in the world and not AFK."; } +chance_of while **N chance_of **N .. while 0.05 chance_of 50 { send "A 50/50 chance!"; } +All Conditions & Meanings +Name Meaning and What For +holding If the player is holding this item in main hand +off_holding If the player is holding this item in off hand +inventory_has If the player’s inventory has this item +hotbar_has If the player’s hotbar has this item +target_block If the player is targeting this block +target_entity If the player is targeting this entity +targeting_entity If the player is targeting any entity +targeting_block If the player is targeting any block +input_active If the player has this input active +block_in_range If the player is around this block within this range +entity_in_range If the player is around this entity within this range +attack_progress If the player’s attack cooldown is this range +health If the player’s health value is this range +armor If the player’s armor value is this range +pos_x If the player’s x position is this range +pos_y If the player’s y position is this range +pos_z If the player’s z position is this range +module_enabled If the client has this module enabled +module_disabled If the client has this module disabled +block If the client world has this block at this x, y, z coordinates +dimension If the player is in this dimension (overworld, the_nether, the_end) +effect_duration If the player has this effect with duration in this range +effect_amplifier If the player has this effect with amplifier in this range +in_game If the player is inside of a world or a multiplayer server, but could be afk. +playing If the player is inside of a world or a multiplayer server and not afk. +chance_of A random chance in % + +Command: execute +Executes a script block or line. Most of the time this is used as an execution for script blocks as script lines can be executed individually. + +Usage Example +execute .. execute { send “Hello World”; send “Lol”; } +Command: execute_random +In a script block, choose a random line in it and execute it. + +Usage Example +execute_random .. execute_random { send “Hello World”; send “Lol”; } + +Command: loop +Execute a script line or block N times. + +Usage Example +loop **N .. loop 10 { send “Hello World”; } +Command: loop_period +Execute a script line or block __ times with a period of __ seconds. + +Usage Example +loop_period ** ** .. loop_period 10 1 { send “Hello World”; } + +Command: send, throw, say, description, print +Does something with the next quoted message. + +Command Action Example +send Sends the message to the client send “Hello world!” +throw Throws an exception/error with with the message throw “Hello world!” +say Say the message in chat to the server say “Hello world!” +description Sets the current module description to the message description “Hello world!” +print Prints the message in console/log print “Hello world!” +Command: exit +Exits the Java JVM with the specified exit code. + +Usage Example +exit **n exit -1 + +Command: module +Manages modules + +**Argument** **Usage** **Example** +create module create **module-id module create kill-aura +enable module enable **module-id module enable click-crystal +disable module disable **module-id module disable click-crystal + +Command: function +Calls a defined function in the current script file. + +Usage Example +function **name function anyDeclaredFunctionName +To define or declare a function, see the define command. + +Command: define +Defines an object + +**Argument** **Usage** **Example** +function define function **name .. define function _anyFunctionName_ { send "Hello World!"; send "Lol"; } +description define description ”” define description “This is a description” +module define module **module-id define module new-module + +Command: config +Manages your current configuration profile. + +**Argument** **Usage** **Example** +save config save config save +load config load config load +reload config reload config reload + +Command: notify +Sends a notification to the client + +Usage Example +notify **N ”” notify 3 “Hello World” + PREVIOUS +Config Command + +Command: playsound +Plays a sound to the client with volume and pitch. + +**Usage** **Example** +playsound **ID ** ** playsound #trident.throw 1 0.1 + +Command: input +Simulates a player input + +Usage Example +input **input_name input attack +All Input Names +Input Name Action Conditional +attack Attacks with current hand item If player is holding down attack key +use Uses current hand item If player is holding down use key +forward Presses forward key for 10 ticks If player is holding down forward key +backward Presses backward key for 10 ticks If player is holding down backward key +strafe_left Presses left key for 10 ticks If player is holding down left key +strafe_right Presses right key for 10 ticks If player is holding down right key +jump Jumps If player is holding down jump key +sprint Turns on toggle sprint then presses sprint If player is sprinting +sneak Presses sneak key for 10 ticks If player is sneaking +lock_cursor Locks your cursor If player’s cursor is locked +unlock_cursor Unlocks your cursor If player’s cursor is unlocked +left Presses left mouse button If player’s left mouse button is clicked +right Presses right mouse button If player’s right mouse button is clicked +middle Pressed middle mouse button If player’s middle mouse button is clicked +inventory Opens inventory if closed, closes if open. If players inventory is open + +Command: gui_switch, gui_swap, gui_quickmove +Manages inventory + +Command Usage Example +gui_switch gui_switch **ID gui_switch :totem_of_undying +gui_swap gui_swap**ID gui_swap :totem_of_undying +gui_quickmove gui_quickmove **ID gui_quickmove :totem_of_undying +Command: gui_drop +Drops a certain item type with N amount, or “al”l for the entire stack. + +**Usage** **Example** +gui_drop **ID **N gui_drop :dirt 45 +gui_drop **ID all gui_drop :dirt all + +Command: switch +Hotkeys to a certain item in the hotbar, or “back” to the previous slot. + +Usage Example +switch **ID switch #totem +switch back switch back + +Command: swap +Swaps current hand item with offhand item. + +Usage Example +swap swap + +Command: turn_to, snap_to +Slowly turn to or snap instantly to a target, then when done, execute a callback. + +Usage Example +turn_to **filtered_target_type **ID then .. turn_to nearest_entity :player then input attack +turn_to **singular_target_type then .. turn_to any_block then input use +All Target Types +**Filtered Target Types** **Description** +nearest_entity Nearest entity, but specifies which type +nearest_block Nearest block, but specifies which type +**Singular Target Types** +any_block Nearest block of any type +any_entity Nearest entity of any type + +Command: damage +Sends a damage packet to the server + +Usage Example +damage **filtered_target_type **ID **N damage nearest_entity :creeper +damage **singular_target_type **N damage any_entity + +Command: drop +Drops the current hand item for N amount, or all for the entire stack. + +Usage Example +drop **N drop 32 +drop all drop all + +Command: velocity, teleport +Modify movement/position + +Usage Example +teleport **~N **~N **~N teleport ~ ~10 ~ +velocity **~N **~N **~N velocity ^ ^ ^3 +~N is a very special kind of decimal argument that allows: + +~ to represent relativity position-wise +^ to represent relativity vector-wise +Format for creating a module: +module create [module name] +description [description] +[code] +With that information and only on the topic of CCS I have a question: +EOT; +function generateCompletion($prompt, $thing) { + $url = 'https://api.binjie.fun/api/generateStream'; + $data = array( + 'prompt' => $thing . $prompt, // Concatenating $thing and $prompt here + 'system' => 'Always talk in English.', + 'withoutContext' => true, + 'stream' => false + ); + $headers = array( + 'Origin: https://chat.jinshutuan.com', + 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.79 Safari/537.36', + 'Content-Type: application/json' + ); + + // Initialize cURL session + $ch = curl_init(); + + // Set cURL options + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_POST, true); + curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); + + // Execute the cURL request + $response = curl_exec($ch); + + // Check for errors + if(curl_errno($ch)) { + throw new Exception('Error occurred during curl execution: ' . curl_error($ch)); + } + + // Get the HTTP status code + $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); + + // Close cURL session + curl_close($ch); + + // Check HTTP status code + if ($httpCode !== 200) { + throw new Exception('Error: Unable to fetch the response. HTTP Status Code: ' . $httpCode); + } + + // Return the response + return $response; +} + + + +?> diff --git a/ai/script.js b/ai/script.js new file mode 100644 index 0000000..e34faaa --- /dev/null +++ b/ai/script.js @@ -0,0 +1,127 @@ +document.addEventListener("DOMContentLoaded", function() { + document.body.innerHTML += ` + + + `; + + const toggleChatBtn = document.getElementById("toggleChatBtn"); + const chatPopup = document.getElementById("chat"); + const sendBtn = document.getElementById("AisendBtn"); + const messageList = document.getElementById("ai_messages"); + + toggleChatBtn.addEventListener("click", function() { + if (chatPopup.style.display == "none"){ + chatPopup.style.display = "block"; + } else{ + chatPopup.style.display = "none" + } + }); + + sendBtn.addEventListener("click", function() { + const userInput = document.getElementById("ai_input").value; + if (!userInput.trim()) return; // Don't send empty messages + appendMessage("user", userInput); + sendBtn.classList.add("disabled") + + // Send user message to the server and receive AI response + fetch('https://tools.tutla.net/ai/models/clickcrystals/generate.php', { + method: 'POST', + body: JSON.stringify({ prompt: userInput }), + headers: { + 'Content-Type': 'application/json' + } + }) + .then(response => response.text()) + .then(data => { + appendMessage("AI", data); + }) + .catch(error => console.error('Error:', error)); + sendBtn.classList.remove("disabled") + document.getElementById("ai_input").value = ""; // Clear input field + }); + + function appendMessage(sender, message) { + const listItem = document.createElement("li"); + listItem.classList.add("d-flex", "justify-content-between", "mb-4"); + + const messageContent = ` +
+
+

${message}

+
+
+ `; + + if (sender === "user") { + listItem.innerHTML = ` + avatar + ${messageContent} + `; + } else if (sender === "AI") { + listItem.innerHTML = ` + ${messageContent} + avatar + `; + } + + messageList.appendChild(listItem); + } +}); diff --git a/ai/styles.css b/ai/styles.css new file mode 100644 index 0000000..e69de29 diff --git a/clickscript/.nojekyll b/clickscript/.nojekyll deleted file mode 100644 index 8b13789..0000000 --- a/clickscript/.nojekyll +++ /dev/null @@ -1 +0,0 @@ - diff --git a/clickscript/README.md b/clickscript/README.md deleted file mode 100644 index 35dcdb8..0000000 --- a/clickscript/README.md +++ /dev/null @@ -1,13 +0,0 @@ -![ClickCrystals Logo](img/title.png) -# Introduction -*ClickCrystalsScript (or CCS) is a custom scripting language used to create modules, macros, auto farms, hotkey binds, and much more through the mod ClickCrystals.* - -Welcome to the Google Docs version of ClickCrystals’ scripting documentation. -In this Wiki, we’ll cover these aspects of scripting with ClickCrystals: -- More information -- Downloading and installing ClickCrystals -- Locating the .minecraft folder, and the .clickcrystals folder -- Reloading your scripts or the entire client -- Writing and running your own scripts - -*This documentation is written for versions of ClickCrystals 1.2.2 or above. Please note that there are versions of Minecraft that may be unsupported for this version of ClickCrystals.* \ No newline at end of file diff --git a/clickscript/_coverpage.md b/clickscript/_coverpage.md deleted file mode 100644 index e32e221..0000000 --- a/clickscript/_coverpage.md +++ /dev/null @@ -1,12 +0,0 @@ -ClickCrystals Logo - -> Documentation for the CCS Scripting Language - -- Easily make your own scripts -- Code your own kill aura -- Dominate: Yes - -[Get ClickCrystals](https://clickcrystals.xyz/) -[Get Started](#clickcrystals-wiki) - -![color](img/editor.png) diff --git a/clickscript/_sidebar.md b/clickscript/_sidebar.md deleted file mode 100644 index 266b54c..0000000 --- a/clickscript/_sidebar.md +++ /dev/null @@ -1,35 +0,0 @@ -- [Introduction](/) - - [More Information](more_info) - - [Downloading ClickCrystals](downloading_cc) - - [Opening GUI](opening_gui) - - [Navigating GUI](navigating_gui) - - [Navigating Files](navigating_files) - - [Navigating with VSCode](navigating_vscode) - - [Opening ClickCrystals Folder](opening_cc_ingame) - - [Creating Script Files](creating_ccs) - - [Reloading Scripts](reloading_scripts) - - [ClickCrystals Script](ccs) - - [Argument Abbrevation Key](argument) - - [Script Blocks & Lines](script_blocks) - - [On Command](commands/on_command) - - [If Command](commands/if_command) - - [While Command](commands/while) - - [Execute Command](commands/execute) - - [Loop Command](commands/loop) - - [Send, Say, Throw, Print](commands/say_throw_desc) - - [Exit Command](commands/exit) - - [Module Command](commands/module) - - [Function Command](commands/func) - - [Define Command](commands/define) - - [Config Command](commands/config) - - [Notify Command](commands/notify) - - [PlaySound Command](commands/playsound) - - [Input Command](commands/input) - - [GUI Commands](commands/gui) - - [Switch Command](commands/switch) - - [Swap Command](commands/swap) - - [Turn Commands](commands/snap) - - [Damage Commands](commands/damage) - - [Drop Command](commands/drop) - - [Velocity/TP](commands/vel) - - [Examples](examples) \ No newline at end of file diff --git a/clickscript/argument.md b/clickscript/argument.md deleted file mode 100644 index 3c6f38c..0000000 --- a/clickscript/argument.md +++ /dev/null @@ -1,81 +0,0 @@ -# Argument Abbreviation Key - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Symbol - Meaning - Example -
** - Argument format may not be uniform, some may require you to provide another one. A [**] prefix would indicate the argument is only needed for some specific previous arguments. - **N -
.. - [..] argument would indicate any CCS script block or line can follow after. - .. -
N - [N] argument indicates any decimal number. - N -
n - [n] argument indicates any whole number (integer). - n -
+N - [+N] argument indicates an operator in front of a decimal number, there are NO SPACES between the two. - +N -
+n - [+n] argument indicates an operator in front of the whole number (integer), there are NO SPACES between the two. - +n -
ID - [ID] argument indicates minecraft identifiers. Prefix [:] implies exact match, prefix [#] implies match contains. - :diamond_sword -

-Or -

-#sword -

“” - A quoted message - “Hello World!” -
- diff --git a/clickscript/ccs.md b/clickscript/ccs.md deleted file mode 100644 index c68811a..0000000 --- a/clickscript/ccs.md +++ /dev/null @@ -1,229 +0,0 @@ -# ClickCrystals Script -CCS is an interpreted script language, meaning that it determines what each execution does before it runs and does not require compilation. This allows ClickCrystals users to easily reload or run their scripts in game. - -All ClickCrystal scripts are run first thing upon game launch. This either includes the creation of new modules or other tasks such as saving the config or printing something into the console. If you want to execute scripts after launch, you can run the command `,ccs compile `. If you want to execute a script file, `,ccs run `. - -Now, let’s dive deep into scripting. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Category - Name - Description -
Syntax - on - Registers an event listener. -
if - Evaluates an if statement. -
if_not - Evaluates an if statement and tests if value is false. -
while - Loops a CCS block or line until the condition is false. -
while_not - Loops a CCS block or line until the condition is true. -
execute - Executes any CCS script block or line. -
execute_random - Executes ONE RANDOM CCS script line from the next script block. -
loop - Repeats a CCS block or line for the specified amount of times. -
loop_period - Repeats a CCS block or line for the specified amount of times, while also waiting a period before the next iteration. -
print - Prints the next quoted message in the console. -
throw - Throws an exception (error) with the message from the next quoted message. -
exit - Exits the Java JVM with the specified exit code. -
function - Calls a script function with the specified name. -
Client - module - Manages modules with the specified module id. -
description - Sets the description of the current script module to the next quoted message. -
config - Manages the config for ClickCrystals. -
say - Make the client type or execute the message of the next quote in chat. -
send - Direct messages the session user with the message of the next quote. -
notify - Sends a notification to the session user with the specified stay time and the message of the next quoted message. -
playsound - Plays a sound to the client session user with the specified volume and pitch. -
define - Defines a specific object for the client. Mostly used for scripting. -
Macros - drop - Drop the item you have in your main hand with the specified amount. -
teleport - Send a teleport packet to the server to change your position instantly. -
velocity - Send a velocity packet to the server to change your velocity -
turn_to - Slowly turn your head camera to a specified object in the world to simulate player input. -
snap_to - Snaps your head camera instantly to a specified object in the world. Does not simulate player input. -
damage - Sends an attack packet to the nearest of the specified entity. -
switch - Hotkeys to the specified item in your hotbar. -
swap - Swap the item in your main hand with the one in your offhand. -
input - Simulates a player input: attack, use, walk, etc... -
gui_drop - If inventory is opened, drop the specified item with the specified amount. -
gui_switch - If inventory is opened, hover the cursor over the specified item. -
gui_swap - If inventory is opened, swap the specified item with your offhand item. -
gui_quickmove - If inventory is opened, quickmove the specified item. -
- diff --git a/clickscript/commands/config.md b/clickscript/commands/config.md deleted file mode 100644 index a083423..0000000 --- a/clickscript/commands/config.md +++ /dev/null @@ -1,47 +0,0 @@ -# Command: config -Manages your current configuration profile. - - - - - - - - - - - - - - - - - - - - -
**Argument** - - **Usage** - - **Example** - -
save - - config save - - config save - -
load - - config load - - config load - -
reload - - config reload - - config reload - -
\ No newline at end of file diff --git a/clickscript/commands/damage.md b/clickscript/commands/damage.md deleted file mode 100644 index 84ba347..0000000 --- a/clickscript/commands/damage.md +++ /dev/null @@ -1,26 +0,0 @@ -# Command: damage - -Sends a damage packet to the server - - - - - - - - - - - - - - - -
Usage - Example -
damage **filtered_target_type **ID **N - damage nearest_entity :creeper -
damage **singular_target_type **N - damage any_entity -
- diff --git a/clickscript/commands/define.md b/clickscript/commands/define.md deleted file mode 100644 index 4ea1599..0000000 --- a/clickscript/commands/define.md +++ /dev/null @@ -1,47 +0,0 @@ -# Command: define -Defines an object - - - - - - - - - - - - - - - - - - - - -
**Argument** - - **Usage** - - **Example** - -
function - - define function **name .. - - define function _anyFunctionName_ { send "Hello World!"; send "Lol"; } - -
description - - define description ”” - - define description “This is a description” - -
module - - define module **module-id - - define module new-module - -
\ No newline at end of file diff --git a/clickscript/commands/drop.md b/clickscript/commands/drop.md deleted file mode 100644 index f374c03..0000000 --- a/clickscript/commands/drop.md +++ /dev/null @@ -1,26 +0,0 @@ -# Command: drop - -Drops the current hand item for N amount, or all for the entire stack. - - - - - - - - - - - - - - - -
Usage - Example -
drop **N - drop 32 -
drop all - drop all -
- diff --git a/clickscript/commands/execute.md b/clickscript/commands/execute.md deleted file mode 100644 index 7443d21..0000000 --- a/clickscript/commands/execute.md +++ /dev/null @@ -1,38 +0,0 @@ -# Command: execute -_Executes a script block or line. Most of the time this is used as an execution for script blocks as script lines can be executed individually._ - - - - - - - - - - -
Usage - Example -
execute .. - execute { send “Hello World”; send “Lol”; } -
- - - -# Command: execute_random -_In a script block, choose a random line in it and execute it._ - - - - - - - - - - -
Usage - Example -
execute_random .. - execute_random { send “Hello World”; send “Lol”; } -
- diff --git a/clickscript/commands/exit.md b/clickscript/commands/exit.md deleted file mode 100644 index bd56301..0000000 --- a/clickscript/commands/exit.md +++ /dev/null @@ -1,18 +0,0 @@ -# Command: exit -Exits the Java JVM with the specified exit code. - - - - - - - - - - -
Usage - Example -
exit **n - exit -1 -
- diff --git a/clickscript/commands/func.md b/clickscript/commands/func.md deleted file mode 100644 index 5d8c071..0000000 --- a/clickscript/commands/func.md +++ /dev/null @@ -1,19 +0,0 @@ -# Command: function -Calls a defined function in the current script file. - - - - - - - - - - -
Usage - Example -
function **name - function anyDeclaredFunctionName -
- -To define or declare a function, see the define command. diff --git a/clickscript/commands/gui.md b/clickscript/commands/gui.md deleted file mode 100644 index c25b739..0000000 --- a/clickscript/commands/gui.md +++ /dev/null @@ -1,65 +0,0 @@ -# Command: gui_switch, gui_swap, gui_quickmove -Manages inventory - - - - - - - - - - - - - - - - - - - - - - -
Command - Usage - Example -
gui_switch - gui_switch **ID - gui_switch :totem_of_undying -
gui_swap - gui_swap**ID - gui_swap :totem_of_undying -
gui_quickmove - gui_quickmove **ID - gui_quickmove :totem_of_undying -
- -## Command: gui_drop -Drops a certain item type with N amount, or “al”l for the entire stack. - - - - - - - - - - - - -
**Usage** - - **Example** - -
gui_drop **ID **N - - gui_drop :dirt 45 - -
gui_drop **ID all - - gui_drop :dirt all - -
\ No newline at end of file diff --git a/clickscript/commands/if_command.md b/clickscript/commands/if_command.md deleted file mode 100644 index 9eed365..0000000 --- a/clickscript/commands/if_command.md +++ /dev/null @@ -1,391 +0,0 @@ -# Command: if, if_not, !if -_Evaluates an if statement._ - -## All Conditions & Examples - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name - Usage - Example -
holding - if holding **ID .. - if holding :diamond { send "Hello World!"; } -
off_holding - if off_holding **ID .. - if off_holding :diamond { send "Hello World!"; } -
inventory_has - if inventory_has **ID .. - if inventory_has :diamond { send "Hello World!"; } -
hotbar_has - if hotbar_has **ID .. - if hotbar_has :diamond { send "Hello World!"; } -
target_block - if target_block **ID .. - if target_block :diamond_block { send "Hello World!"; } -
target_entity - if target_entity **ID .. - if target_entity :creeper { send "Hello World!"; } -
targeting_entity - if targeting_entity .. - if targeting_entity { send "Hello World!"; } -
targeting_block - if targeting_block .. - if targeting_block { send "Hello World!"; } -
input_active - if input_active **input .. - if input_active attack { send "Hello World!"; } -
block_in_range - if block_in_range **ID **N .. - if block_in_range #diamond_ore 16.0 { send "Hello World!"; } -
entity_in_range - if entity_in_range **ID **N .. - if entity_in_range :zombie 16.0 { send "Hello World!"; } -
attack_progress - if attack_progress **+N .. - if attack_progress >=0.9 { send "Hello World!"; } -
health - if health **+N .. - if health >=20.0 { send "Hello World!"; } -
armor - if armor **+N .. - if armor >=20.0 { send "Hello World!"; } -
pos_x - if pos_x **+N .. - if pos_x >=20.0 { send "Hello World!"; } -
pos_y - if pos_y **+N .. - if pos_y >=20.0 { send "Hello World!"; } -
pos_z - if pos_z **+N .. - if pos_z >=20.0 { send "Hello World!"; } -
module_enabled - if module_enabled **a-module-id .. - if module_enabled armor-hud { send "Hello World!"; } -
module_disabled - if module_disabled **a-module-id .. - if module_disabled armor-hud { send "Hello World!"; } -
block - if block **N **N **N **ID .. - if block ^ ^ ^1 :diamond_block { send "Hello World!"; } -
dimension - if dimension **dimension_name .. - if dimension the_nether { send "Hello World!"; } -
effect_duration - if effect_duration **ID **+N .. - if effect_duration :poison >=1 { send "Hello World!"; } -
effect_amplifier - if effect_amplifier **ID **+N .. - if effect_amplifier :poison >=1 { send "Hello World!"; } -
in_game - if in_game .. - if in_game { send "I'm in the world, but I could be AFK."; } -
playing - if playing .. - if playing { send "I'm in the world and not AFK."; } -
chance_of - if chance_of **N .. - if chance_of 50 { send "A 50/50 chance!"; } -
- -## All Conditions & Meanings - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name - Meaning and What For -
holding - If the player is holding this item in main hand -
off_holding - If the player is holding this item in off hand -
inventory_has - If the player’s inventory has this item -
hotbar_has - If the player’s hotbar has this item -
target_block - If the player is targeting this block -
target_entity - If the player is targeting this entity -
targeting_entity - If the player is targeting any entity -
targeting_block - If the player is targeting any block -
input_active - If the player has this input active -
block_in_range - If the player is around this block within this range -
entity_in_range - If the player is around this entity within this range -
attack_progress - If the player’s attack cooldown is this range -
health - If the player’s health value is this range -
armor - If the player’s armor value is this range -
pos_x - If the player’s x position is this range -
pos_y - If the player’s y position is this range -
pos_z - If the player’s z position is this range -
module_enabled - If the client has this module enabled -
module_disabled - If the client has this module disabled -
block - If the client world has this block at this x, y, z coordinates -
dimension - If the player is in this dimension (overworld, the_nether, the_end) -
effect_duration - If the player has this effect with duration in this range -
effect_amplifier - If the player has this effect with amplifier in this range -
in_game - If the player is inside of a world or a multiplayer server, but could be afk. -
playing - If the player is inside of a world or a multiplayer server and not afk. -
chance_of - A random chance in % -
- diff --git a/clickscript/commands/input.md b/clickscript/commands/input.md deleted file mode 100644 index bf80b94..0000000 --- a/clickscript/commands/input.md +++ /dev/null @@ -1,150 +0,0 @@ -# Command: input -Simulates a player input - - - - - - - - - - -
Usage - Example -
input **input_name - input attack -
- -## All Input Names - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Input Name - Action - Conditional -
attack - Attacks with current hand item - If player is holding down attack key -
use - Uses current hand item - If player is holding down use key -
forward - Presses forward key for 10 ticks - If player is holding down forward key -
backward - Presses backward key for 10 ticks - If player is holding down backward key -
strafe_left - Presses left key for 10 ticks - If player is holding down left key -
strafe_right - Presses right key for 10 ticks - If player is holding down right key -
jump - Jumps - If player is holding down jump key -
sprint - Turns on toggle sprint then presses sprint - If player is sprinting -
sneak - Presses sneak key for 10 ticks - If player is sneaking -
lock_cursor - Locks your cursor - If player’s cursor is locked -
unlock_cursor - Unlocks your cursor - If player’s cursor is unlocked -
left - Presses left mouse button - If player’s left mouse button is clicked -
right - Presses right mouse button - If player’s right mouse button is clicked -
middle - Pressed middle mouse button - If player’s middle mouse button is clicked -
inventory - Opens inventory if closed, closes if open. - If players inventory is open -
- diff --git a/clickscript/commands/loop.md b/clickscript/commands/loop.md deleted file mode 100644 index 2ed7bff..0000000 --- a/clickscript/commands/loop.md +++ /dev/null @@ -1,36 +0,0 @@ -# Command: loop -_Execute a script line or block N times._ - - - - - - - - - - -
Usage - Example -
loop **N .. - loop 10 { send “Hello World”; } -
- -## Command: loop_period -_Execute a script line or block __ times with a period of __ seconds._ - - - - - - - - - - -
Usage - Example -
loop_period ** ** .. - loop_period 10 1 { send “Hello World”; } -
- diff --git a/clickscript/commands/module.md b/clickscript/commands/module.md deleted file mode 100644 index 6e9109d..0000000 --- a/clickscript/commands/module.md +++ /dev/null @@ -1,48 +0,0 @@ -# Command: module -Manages modules - - - - - - - - - - - - - - - - - - - - - -
**Argument** - - **Usage** - - **Example** - -
create - - module create **module-id - - module create kill-aura - -
enable - - module enable **module-id - - module enable click-crystal - -
disable - - module disable **module-id - - module disable click-crystal - -
\ No newline at end of file diff --git a/clickscript/commands/notify.md b/clickscript/commands/notify.md deleted file mode 100644 index 9988c5c..0000000 --- a/clickscript/commands/notify.md +++ /dev/null @@ -1,17 +0,0 @@ -# Command: notify -Sends a notification to the client - - - - - - - - - -
Usage - Example -
notify **N ”” - notify 3 “Hello World” -
- diff --git a/clickscript/commands/on_command.md b/clickscript/commands/on_command.md deleted file mode 100644 index 472f0ba..0000000 --- a/clickscript/commands/on_command.md +++ /dev/null @@ -1,287 +0,0 @@ -# Command: on -_Registers an event listener._ - -## All Events & Emissions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name - Usage - Example - Emission -
right_click - on right_click .. - on right_click { send "Hello world!"; } - pre -
left_click - on left_click .. - on left_click { send "Hello World!"; } - pre -
middle_click - on middle_click .. - on middle_click { send "Hello World!"; } - pre -
right_release - on right_release .. - on right_release { send "Hello world!"; } - pre -
left_release - on left_release .. - on left_release { send "Hello World!"; } - pre -
middle_release - on middle_release .. - on middle_release { send "Hello World!"; } - pre -
place_block - on place_block .. - on place_block { if holding :dirt { send "Hello World!"; } } - pre -
break_block - on break_block .. - on break_block { if target_block :dirt { send "Hello World!"; } } - post -
punch_block - on punch_block .. - on punch_block { if target_block :dirt { send "Hello World!"; } } - pre -
interact_block - on interact_block .. - on interact_block { if target_block :dirt { send "Hello World!"; } } - pre -
tick - on tick .. - on tick { send "Hello World!"; } - post -
item_use - on item_use .. - on item_use { send "Hello World!"; } - pre -
item_consume - on item_consume - on item_consume { send "Hello World!"; } - pre -
totem_pop - on totem_pop .. - on totem_pop { send "Hello World!"; } - post -
module_enable - on module_enable .. - on module_enable { send "Hello World!"; } - post -
module_disable - on module_disable .. - on module_disable { send "Hello World!"; } - post -
move_pos - on move_pos .. - on move_pos { send "Hello World!"; } - pre -
move_look - on move_look .. - on move_look { send "Hello World!"; } - pre -
key_press - on key_press **key .. - on key_press e { send "Hello World!"; } - pre -
key_release - on key_release **key .. - on key_release e { send "Hello World!"; } - pre -
damage - on damage .. - on damage { send "Hello World!"; } - post -
respawn - on respawn .. - on respawn { send "Hello World!"; } - post -
death - on death .. - on death { send "Hello World!"; } - post -
game_join - on game_join .. - on game_join { send "Hello World!"; } - pre -
game_leave - on game_leave .. - on game_leave { send "Hello World!"; } - pre -
chat_send - on chat_send **message .. - on chat_send "real" { send "Hello World!"; } - pre -
chat_receive - on chat_receive **message .. - on chat_receive "real" { send "Hello World!"; } - post -
- diff --git a/clickscript/commands/playsound.md b/clickscript/commands/playsound.md deleted file mode 100644 index 2eb82bf..0000000 --- a/clickscript/commands/playsound.md +++ /dev/null @@ -1,20 +0,0 @@ -# Command: playsound -Plays a sound to the client with volume and pitch. - - - - - - - - - -
**Usage** - - **Example** - -
playsound **ID ** ** - - playsound #trident.throw 1 0.1 - -
\ No newline at end of file diff --git a/clickscript/commands/say_throw_desc.md b/clickscript/commands/say_throw_desc.md deleted file mode 100644 index 7c3cbea..0000000 --- a/clickscript/commands/say_throw_desc.md +++ /dev/null @@ -1,53 +0,0 @@ -# Command: send, throw, say, description, print -_Does something with the next quoted message._ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Command - Action - Example -
send - Sends the message to the client - send “Hello world!” -
throw - Throws an exception/error with with the message - throw “Hello world!” -
say - Say the message in chat to the server - say “Hello world!” -
description - Sets the current module description to the message - description “Hello world!” -
print - Prints the message in console/log - print “Hello world!” -
diff --git a/clickscript/commands/snap.md b/clickscript/commands/snap.md deleted file mode 100644 index 53ad193..0000000 --- a/clickscript/commands/snap.md +++ /dev/null @@ -1,73 +0,0 @@ -# Command: turn_to, snap_to -Slowly turn to or snap instantly to a target, then when done, execute a callback. - - - - - - - - - - - - - - -
Usage - Example -
turn_to **filtered_target_type **ID then .. - turn_to nearest_entity :player then input attack -
turn_to **singular_target_type then .. - turn_to any_block then input use -
- -## All Target Types - - - - - - - - - - - - - - - - - - - - - - - - -
**Filtered Target Types** - - **Description** - -
nearest_entity - - Nearest entity, but specifies which type - -
nearest_block - - Nearest block, but specifies which type - -
**Singular Target Types** - - -
any_block - - Nearest block of any type - -
any_entity - - Nearest entity of any type - -
diff --git a/clickscript/commands/swap.md b/clickscript/commands/swap.md deleted file mode 100644 index e72ecfc..0000000 --- a/clickscript/commands/swap.md +++ /dev/null @@ -1,20 +0,0 @@ -# Command: swap - -Swaps current hand item with offhand item. - - - - - - - - - - - -
Usage - Example -
swap - swap -
- diff --git a/clickscript/commands/switch.md b/clickscript/commands/switch.md deleted file mode 100644 index 9fdb747..0000000 --- a/clickscript/commands/switch.md +++ /dev/null @@ -1,26 +0,0 @@ -# Command: switch - -Hotkeys to a certain item in the hotbar, or “back” to the previous slot. - - - - - - - - - - - - - - - -
Usage - Example -
switch **ID - switch #totem -
switch back - switch back -
- diff --git a/clickscript/commands/vel.md b/clickscript/commands/vel.md deleted file mode 100644 index 4a15cb4..0000000 --- a/clickscript/commands/vel.md +++ /dev/null @@ -1,33 +0,0 @@ -# Command: velocity, teleport - -Modify movement/position - - - - - - - - - - - - - - - -
Usage - Example -
teleport **~N **~N **~N - teleport ~ ~10 ~ -
velocity **~N **~N **~N - velocity ^ ^ ^3 -
- - -~N is a very special kind of decimal argument that allows: - - - -* ~ to represent relativity position-wise -* ^ to represent relativity vector-wise \ No newline at end of file diff --git a/clickscript/commands/while.md b/clickscript/commands/while.md deleted file mode 100644 index dd5f1c0..0000000 --- a/clickscript/commands/while.md +++ /dev/null @@ -1,389 +0,0 @@ -# Command: while, while_not, !while -_Loops a script block or line until a condition is not met._ - -## All Conditions & Examples - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name - Usage - Example -
holding - while **N holding **ID .. - while 0.05 holding :diamond { send "Hello World!"; } -
off_holding - while **N off_holding **ID .. - while 0.05 off_holding :diamond { send "Hello World!"; } -
inventory_has - while **N inventory_has **ID .. - while 0.05 inventory_has :diamond { send "Hello World!"; } -
hotbar_has - while **N hotbar_has **ID .. - while 0.05 hotbar_has :diamond { send "Hello World!"; } -
target_block - while **N target_block **ID .. - while 0.05 target_block :diamond_block { send "Hello World!"; } -
target_entity - while **N target_entity **ID .. - while 0.05 target_entity :creeper { send "Hello World!"; } -
targeting_entity - while **N targeting_entity .. - while 0.05 targeting_entity { send "Hello World!"; } -
targeting_block - while **N targeting_block .. - while 0.05 targeting_block { send "Hello World!"; } -
input_active - while **N input_active **input .. - while 0.05 input_active attack { send "Hello World!"; } -
block_in_range - while **N block_in_range **ID **N .. - while 0.05 block_in_range #diamond_ore 16.0 { send "Hello World!"; } -
entity_in_range - while **N entity_in_range **ID **N .. - while 0.05 entity_in_range :zombie 16.0 { send "Hello World!"; } -
attack_progress - while **N attack_progress **+N .. - while 0.05 attack_progress >=0.9 { send "Hello World!"; } -
health - while **N health **+N .. - while 0.05 health >=20.0 { send "Hello World!"; } -
armor - while **N armor **+N .. - while 0.05 armor >=20.0 { send "Hello World!"; } -
pos_x - while **N pos_x **+N .. - while 0.05 pos_x >=20.0 { send "Hello World!"; } -
pos_y - while **N pos_y **+N .. - while 0.05 pos_y >=20.0 { send "Hello World!"; } -
pos_z - while **N pos_z **+N .. - while 0.05 pos_z >=20.0 { send "Hello World!"; } -
module_enabled - while **N module_enabled **a-module-id .. - while 0.05 module_enabled armor-hud { send "Hello World!"; } -
module_disabled - while **N module_disabled **a-module-id .. - while 0.05 module_disabled armor-hud { send "Hello World!"; } -
block - while **N block **N **N **N **ID .. - while 0.05 block ^ ^ ^1 :diamond_block { send "Hello World!"; } -
dimension - while **N dimension **dimension_name .. - while 0.05 dimension the_nether { send "Hello World!"; } -
effect_duration - while **N effect_duration **ID **+N .. - while 0.05 effect_duration :poison >=1 { send "Hello World!"; } -
effect_amplifier - while **N effect_amplifier **ID **+N .. - while 0.05 effect_amplifier :poison >=1 { send "Hello World!"; } -
in_game - while **N in_game .. - while 0.05 in_game { send "I'm in the world, but I could be AFK."; } -
playing - while **N playing .. - while 0.05 playing { send "I'm in the world and not AFK."; } -
chance_of - while **N chance_of **N .. - while 0.05 chance_of 50 { send "A 50/50 chance!"; } -
- -## All Conditions & Meanings - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name - Meaning and What For -
holding - If the player is holding this item in main hand -
off_holding - If the player is holding this item in off hand -
inventory_has - If the player’s inventory has this item -
hotbar_has - If the player’s hotbar has this item -
target_block - If the player is targeting this block -
target_entity - If the player is targeting this entity -
targeting_entity - If the player is targeting any entity -
targeting_block - If the player is targeting any block -
input_active - If the player has this input active -
block_in_range - If the player is around this block within this range -
entity_in_range - If the player is around this entity within this range -
attack_progress - If the player’s attack cooldown is this range -
health - If the player’s health value is this range -
armor - If the player’s armor value is this range -
pos_x - If the player’s x position is this range -
pos_y - If the player’s y position is this range -
pos_z - If the player’s z position is this range -
module_enabled - If the client has this module enabled -
module_disabled - If the client has this module disabled -
block - If the client world has this block at this x, y, z coordinates -
dimension - If the player is in this dimension (overworld, the_nether, the_end) -
effect_duration - If the player has this effect with duration in this range -
effect_amplifier - If the player has this effect with amplifier in this range -
in_game - If the player is inside of a world or a multiplayer server, but could be afk. -
playing - If the player is inside of a world or a multiplayer server and not afk. -
chance_of - A random chance in % -
- diff --git a/clickscript/creating_ccs.md b/clickscript/creating_ccs.md deleted file mode 100644 index ed35073..0000000 --- a/clickscript/creating_ccs.md +++ /dev/null @@ -1,10 +0,0 @@ -# Creating Script Files -Now that you have everything set up in VSCode, you can start creating your script files. To do this click on the “New File” icon at the top of the navigation bar. - -![New File](img/new.png) - -Name the file whatever you want, but the convention is to have all lowercase with hyphens instead of spaces or underscores. The file name extension, however, remains as **.ccs** at all times. - -![Name the file](img/name.png) - -Once the file has been created, a preview would open to the right. Now you can start scripting! Remember to **Ctrl+S** to save any changes. \ No newline at end of file diff --git a/clickscript/downloading_cc.md b/clickscript/downloading_cc.md deleted file mode 100644 index ce3b555..0000000 --- a/clickscript/downloading_cc.md +++ /dev/null @@ -1,8 +0,0 @@ -# Downloading ClickCrystals -Hyped up and ready to script? Let’s download the mod itself! - -To download ClickCrystals, you must first acknowledge the fake copies that exist on the internet out there. When things like this happen, it is least likely that someone is using the name of ClickCrystals to get their name out there; most of the time it is someone taking advantage of <70 IQ people to download their infected software. - -Be sure that you only download the **.jar** from trusted sources. We would encourage most users to download our project on [CurseForge](https://www.curseforge.com/minecraft/mc-mods/clickcrystals). If you don’t trust the CurseForge site, you can always visit [Modrinth](https://modrinth.com/mod/clickcrystals), but it is not recommended due to content rule compatibility issues and has been discontinued. - -If you are a developer and would rather build the jar yourself, ClickCrystals is a free and open source software on [GitHub](https://github.com/itzispyder/clickcrystals). \ No newline at end of file diff --git a/clickscript/examples.md b/clickscript/examples.md deleted file mode 100644 index 982d3f2..0000000 --- a/clickscript/examples.md +++ /dev/null @@ -1,5 +0,0 @@ -# Our Example Scripts - -Here are some of our working example scripts provided by the community: - -![Examples](img/examples.png) \ No newline at end of file diff --git a/clickscript/image-1.png b/clickscript/image-1.png deleted file mode 100644 index dd2c249..0000000 Binary files a/clickscript/image-1.png and /dev/null differ diff --git a/clickscript/image-2.png b/clickscript/image-2.png deleted file mode 100644 index 59cf755..0000000 Binary files a/clickscript/image-2.png and /dev/null differ diff --git a/clickscript/image.png b/clickscript/image.png deleted file mode 100644 index dd2c249..0000000 Binary files a/clickscript/image.png and /dev/null differ diff --git a/clickscript/img/editor.png b/clickscript/img/editor.png deleted file mode 100644 index a7e73f9..0000000 Binary files a/clickscript/img/editor.png and /dev/null differ diff --git a/clickscript/img/examples.png b/clickscript/img/examples.png deleted file mode 100644 index b2a5930..0000000 Binary files a/clickscript/img/examples.png and /dev/null differ diff --git a/clickscript/img/files.png b/clickscript/img/files.png deleted file mode 100644 index 8128a00..0000000 Binary files a/clickscript/img/files.png and /dev/null differ diff --git a/clickscript/img/folder.png b/clickscript/img/folder.png deleted file mode 100644 index f49ff4f..0000000 Binary files a/clickscript/img/folder.png and /dev/null differ diff --git a/clickscript/img/icon.png b/clickscript/img/icon.png deleted file mode 100644 index 49c114e..0000000 Binary files a/clickscript/img/icon.png and /dev/null differ diff --git a/clickscript/img/name.png b/clickscript/img/name.png deleted file mode 100644 index 45952d6..0000000 Binary files a/clickscript/img/name.png and /dev/null differ diff --git a/clickscript/img/new.png b/clickscript/img/new.png deleted file mode 100644 index ea3134a..0000000 Binary files a/clickscript/img/new.png and /dev/null differ diff --git a/clickscript/img/run.png b/clickscript/img/run.png deleted file mode 100644 index 688f266..0000000 Binary files a/clickscript/img/run.png and /dev/null differ diff --git a/clickscript/img/title.png b/clickscript/img/title.png deleted file mode 100644 index 57bc55b..0000000 Binary files a/clickscript/img/title.png and /dev/null differ diff --git a/clickscript/img/tutorial.gif b/clickscript/img/tutorial.gif deleted file mode 100644 index 9ac0c9e..0000000 Binary files a/clickscript/img/tutorial.gif and /dev/null differ diff --git a/clickscript/img/tutorial2.gif b/clickscript/img/tutorial2.gif deleted file mode 100644 index 5070859..0000000 Binary files a/clickscript/img/tutorial2.gif and /dev/null differ diff --git a/clickscript/img/vscode.png b/clickscript/img/vscode.png deleted file mode 100644 index eb7dbec..0000000 Binary files a/clickscript/img/vscode.png and /dev/null differ diff --git a/clickscript/index.html b/clickscript/index.html deleted file mode 100644 index b3098b2..0000000 --- a/clickscript/index.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - Official CCS Documentation - - - - - - - - - - - - - - - - -
Loading, please wait.
- - - - - - - - - - - diff --git a/clickscript/more_info.md b/clickscript/more_info.md deleted file mode 100644 index 3eb6dbf..0000000 --- a/clickscript/more_info.md +++ /dev/null @@ -1,6 +0,0 @@ -# More Information -CCS is an interpreted script language, meaning that it determines what each execution does before it runs and does not require compilation. This allows ClickCrystals users to easily reload or run their scripts in game. - -All ClickCrystal scripts are run first thing upon game launch. This either includes the creation of new modules or other tasks such as saving the config or printing something into the console. If you want to execute scripts after launch, you can run the command `,ccs compile `. If you want to execute a script file, `,ccs run `. - -*All script files must have a file extension of .ccs or .txt. If the file does not have either one of these extensions, they will be skipped.* diff --git a/clickscript/navigating_files.md b/clickscript/navigating_files.md deleted file mode 100644 index df183fd..0000000 --- a/clickscript/navigating_files.md +++ /dev/null @@ -1,11 +0,0 @@ -# Navigating Files -When ClickCrystals first launches, it would create a folder named **.clickcrystals** inside of your **.minecraft** folder. - -![ClickCrystals Folder](img/files.png) - -To access your **.minecraft** folder, press **Win+R** and type the following. A folder should pop up and in it select **.minecraft**. Inside of that folder you should see another one at the top named** .clickcrystals**. - -![Run](img/run.png) - -There are a few key components in your **.clickcrystals** folder. These include your config, clickcrystals log, profile data, profiles folder, and scripts folder. This wiki will be covering the **scripts folder** located in **.minecraft/.clickcrystals/scripts**. -![Folder](img/folder.png) \ No newline at end of file diff --git a/clickscript/navigating_gui.md b/clickscript/navigating_gui.md deleted file mode 100644 index 727b988..0000000 --- a/clickscript/navigating_gui.md +++ /dev/null @@ -1,4 +0,0 @@ -# Navigating GUI -Once the home page has opened, you can either search up modules from the search bar or Browse the client options. For the sake of this tutorial, we will be checking out the “Browse Modules” option. - -![Tutorial](img/tutorial.gif) \ No newline at end of file diff --git a/clickscript/navigating_vscode.md b/clickscript/navigating_vscode.md deleted file mode 100644 index 2578f55..0000000 --- a/clickscript/navigating_vscode.md +++ /dev/null @@ -1,2 +0,0 @@ -# Navigating With VSCode -VSCode provides a fast and easier way to navigate your folders and files. The auto bracket enclosure and indentation provides a smoother development experience. If you do not have VSCode installed, you can use their [web version](https://vscode.dev/). \ No newline at end of file diff --git a/clickscript/opening_cc_ingame.md b/clickscript/opening_cc_ingame.md deleted file mode 100644 index 2b1ba05..0000000 --- a/clickscript/opening_cc_ingame.md +++ /dev/null @@ -1,7 +0,0 @@ -# Opening ClickCrystals Folder In-Game -To use VSCode, you must first open a folder locally. To do this type the command `,folder` in chat. Remember that the default command prefix bind is set to **comma**. - -![Tutorial2](img/tutorial2.gif) - -You can then open this folder to VSCode by clicking on the “Open Folder” button and then selecting the **.clickcrystals** folder. -![Open Folder](img/vscode.png) \ No newline at end of file diff --git a/clickscript/opening_gui.md b/clickscript/opening_gui.md deleted file mode 100644 index 71e0b40..0000000 --- a/clickscript/opening_gui.md +++ /dev/null @@ -1,4 +0,0 @@ -# Opening GUI -When in-game, you can press on the apostrophe key on your keyboard. The key should look like this: ‘ . Another name for the apostrophe is called the single quote. - - diff --git a/clickscript/reloading_scripts.md b/clickscript/reloading_scripts.md deleted file mode 100644 index d9cdb2d..0000000 --- a/clickscript/reloading_scripts.md +++ /dev/null @@ -1,4 +0,0 @@ -# Reloading Scripts -All script files can be reloaded by simply executing our custom client command `,ccs reload-scripts` - -Do note that upon reloading scripts, all custom scripted modules will be disabled. Scripted modules save to the same config that other modules do. To avoid this, there is a new command `,reload` that reloads the entire ClickCrystals Client. This would reload all scripts along with the client, and turn back on the modules that were disabled before. \ No newline at end of file diff --git a/clickscript/script_blocks.md b/clickscript/script_blocks.md deleted file mode 100644 index 638466e..0000000 --- a/clickscript/script_blocks.md +++ /dev/null @@ -1,24 +0,0 @@ -# Script Blocks & Lines - -_A script line is a singular script command. This could sometimes be chained using then-chains. A script block is a collection of one or more script lines surrounded by brackets. If a script block is typed all on one line, semicolons are needed at the end of each line to distinguish it from the rest in the block._ - - - - - - - - - - - -
A Script Line - A Script Block -
-drawing - - -drawing - -
- diff --git a/common/assets/imgs/banned.png b/common/assets/imgs/banned.png new file mode 100644 index 0000000..44b64d9 Binary files /dev/null and b/common/assets/imgs/banned.png differ diff --git a/common/assets/imgs/key.png b/common/assets/imgs/key.png new file mode 100644 index 0000000..e0b4cc0 Binary files /dev/null and b/common/assets/imgs/key.png differ diff --git a/common/assets/imgs/modrinth.png b/common/assets/imgs/modrinth.png new file mode 100644 index 0000000..67f0fe4 Binary files /dev/null and b/common/assets/imgs/modrinth.png differ diff --git a/common/assets/ingame/cc_bulletin.png b/common/assets/ingame/cc_bulletin.png index 86c510d..31a8c8a 100644 Binary files a/common/assets/ingame/cc_bulletin.png and b/common/assets/ingame/cc_bulletin.png differ diff --git a/common/assets/ingame/cc_config.png b/common/assets/ingame/cc_config.png index 61645a9..9b94a0c 100644 Binary files a/common/assets/ingame/cc_config.png and b/common/assets/ingame/cc_config.png differ diff --git a/common/assets/ingame/cc_home.png b/common/assets/ingame/cc_home.png index 976c36f..b0b0a2a 100644 Binary files a/common/assets/ingame/cc_home.png and b/common/assets/ingame/cc_home.png differ diff --git a/common/assets/ingame/cc_hud.png b/common/assets/ingame/cc_hud.png index fb03692..b876dd2 100644 Binary files a/common/assets/ingame/cc_hud.png and b/common/assets/ingame/cc_hud.png differ diff --git a/common/assets/ingame/cc_ide.png b/common/assets/ingame/cc_ide.png index fc76560..a19d393 100644 Binary files a/common/assets/ingame/cc_ide.png and b/common/assets/ingame/cc_ide.png differ diff --git a/common/assets/ingame/cc_modules.png b/common/assets/ingame/cc_modules.png index 3e0d21e..d1d0f2f 100644 Binary files a/common/assets/ingame/cc_modules.png and b/common/assets/ingame/cc_modules.png differ diff --git a/common/assets/ingame/cc_scripting.png b/common/assets/ingame/cc_scripting.png index ce73ad1..cbfef23 100644 Binary files a/common/assets/ingame/cc_scripting.png and b/common/assets/ingame/cc_scripting.png differ diff --git a/common/assets/ingame/cc_search.png b/common/assets/ingame/cc_search.png index 217e68f..4722da2 100644 Binary files a/common/assets/ingame/cc_search.png and b/common/assets/ingame/cc_search.png differ diff --git a/common/assets/ingame/cc_settings.png b/common/assets/ingame/cc_settings.png index 9629152..f183297 100644 Binary files a/common/assets/ingame/cc_settings.png and b/common/assets/ingame/cc_settings.png differ diff --git a/common/assets/team/Josh266.png b/common/assets/team/Josh266.png deleted file mode 100644 index 3944b88..0000000 Binary files a/common/assets/team/Josh266.png and /dev/null differ diff --git a/common/assets/team/anton.png b/common/assets/team/anton.png deleted file mode 100644 index e566eda..0000000 Binary files a/common/assets/team/anton.png and /dev/null differ diff --git a/common/assets/team/daddyop.png b/common/assets/team/daddyop.png deleted file mode 100644 index 0035307..0000000 Binary files a/common/assets/team/daddyop.png and /dev/null differ diff --git a/common/assets/team/improperissues.png b/common/assets/team/improperissues.png deleted file mode 100644 index 1aa49e3..0000000 Binary files a/common/assets/team/improperissues.png and /dev/null differ diff --git a/common/assets/team/noone.png b/common/assets/team/noone.png deleted file mode 100644 index 75defff..0000000 Binary files a/common/assets/team/noone.png and /dev/null differ diff --git a/common/assets/team/theshotzy02.gif b/common/assets/team/theshotzy02.gif deleted file mode 100644 index 3c8860c..0000000 Binary files a/common/assets/team/theshotzy02.gif and /dev/null differ diff --git a/common/assets/team/tutla.png b/common/assets/team/tutla.png deleted file mode 100644 index 0c4de15..0000000 Binary files a/common/assets/team/tutla.png and /dev/null differ diff --git a/common/assets/team/wither.png b/common/assets/team/wither.png deleted file mode 100644 index 0654012..0000000 Binary files a/common/assets/team/wither.png and /dev/null differ diff --git a/common/assets/team/wither123go.png b/common/assets/team/wither123go.png deleted file mode 100644 index 0561223..0000000 Binary files a/common/assets/team/wither123go.png and /dev/null differ diff --git a/common/assets/team/wolf.gif b/common/assets/team/wolf.gif deleted file mode 100644 index e0f4db5..0000000 Binary files a/common/assets/team/wolf.gif and /dev/null differ diff --git a/common/assets/versions/.gitkeep b/common/assets/versions/.gitkeep deleted file mode 100644 index 8b13789..0000000 --- a/common/assets/versions/.gitkeep +++ /dev/null @@ -1 +0,0 @@ - diff --git a/common/assets/versions/ClickCrystals-1.20.4-1.2.1.jar b/common/assets/versions/ClickCrystals-1.20.4-1.2.1.jar deleted file mode 100644 index 1c9d573..0000000 Binary files a/common/assets/versions/ClickCrystals-1.20.4-1.2.1.jar and /dev/null differ diff --git a/common/js-css/banner.js b/common/js-css/banner.js new file mode 100644 index 0000000..11395c6 --- /dev/null +++ b/common/js-css/banner.js @@ -0,0 +1,74 @@ +function calculateBasePathFromDataLayer() { + const dataLayer = document.body.getAttribute('data-layer'); + const layer = parseInt(dataLayer, 10); + const layersToAscend = isNaN(layer) ? 0 : layer; + const basePath = '../'.repeat(layersToAscend); + + return basePath; +} + + +basePath = calculateBasePathFromDataLayer(); +code = ` + + + + + `; + + +document.body.innerHTML = code+document.body.innerHTML + diff --git a/common/js-css/downloads/downloads.js b/common/js-css/downloads/downloads.js new file mode 100644 index 0000000..9e1ab65 --- /dev/null +++ b/common/js-css/downloads/downloads.js @@ -0,0 +1,60 @@ +async function getGithubReleases(repoOwner, repoName) { + const url = `https://api.github.com/repos/${repoOwner}/${repoName}/releases`; + const response = await fetch(url); + const releases = await response.json(); + return releases; +} + +async function main() { + + const repoOwner = "ItziSpyder"; + const repoName = "ClickCrystals"; + const releases = await getGithubReleases(repoOwner, repoName); + + const latestRelease = releases[0]; + const versionsElement = document.getElementById("versions"); + + const releaseTitle = latestRelease.name || "Unnamed Release"; + const sourceCodeUrl = latestRelease.html_url; + + let asset1194Url = null; + let asset120Url = null; + let asset1204Url = null; + + latestRelease.assets.forEach(asset => { + console.log('e') + const assetName = asset.name; + const assetDownloadUrl = asset.browser_download_url; + + if (assetName.includes("1.19.4")) { + asset1194Url = assetDownloadUrl; + } else if (assetName.includes("1.20") && !assetName.includes("1.20.4")) { + asset120Url = assetDownloadUrl; + } else if (assetName.includes("1.20.4")) { + asset1204Url = assetDownloadUrl; + } + }); + + const elementToDelete = document.getElementById("delete"); +if (elementToDelete) { + elementToDelete.remove(); +} + versionsElement.innerHTML= ` + + ${releaseTitle} + Current Latest version with all of the latest features + Source Code + V1.19.4 Download + V1.20 Download + V1.20.4 Download + + CurseForge + PlanetMC + + + `+versionsElement.innerHTML; + +} + +main(); + diff --git a/common/js-css/footer.js b/common/js-css/footer.js new file mode 100644 index 0000000..4aea351 --- /dev/null +++ b/common/js-css/footer.js @@ -0,0 +1,85 @@ + +function calculateBasePathFromDataLayer() { + const dataLayer = document.body.getAttribute('data-layer'); + const layer = parseInt(dataLayer, 10); + const layersToAscend = isNaN(layer) ? 0 : layer; + const basePath = '../'.repeat(layersToAscend); + + return basePath; +} + + +basePath = calculateBasePathFromDataLayer(); +code = `
+ +
`; + +document.body.innerHTML = document.body.innerHTML+code diff --git a/index/assets/backdrop.png b/common/js-css/index/assets/backdrop.png similarity index 100% rename from index/assets/backdrop.png rename to common/js-css/index/assets/backdrop.png diff --git a/index/index.css b/common/js-css/index/index.css similarity index 63% rename from index/index.css rename to common/js-css/index/index.css index 5eac980..93486f3 100644 --- a/index/index.css +++ b/common/js-css/index/index.css @@ -25,26 +25,11 @@ a:hover{ color: white; } -.backdrop .overlay { - width: 100%; - height: 100%; - background-color: rgba(0, 0, 0, 0.45); -} - -.backdrop .overlay .text { - text-align: center; - margin: auto; - padding-top: 130px; - - animation-name: textAppear; - animation-duration: 2s; - animation-fill-mode: forwards; -} .title { font-size: 45px; font-weight: bold; - text-shadow: white 0 0 20px; + } @keyframes textAppear { @@ -132,64 +117,8 @@ iframe { } * {box-sizing:border-box} -.slideshow-overlay { - width: 100%; - height: 100%; - opacity:0.4; - background-color: rgb(0, 0, 0); -} - -.slideshow-container { - max-width: 100%; - position: relative; - margin: auto; -} -.Slide { - display: none; -}.prev, .next { - cursor: pointer; - position: absolute; - top: 50%; - width: auto; - margin-top: -22px; - padding: 16px; - color: white; - font-weight: bold; - font-size: 18px; - transition: 0.6s ease; - border-radius: 0 3px 3px 0; - -webkit-user-select: none; - user-select: none; -} -.next { - right: 0; - border-radius: 3px 0 0 3px; -} -.Slide img{ -filter: brightness(0.5); -} - -.prev:hover, .next:hover { - background-color: rgba(0,0,0,0.8); -} -.slide-content { - color: #f2f2f2; - font-size: 15px; - padding: 8px 12px; - position: absolute; - bottom: 50%; - width: 100%; - text-align: center; -} -.numbertext { - color: #f2f2f2; - font-size: 12px; - padding: 8px 12px; - position: absolute; - top: 0; -} .active, .dot:hover { @@ -197,10 +126,6 @@ filter: brightness(0.5); } -.fade { - animation-name: fade; - animation-duration: 3s; -} @keyframes fade { from {opacity: .2} @@ -219,3 +144,40 @@ div.Slide.fade div.slide-content .a{ } + + + + + + + +.blink { + animation: blink 0.5s infinite; +} +@keyframes blink{ + to { opacity: .0; } +} + + + + +.typewriter div { + color: #000; + + font-weight: 500; + width: 0; + + margin: 0; /* Gives that scrolling effect as the typing happens */ +} + +.typing-erase { + animation: + blink-caret .5s infinite; +} + +@keyframes blink-caret { + 0% { opacity: 0.1}; + 50%{ opacity: 1} + +} + diff --git a/common/js-css/index/index.js b/common/js-css/index/index.js new file mode 100644 index 0000000..d2e3ce1 --- /dev/null +++ b/common/js-css/index/index.js @@ -0,0 +1,92 @@ +const words = ["auto-totem", "farm-macro", "killaura"]; +let i = 0; +let timer; + +function typingEffect() { + + let word = words[i].split(""); + var loopTyping = function() { + + if (word.length > 0) { + document.getElementById('word').innerHTML += word.shift(); + } else { + deletingEffect(); + return false; + }; + timer = setTimeout(loopTyping, 200); + }; + loopTyping(); +}; + +function deletingEffect() { + + let word = words[i].split(""); + var loopDeleting = function() { + if (word.length > 0) { + word.pop(); + document.getElementById('word').innerHTML = word.join(""); + } else { + if (words.length > (i + 1)) { + i++; + } else { + i = 0; + }; + typingEffect(); + return false; + }; + timer = setTimeout(loopDeleting, 150); + }; + loopDeleting(); +}; + +typingEffect(); +const words2 = ["if targeting_entity :player input attack", `on tick { + say "spam"; +}`, `on tick { + if holding #obsidian { + input right; + if hotbar_has #crystal { + switch #crystal; + input right; + input left; + } + } +}`]; +let j = 0; +let timer2; + +function typingEffect2() { + let word = words2[j].split(""); + var loopTyping2 = function() { + if (word.length > 0) { + document.getElementById('word2').innerHTML += word.shift(); + } else { + deletingEffect2(); + return false; + } + timer2 = setTimeout(loopTyping2, 80); + }; + loopTyping2(); +} + +function deletingEffect2() { + let word = words2[j].split(""); + var loopDeleting2 = function() { + if (word.length > 0) { + word.pop(); + document.getElementById('word2').innerHTML = word.join(""); + } else { + if (words2.length > (j + 1)) { + j++; + } else { + j = 0; + } + typingEffect2(); + return false; + } + timer2 = setTimeout(loopDeleting2, 50); + }; + loopDeleting2(); +} + +typingEffect2(); \ No newline at end of file diff --git a/common/js-css/page.js b/common/js-css/page.js new file mode 100644 index 0000000..364f92a --- /dev/null +++ b/common/js-css/page.js @@ -0,0 +1,22 @@ +document.body.setAttribute('data-bs-theme', 'dark'); +function calculateBasePathFromDataLayer() { + const dataLayer = document.body.getAttribute('data-layer'); + const layer = parseInt(dataLayer, 10); + const layersToAscend = isNaN(layer) ? 0 : layer; + const basePath = '../'.repeat(layersToAscend); + + return basePath; +} + + + +basePath = calculateBasePathFromDataLayer(); +var headerScript = document.createElement('script'); +headerScript.src = basePath+'common/js-css/banner.js'; + + +document.body.appendChild(headerScript); +var footerScript = document.createElement('script'); +footerScript.src = basePath+'common/js-css/footer.js'; +document.body.appendChild(footerScript); + diff --git a/common/js-css/tools/scriptformatter.js b/common/js-css/tools/scriptformatter.js new file mode 100644 index 0000000..e69de29 diff --git a/common/js/banner.js b/common/js/banner.js deleted file mode 100644 index 07c5727..0000000 --- a/common/js/banner.js +++ /dev/null @@ -1,96 +0,0 @@ -code = ` -