Mod
Lang Magic Tweaker
No reviews yet
tweaker for lang_magic
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
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
*/
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources