🛡️ CraftRestrict
CraftRestrict is an ultra-lightweight recipe management mod for Hytale that allows you to precisely control who can craft what. Whether you want to create a crafting system, RPG level progression, or simply restrict overly powerful items, CraftRestrict is the ideal tool.
⚙️ Operating Modes
This mod offers two exclusive configuration modes to suit your needs (configurable via the config file):
1️⃣ Mode: ALLOW (Whitelist)
- By default, everything is locked. No player can craft anything.
- With the
craftrestrict.recipe.item_id permission, the player unlocks the ability to craft the item.
2️⃣ Mode: DENY (Blacklist)
- By default, everything is allowed. All players have access to all crafts.
- With the
craftrestrict.recipe.item_id permission, the player losts the ability to craft the item.
✨ Features
- Low-Level Interception System: Intercepts crafting packets directly at the source to prevent any attempts to bypass the system.
- Simple & Effective: No complex commands, everything goes through the standard permissions system.
🚀 Installation
- Drag the
.jar file into your 'hytale/Server/mods/' folder.
- Start your server to generate the configuration file.
- Choose your mode (
ALLOWor DENY) in the configuration.
- Restart your server, or execute
/craftrestrict reload, and start distributing permissions !
📝 Examples of Permissions
- Arrow crafting:
craftrestrict.recipe.weapon_arrow_crude
- Campfire crafting:
craftrestrict.recipe.bench_campfire
- Allow all items crafting:
craftrestrict.recipe.*, craftrestrict.* & *
- Workbench use:
craftrestrict.recipe.workbench
- Builder's workbench use:
craftrestrict.recipe.builders
- Allow all benches use:
craftrestrict.bench.*, craftrestrict.* & *
🛠️ Commands
Admin Commands
- /craftrestrict - Shows mod informations
- /craftrestrict help - Shows mod commands
- /craftrestrict reloadconfig/reload/rl - Reloads mod configuration
📜 Configuration
- RestrictionMode -
"ALLOW" or "DENY" - see Operating Modes for more informations
- Debug -
true or false - Enables or disables crafting debugging in the console
- SendRecipeDenyMessage -
true or false - Sends the DenyMessage message to the player when crafting is prohibited
- SendRecipeDenySound -
true or false - Sends a sound to the player when crafting is prohibited
- RecipeDenyMessage - a string. Example:
"You can't craft this item." - The message displayed to the player when crafting is prohibited
- RecipeDenyMessage - a string. Example:
"SFX_Antelope_Alerted" - The sound send to the player when crafting is prohibited
- SendBenchDenyMessage -
true or false - Sends the DenyMessage message to the player when bench use is prohibited
- SendBenchDenySound -
true or false - Sends a sound to the player when bench use is prohibited
- BenchDenyMessage - a string. Example:
"You can't craft this item." - The message displayed to the player when bench use is prohibited
- BenchDenyMessage - a string. Example:
"SFX_Antelope_Alerted" - The sound send to the player when bench use is prohibited
🔄 Future Updates
API implementation.
If you encounter any bugs or have ideas for the mod, please let me know !