Limit my inventory!
This modification allows setting limits on the maximum stack size of items in the player's inventory.
Configuration and Usage
To configure restrictions, you need to add the appropriate code to the configuration file. Example configuration script:
// .minecraft/kubejs/server_scripts/script.js
LimitMyInventoryEvents.setInventoryMaxStackSize(event => {
event.setInventoryMaxStackSize("minecraft:stone", 1);
})
In this example, a restriction is set on stone - now it can only be carried one item per stack.
Installation Features
The modification requires installation exclusively on the server side. Client versions of the game can connect to the server without the need to install this mod.