
Illegal Easy Moh
This is a mod for servers that are looking to restrict how users interact with different items. The mod allows marking items a
so they are not allowed to be carried, used, or have restrictions on usage.
With this mod, admins can move the rules that are often written inside the discord server's channels inside the game domain
and be a part of the item's tooltip. Not only can you display if an item falls into a specific "Illegality" category and add custom messages to each item, but you can also prevent users from equipping or carrying them.
Features
- BANNED
- ILLEGAL
- RESTRICTED
How it works
Configuring the mod
Basic configuration
You will find a configuration file inside "world/serverconfig" called illegaleasymoh-config.json which contains the following properties:
You will also find a file called illegaleasymoh-common.toml inside /config folder with a single configuration property:
POLLING_INTERVAL: This configuration determines the time (in MS) on which the client will query the server to determine if there was a change on the registry for a given item if required to query. For example,
if you keep your mouse over a given item the mod will query the server every POLLING_INTERVAL milliseonds to check if any change was made. Default value is 1000ms, min value is 100ms and max value is 2000ms.
There's no need to change this option in most cases but if for some reason you have a use case that requires items that move from category constantly you may want to lower this value.
Blacklisted items
Run the server once and you'll find a configuration file inside "world/serverconfig" called iem-blacklist.json. The file must contain an array of objects with the following structure
{
"namespace": "minecraft",
"path": "diamond_axe",
"category": {
"category": "2",
"message": "You can only carry 1 diamond axe"
}
}
- Namespace and path represent the item identifier inside the game. The namespace is usually related to the mod the item belongs and tto he path the name of the item itself. For example: "minecraft:diamond_axe" corresponds to the in-game identifier of the base game diamond axe. I this case the namespace would be "minecraft" and the path would be "diamond_axe"
If you wish to blacklist an entire namespace, you can use * as the path, for example:
...
"namespace": "securitycraft",
"path": "*",
...
That configuration will blacklist the entire securitycraft namespace
- The category object contains 2 properties, the category itself which is represented by a number where:
The message property is the text that would be displayed on the lower part of the item's tooltip and it's optional. If you don't wish to present any type of message just use "" as the message.
There are 3 commands for operators, all prefixed by /iem
- /iem add <item> <category as a number> <message as a string surrounded by "">
- /iem remove <item>
- /iem edit <item> <category as a number> <message as a string surrounded by "">
These commands will make the changes persistent in the JSON configuration file and will be saved If the server restarts
Requirements
This mod requires Curios in order to work, and needs to be installed both on the client and the server side.
Roadmap for future versions
Some screenshots
How banned items look

How illegal items look

Adding items to the registry through the command line
![]()
No files available for download.