Skip to content

Commit

Permalink
Clean up and started work on telepathy
Browse files Browse the repository at this point in the history
  • Loading branch information
miyucomics committed Mar 11, 2024
1 parent fe8cd7c commit 1c97525
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
12 changes: 12 additions & 0 deletions common/src/main/java/miyucomics/hexical/HexicalClient.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
package miyucomics.hexical;

import dev.architectury.event.events.client.ClientTickEvent;
import dev.architectury.registry.client.level.entity.EntityRendererRegistry;
import miyucomics.hexical.entities.SpeckEntityRenderer;
import miyucomics.hexical.registry.HexicalEntities;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.text.Text;
import org.lwjgl.glfw.GLFW;

public class HexicalClient {
private static final KeyBinding TELEPATHY_KEYBIND = new KeyBinding("key.hexical.telepathy", GLFW.GLFW_KEY_G, "key.categories.hexical");

public static void init() {
ClientTickEvent.CLIENT_POST.register(client -> {
if (client.player == null)
return;
while (TELEPATHY_KEYBIND.wasPressed())
client.player.sendMessage(Text.literal("using mind powers!!"), false);
});
EntityRendererRegistry.register(HexicalEntities.INSTANCE::getSPECK_ENTITY, SpeckEntityRenderer::new);
}
}
11 changes: 7 additions & 4 deletions common/src/main/resources/assets/hexical/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"item.hexical.conjured_staff": "Conjured Staff",
"block.hexical.mage_block": "Mage Block",

"key.categories.hexical": "Hexical",
"key.hexical.telepathy": "Telepathy",

"subtitles.hexical.lamp_activate": "Lamp activates",
"subtitles.hexical.lamp_deactivate": "Lamp deactivates",

Expand Down Expand Up @@ -44,16 +47,16 @@
"hexcasting.mishap.bad_block.advanced_conjured_block": "an advanced conjured block",
"hexcasting.mishap.hexical:needs_lamp": "Expected to be cast by Genieless Lamp.",
"hexcasting.mishap.hexical:needs_active_arch_lamp": "Expected to have an active Arch Genieless Lamp.",
"hexcasting.mishap.hexical:grimoire_access_denied": "Tried to increase the amount of a restricted binding.",
"hexcasting.mishap.hexical:grimoire_access_denied": "Tried to increase the uses of a restricted binding.",
"hexcasting.mishap.hexical:grimoire_too_full": "Tried to fit too many bindings in a grimoire.",

"hexical.page.hexical_changes.title": "Hexical Changes",
"hexical.page.hexical_changes.0": "I feel strangely more receptive of the ambient media around me. It feels $(o)friendlier$() somehow... I can even feel it responding to certain actions, as if suggesting new spells to me. I also notice I require less concentration with my staff and can move around while using it. Unfortunately, Nature has not become more forgiving of my mishaps.",
"hexical.page.hexical_changes.1": "The media has also become more malleable, letting me manipulate it precisely into specific specialized effects. I can also interface with my abacus using Scribe's Gambit.",

"hexical.page.grimoire.title": "Grimoires",
"hexical.page.grimoire.0": "By encrusting my spellbook with charged amethyst and edified wood, it traps media within the pages like an echo chamber. I can then introduce a pattern-to-pattern-list association, or a binding, for the grimoire to keep bouncing endlessly inside.",
"hexical.page.grimoire.1": "When I then cast the pattern associated with a pattern list with my staff and the grimoire in my inventory, it empowers the pattern, allowing it to break free from the grimoire's pages with a faint sound of a hex being cast. This allows me to create $(o)shortcuts$() for my staff by associating a short pattern with a common task, such as the raycast mantra.",
"hexical.page.grimoire.0": "By encrusting my spellbook with charged amethyst and edified wood, it traps media within the pages like an echo chamber. I can then introduce a pattern-to-pattern-list binding for the grimoire to keep bouncing endlessly inside.",
"hexical.page.grimoire.1": "When I then cast the pattern associated with a pattern list with my staff and the grimoire in my inventory, it empowers the pattern, allowing it to break free from the grimoire's pages with a faint sound of a hex being cast. This allows me to create $(o)shortcuts$() for my staff by associating a short pattern with a common task, such as the raycast mantra. Interestingly, the grimoire can even overwrite base patterns, allowing me to hijack and add extra functionality to them.",
"hexical.page.grimoire.2": "While stable with only a few abstract strands of media wizzing around inside, a single grimoire can not hold more than sixteen pattern associations. When attempting to introduce more, the grimoire simply rejects it and throws itself onto the ground with a shower of blue sparks.",
"hexical.page.grimoire.3": "I can also restrict a pattern inside the grimoire so it destroys itself after a certain number of uses. I shall find this aspect of the grimoire quite useful if I ever need to lend out my true name. I can simply give them a grimoire a set number of references to my name.",
"hexical.page.write_grimoire": "Writes a pattern-to-pattern-list binding into the grimoire in my offhand.",
Expand Down Expand Up @@ -125,4 +128,4 @@
"hexical.page.conjure_staff.1": "A conjured staff is not unlike a cypher. It has a media bank that it relies on for casting and breaks when it runs out, unable to consume my health or my inventory's media. It is not rechargable or programmable. Using erase item on it simply destroys it. However, its true power is $(o)input interception$().",
"hexical.page.conjure_staff.2": "When I use my primary or secondary use keys with a staff in my main hand, it intercepts my click. Depending on the rank I assigned during creation, after that many clicks, it will cast the hex I gave it, starting the stack with false and true, corresponding to my left and right clicks respectively.",
"hexical.page.conjure_staff.3": "The spell is not cheap, requiring a charged amethyst, the media battery, and an additional amethyst shard for every additional rank. However, the conjured result is both speedy and versatile, with infinitely more possibilities and none of the cooldown of other casting devices."
}
}

0 comments on commit 1c97525

Please sign in to comment.