A Hytale plugin for a peaceful experience.
This plugin makes monsters passive toward players by default. When a player attacks a monster, the player is considered aggressive for a configurable duration, causing nearby monsters to target and attack them. After the player's last attack, a timer counts down a configured duration, and once it expires, monsters return to being passive toward that player.
Since 2.4.0, the player is also healed (optional).
The configuration is saved in file mods/Hyllo_SoftPeaceful/config.json:
{
"Enabled": true,
"PlayerHeal": true,
"AggressionDuration": 30.0
}| Configuration key | Description | Default value |
|---|---|---|
| Enabled | Whether the plugin is enabled. Set to false to disable it. | true |
| PlayerHeal | Whether debuffs are removed and health restored when becoming passive. | true |
| AggressionDuration | How long a player remains aggressive after their last attack (in seconds). | 30.0 |
This plugin can be configured with the /softpeaceful command:
| Command | Description |
|---|---|
/softpeaceful show | Show all configuration values |
/softpeaceful menu | Open the in-game configuration menu |
/softpeaceful enabled true/false | Enable or disable the plugin |
/softpeaceful playerheal true/false | Enable or disable the player healing |
/softpeaceful aggressionduration 30 | Set aggression duration to 30 seconds |
/softpeaceful menu opens an in-game menu with the same settings. Every change
is applied and saved immediately, so there is nothing to confirm. The menu also
has a "Reset to default" button, and closes with the "Close" button or the
Escape key.
The aggression duration field in the menu is limited to 0 to 3600 seconds. The
/softpeaceful aggressionduration command is not limited.
If you like this plugin, you can donate to help its development.
This is free and unencumbered software released into the public domain.
For the full license terms, see UNLICENSE.