FTB Library Mod — Configuration
Commands
FTB Library provides several utility commands designed to simplify server management and testing. All commands are prefixed with /ftblibrary.
| Command | Description | Permission Level |
|---|---|---|
/ftblibrary gamemode |
Quickly cycles the player between Creative and Survival modes. | OP |
/ftblibrary rain |
Toggles weather between clear and raining. | OP |
/ftblibrary day |
Sets the world time to 1000 (Day). | OP |
/ftblibrary night |
Sets the world time to 13000 (Night). | OP |
/ftblibrary clientconfig |
Opens the client-side settings GUI for FTB mods. | User |
/ftblibrary nbtedit |
Opens the NBT Editor GUI for the specified target. | OP |
Mechanics & Configuration
SNBT and JSON5
Historically, FTB mods used SNBT (Stringified NBT) for configuration. SNBT is a human-readable version of Minecraft's binary format. However, in version 26.1.2 for 1.20.1, FTB Library has transitioned to JSON5.
- JSON5 Benefits: Supports comments, trailing commas, and unquoted keys, making it much easier for modpack creators to edit files manually.
- Location: Configuration files are typically found in the
config/folder of the Minecraft instance, often with the.snbtor.json5extension.
UI Framework
FTB Library provides a component-based GUI system. This allows other FTB mods to have a consistent look and feel. Key elements include: * Scrollable Lists: Used in quest logs and chunk claiming screens. * Tooltips: Advanced tooltips that can render icons and formatted text. * Context Menus: Right-click menus used throughout the FTB suite for settings and actions.