Mineuniverse
Log in Register
Mods

Lang Magic Tweaker

tweaker for lang_magic
by Hileb
Download Claim this project
36 downloads
0 likes
Updated Jul 6, 2026
0 hypes
CraftTweaker

Tweaker for LangMagic

//example:
#debug

import mods.Hileb.lang_magic_tweaker.LangMagicTweaker;
import mods.Hileb.lang_magic_tweaker.LangMagicContext;
import mods.Hileb.lang_magic_tweaker.LangMagicPredicate;
import crafttweaker.item.IItemStack;
import crafttweaker.oredict.IOreDict;
import mods.Hileb.lang_magic_tweaker.LangMagic;

//Add for Word
LangMagicTweaker.registerWord("hileb:word", "hileb", function(context as LangMagicContext){
    context.getPlayer().sendChat("Hello! I am Hileb!!!");
});

//Add for Keyword
LangMagicTweaker.registerKeyword("hileb:rain", "my gold!", function(context as LangMagicContext){
    context.getPlayer().give(<ore:ingotIron>.firstItem);
});

//Add for regex
LangMagicTweaker.registerRegex("hileb:diamond", "(?<![a-zA-Z])diamond(?![a-zA-Z])", function(context as LangMagicContext){
    context.getPlayer().give(<ore:dirt>.firstItem * 16);
});

LangMagicTweaker.unregister("yanling:fool"); // "屁屁墨"

LangMagicTweaker.register("hileb:xp", LangMagic(function(context as LangMagicContext) as bool {
        return LangMagicTweaker.stringMatches("(?<![a-zA-Z])xp(?![a-zA-Z])", context.getMessage())
            && context.getPlayer().xp < 10000;
    } , function(context as LangMagicContext){
            context.getPlayer().xp = context.getPlayer().xp + 100;
    })
);

LangMagicTweaker.get("yanling:catch").setPredicate(LangMagicPredicate.ofKeyword("catch"));

LangMagicTweaker.get("yanling:thunderstorm").appendPredicate(function(context as LangMagicContext) as bool {
        return context.world.isRaining();
});

/**
Note:

屁屁墨    yanling:fool
红寡妇    yanling:score
悬浮术    yanling:fly
悬浮射线    yanling:ray
木灵回春术    yanling:heal
牛魔大力功    yanling:force
捕捉    yanling:catch
雷击术    yanling:thunder
强化术    yanling:strengthen
大雷暴    yanling:thunderstorm
射箭    yanling:arrow
万象天引    yanling:sky
*/
lang_magic_tweaker-1.0.1.jar
MC Client, Forge, Server, 1.12.2
Release 2025-06-18 Get

More from Hileb

Pre Fish Feed
764
Custom Village
701
Redirectionor [Retro]
632,662
Curse Forge
461
FermiumBooterDepoliticization
45,603
Custom Colorful Enchantment
413

You Might Also Like

Ender Tweaker
EnderIO + CraftTweaker
9,574,671
PackMode
Simple Mod-pack Utility to allow switching between PackModes
9,024,946
Zen Summoning
Allows for custom mob summoning with CraftTweaker
7,912,007
FTB Tweaks
This is a very simple mod that introduces the concept of game modes. For want of a better description this allows you to set up multiple minetweaker profiles and switch between them on the fly (no server restart required) This gives you the ability to...
7,191,034
CraftTweaker GUI
Allows editing and managing edited recipes for CraftTweaker
98,064
Fluid Interaction Tweaker
This is a CraftTweaker/GroovyScript addon that enables you to add more fluid interactions.
92,986