ContentTweaker - Expanding Minecraft Possibilities
ContentTweaker is a powerful addon for CraftTweaker that opens up completely new horizons of customization for players. Unlike basic CraftTweaker, which is limited to working with recipes, this mod allows you to create entirely new items and blocks directly in the game.
What Can You Create?
With ContentTweaker, you get access to creating:
• Custom items with unique properties
• Personalized blocks of various types
• Additional tabs in creative mode
Working Features
Using the mod's capabilities requires special script configuration. Scripts are placed in the "scripts" folder, same as for CraftTweaker, but must start with the '#loader contenttweaker' directive in the first line.
Creating new blocks is done through Zenscript syntax. All created blocks work the same as standard Minecraft blocks and require models (.obj format supported), texture JSON files, and corresponding textures.
All necessary directories are automatically created in the ACRONYM/ContentTweaker subfolder within the game's configuration folder.
Block Creation Example
import mods.contenttweaker.VanillaFactory;
import mods.contenttweaker.Block;
var zsBlock = VanillaFactory.createBlock("zs_block", );
zsBlock.fullBlock = true;
zsBlock.lightOpacity = 255;
zsBlock.translucent = true;
zsBlock.lightValue = 1.0;
zsBlock.blockHardness = 5.0;
zsBlock.blockResistance = 5.0;
zsBlock.toolClass = "pickaxe";
zsBlock.toolLevel = 2;
zsBlock.blockSoundType = ;
zsBlock.register();
More detailed documentation and usage examples can be found in the project's official wiki.