Download Lang Magic Tweaker — Minecraft Mods — MetaMods

Lang Magic Tweaker

Active

Downloads

0

Last update

4 months ago
Client

LangMagic Tweaker Customizer

This extension for the LangMagic mod provides flexible customization and expansion capabilities for the magical system.

Core Features

Using this tweaker, you can add your own words, key phrases, and regular expressions that will trigger magical effects when the player speaks them in chat. The system supports registering and removing spells, and also allows setting additional activation conditions.

Usage Examples

// Adding a magic word
langMagicTweaker.registerWord("hileb:word", "hileb", function(context) {
    context.getPlayer().sendChat("Hello! I am Hileb!!!");
});

// Adding a key phrase
langMagicTweaker.registerKeyword("hileb:rain", "my gold!", function(context) {
    context.getPlayer().give(<ore:ingotIron>.firstItem);
});

// Adding a regular expression
langMagicTweaker.registerRegex("hileb:diamond", "(?<![a-zA-Z])diamond(?![a-zA-Z])", function(context) {
    context.getPlayer().give(<ore:dirt>.firstItem * 16);
});

// Removing a spell
langMagicTweaker.unregister("yanling:fool");

// Advanced logic with predicates
langMagicTweaker.register("hileb:xp", langMagic(function(context) as bool {
    return context.getPlayer().xp < 10000
        && langMagicTweaker.stringMatches("(?<![a-zA-Z])xp(?![a-zA-Z])", context.getMessage());
}, function(context) {
    context.getPlayer().xp += 100;
}));

System Benefits

  • Flexibility - easily add your own spells and effects
  • Activation Conditions - configure additional requirements for triggering
  • Compatibility - works with existing LangMagic spells
  • Integration - supports CraftTweaker for extended functionality
Project members
Hileb

Hileb

Created: 18 Jun 2025

ID: 223858