Twilight Tweaks
Twilight Tweaks is an addon mod that expands the capabilities of The Twilight Forest mod with configurable features and additional mechanics.
Main Features
Configurable Final Boss
The final boss spawner now serves a useful function. By default, it activates a special script that summons a reinforced husk with backup. However, through configuration, you can set it to spawn any mob from any mods or execute any commands. This feature is particularly useful for modpack creation, but even the standard boss without configuration changes presents a serious challenge for most players (unless you're using overpowered items from other mods).
Note: In version 1.12, a long command is used instead of scripts due to technical limitations.
Repeatable Boss Battles (Only for versions 1.19+)
You can now fight bosses multiple times! To do this, you need to collect time powder that drops from mobs in the Twilight Forest dimension and use it on the remains of a boss spawner after defeating the boss.
Features for Versions 1.16 and Below
These features were added to the base mod version in newer releases.
Transformation Powder Effect Configuration
You can now configure which mobs are affected by transformation powder. This feature is mainly intended for modpack creators and doesn't affect standard gameplay without configuration changes.
Enhanced Uncrafting Table Support
The uncrafting table is now integrated with JEI and supports custom recipes. The mod includes several example recipes that you can use as a basis for creating your own through datapacks. Recipes work similarly to vanilla ones but with additional options: you can set whether the recipe overrides others and specify the experience cost for use.
CraftTweaker Support for Version 1.12
Adding Uncrafting Recipes
The method .addRecipe(boolean Replace, int Cost, IIngredient[][] Output, IIngredient Input) allows adding new recipes for uncrafting items:
- Replace — determines whether the new recipe will block other ways of uncrafting this item
- Cost — number of experience levels consumed for uncrafting
- Output — two-dimensional array of ingredients obtained from uncrafting
- Input — item that needs to be uncrafted
Example: Creating a recipe that allows uncrafting 3 apples into 9 carrots for 2 experience levels:
import crafttweaker.item.IIngredient;
val appleInput = <minecraft:apple> * 3;
val carrotOutput = [[<minecraft:carrot>, <minecraft:carrot>, <minecraft:carrot>],
[<minecraft:carrot>, <minecraft:carrot>, <minecraft:carrot>],
[<minecraft:carrot>, <minecraft:carrot>, <minecraft:carrot>]] as IIngredient[][];
mods.twilighttweaks.uncrafting.addRecipe(false, 2, carrotOutput, appleInput);
Managing Default Recipes
The method .removeDefaultRecipes(boolean[] toKeep) allows disabling any of the 5 default uncrafting recipes unique to this mod:
- toKeep — array of 5 boolean values where each corresponds to a specific recipe (true — enabled, false — disabled)
Recipes in order:
- Slightly damaged anvil
- Very damaged anvil
- Knightmetal ingot
- Tipped arrows
- Written book
Example: Disabling the second and third default recipes:
val boolArray = [true, false, false, true, true] as bool[];
mods.twilighttweaks.uncrafting.removeDefaultRecipes(boolArray);
Banning Item Uncrafting
The method .banUncraft(IItemStack input) allows banning the uncrafting of specific items. This ban doesn't apply to recipes added through the first method.
Example: Banning uncrafting of Magic Map Focus:
import crafttweaker.item.IIngredient;
mods.twilighttweaks.uncrafting.banUncraft(<twilightforest:magic_map_focus>);