KeybindsTweaker
Modby blue_beaker
Crafttweaker addon for Keybinds
Description
KeybindTweaker
A crafttweaker addon provides support for keybinds.
Currently adds these methods:
//Don't forget to import!
import crafttweaker.text.ITextComponent;
//Text component for keybinds
//ITextComponent.fromKeybind(String name);
ITextComponent.fromKeybind("key.attack");
//Text component for scoreboard and entity selector
//ITextComponent.fromScore(String entityName,String objective);
ITextComponent.fromScore("Developer","test_objective");
//ITextComponent.fromSelector(String name);
ITextComponent.fromSelector("@p");
Example:
Adds attack key to crafting table's tooltip
import crafttweaker.text.ITextComponent;
import crafttweaker.item.ITooltipFunction;
var kb1 = ITextComponent.fromKeybind("key.attack");
//Use advanced tooltip so tooltip updates after player changed the keybind
<minecraft:crafting_table>.addAdvancedTooltip(function(item) {
//Call formattedText to get text for the tooltip
return kb1.formattedText;
});
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Songs of War Mod
This Minecraft Mod has all the custom stuff from Black Plasma Studies original Minecraft animation Series Songs of War
Instant Classic Houses
Build classic houses instantly
Clear Fluid Glass
A mod that adds a block that allows you to see through fluids without fog
TFC - Rosia
A tech addon for TFC-TNG
Tardis Consoles: Colorized
addon for New Tardis Mod, adds more colours for consoles
ModularUtilities
BrassUtils, rewritten for 1.9.4+. Plus new shinies!