Nutrient Plugin - Description, Commands, and Setup
Description:
The Nutrient Plugin encourages players to eat a variety of foods by applying random penalties when they repeatedly consume the same food. If a player eats the same food 5-10 times, a random penalty (e.g., Slowness, Poison) is triggered, and the player is blocked from eating that food again for a random period (10 to 30 minutes).
Features:
- Penalty System: After eating the same food 5-10 times, a random penalty is applied.
- Random Penalty Time: The penalty time (cooldown) is random, between 10 and 30 minutes.
- Configurable: All settings can be adjusted via
config.yml.
- Toggle Penalties: Specific penalties can be enabled or disabled.
Commands:
-
/nutrient penalty toggle [penalty_type]
- Description: Enable or disable a specific penalty.
- Usage:
/nutrient penalty toggle slowness (Enables or disables the Slowness penalty)
- Penalty Types:
slowness, weakness, poison, confusion, healthdrain, hungeroverflow.
-
/nutrient reload
- Description: Reload the plugin configuration from
config.yml.
- Usage:
/nutrient reload
Setup:
-
Place Plugin:
- After building the plugin, place the
.jar file in the plugins/ folder of your Minecraft server.
-
Start the Server:
- Upon first launch, the plugin will generate a
config.yml file in the plugins/Nutrient/ folder if it doesn't already exist.
-
Customize Settings:
- Modify
config.yml to adjust penalty durations, enable/disable specific penalties, or customize penalty times.
-
Restart the Server:
- After making changes to the
config.yml, restart the server to apply the new settings.