SurvivalCore-Extended
A standalone add-on for Hytale that extends SurvivalCore functionality with an in-game configuration UI system.
⨠Features
Core Mechanics
- Thirst Mechanics: Adds thirst restoration values to items
- Parallel Configuration: Uses
SurvivalExtendedConfig.jsonto manage stats without modifying SurvivalCore's files - Soft Dependency: Automatically disables if SurvivalCore is not initialized
š® Configuration UI System (v1.0.5+)
- Interactive UI Editor: Edit hunger and thirst values directly in-game
- Configuration Viewer: Display all current configuration values
- Three Commands:
/andiemgcheff- Opens the configuration editor/cheff- Alias for/andiemgcheff/cheffinfo- Displays current configuration values
UI Features
- Clean, modern interface with validation
- Default values (0.0) for empty fields to prevent errors
- Automatic range validation (0-1000) with adjustment
- Real-time configuration updates
- No server restart required after changes
š Commands
| Command | Description | Permission |
|---|---|---|
/andiemgcheff |
Opens the configuration editor UI | Operator |
/cheff |
Short alias for /andiemgcheff |
Operator |
/cheffinfo |
Displays current configuration values | Operator |
šØ UI Screenshots
Configuration Editor
Edit hunger and thirst values for food items with a user-friendly interface:
- Item Name input field
- Hunger Value input field
- Thirst Value input field
- Save and Cancel buttons
- Listed available items for reference
Configuration Viewer
View all configured items with their current values in a formatted table.
š Configuration Schema
The configuration uses a JSON Map where keys are Item Registry Names and values are an array of two floats.
Structure
{
"ITEM_REGISTRY_NAME": [HUNGER_VALUE, THIRST_VALUE]
}
Parameters
- Key (
String): The exact registry name of the item (e.g.,Andiechef_Food_Rollo,Andiechef_Food_Sake) - Value (
Array<Float>):- Index 0: Hunger Restoration (Float, 0-1000)
- Index 1: Thirst Restoration (Float, 0-1000)
Example
{
"Andiechef_Food_Rollo": [20.0, 5.0],
"Andiechef_Food_Item_Soya": [15.0, 3.0],
"Andiechef_Food_Sake": [5.0, 10.0]
}
š Installation
- Download
SurvivalCore-Extended-1.0.5.jarfrom the releases - Place the jar in your server's
pluginsfolder - Ensure
SurvivalCore(EasyHunger) is also installed - Start the server
- The config file will be generated at
mods/Andiemg Cheff Linked/SurvivalExtendedConfig.json - Use
/cheffcommand in-game to edit configurations, or edit the JSON file directly
š ļø Technical Details
Architecture
- ECS Pattern: Follows Hytale's Entity Component System architecture
- Event-Driven UI: Uses
InteractiveCustomUIPagefor event handling - Asset Pack System: Resources loaded automatically via
IncludesAssetPackmanifest flag
UI Implementation
- Native Hytale UI language (
.uifiles) UICommandBuilderfor UI constructionUIEventBuilderfor event bindingBuilderCodecfor event data serialization
Code Structure
src/main/java/com/jume/andiemgchefflinked/
āāā commands/
ā āāā AndiemgCheffCommand.java # Main config editor command
ā āāā CheffCommand.java # Alias command
ā āāā CheffInfoCommand.java # Config viewer command
āāā ui/
ā āāā ConfigEditorPage.java # Interactive editor UI
ā āāā ConfigInfoPage.java # Read-only info UI
āāā config/
ā āāā ConfigManager.java # Configuration management
āāā events/
ā āāā ConsumptionListener.java # Item consumption handler
āāā SurvivalCoreExtended.java # Main plugin class
src/main/resources/
āāā Common/UI/Custom/Pages/
ā āāā AndiemgCheffConfig.ui # Editor UI definition
ā āāā AndiemgCheffInfo.ui # Info UI definition
āāā manifest.json # Plugin manifest
āāā mod.json # Mod metadata
āāā SurvivalExtendedConfig.json # Default config
š¦ Building from Source
gradle clean build
The jar will be generated in build/libs/SurvivalCore-Extended-1.0.5.jar
š Version History
v1.0.5 (Latest)
- ā Added interactive configuration UI system
- ā
Three new commands:
/andiemgcheff,/cheff,/cheffinfo - ā ConfigEditorPage for in-game editing
- ā ConfigInfoPage for viewing current config
- ā Enhanced validation with default values
- ā Prevents UI hang with proper event handling
- ā Clean error messages without color codes
- ā Range validation (0-1000) with auto-adjustment
v1.0.4
- Improved event system integration
- Enhanced configuration management
v1.0.0
- Initial release
- Basic hunger and thirst mechanics
- Configuration file system
š¤ Credits
- Authors: jume, andiemg, Antigravity
- For: Hytale Server (ECS Architecture)
- Requires: SurvivalCore (EasyHunger mod)
š License
This project is for use with Hytale servers.
š Troubleshooting
UI doesn't open
- Ensure you have operator permissions
- Check server logs for errors
- Verify the plugin loaded successfully
Changes not saving
- Check file permissions in
mods/Andiemg Cheff Linked/ - Look for error messages in chat
- Verify the item name is correct
UI freezes
- Update to v1.0.5 or later
- The bug was fixed with proper event handling
š Support
For issues or questions, check the server logs or contact the development team.


