Gamestage Books
This CraftTweaker addon allows creating special books that unlock game stages when used. You can fully customize the appearance of these books, including their color and the item displayed in the header when unlocking the stage.
How to use
All books must be described in a separate script. The mandatory requirement is that the first line must contain #loader gamestagebooks. This ensures that the script executes during preInit, allowing items and their models to be properly registered.
Script example
#loader gamestagebooks
import mods.gamestagebooks.Book;
Book.addBook("emerald_stage", "Emerald Knowledge", "Emerald Handbook", "minecraft:emerald", 0x0cf200);
Function parameters:
- Stage name → "emerald_stage"
- Human-readable stage name (displayed when unlocking) → "Emerald Knowledge"
- Book name → "Emerald Handbook"
- Item to display on unlock → "minecraft:emerald"
- Item with metadata → "minecraft:wool@4"
- Book color → 0x0cf200 (hexadecimal value with 0x prefix)