Download Item Banning (Fabric) — Minecraft Mods — MetaMods

Item Banning (Fabric)

Active

Downloads

1

Last update

1 year ago
Client
Fabric
Quilt
Forge
Neoforge
Utils

Item Banning (Fabric)

This mod is a Fabric port of a popular utility primarily designed for modded servers. It allows administrators to restrict player access to specific items, which is particularly useful for maintaining balance on multiplayer servers.

Main Features

The mod provides administrators with a flexible system for managing banned items through console commands:

  • /itemblacklist ban <item|hand> - adds an item to the blacklist
  • /itemblacklist unban <item|all> - removes an item from the ban list
  • /itemblacklist list - displays the current list of banned items

Configuration

The mod's settings are automatically generated in the configuration folder of your Minecraft profile. For versions 1.20 and above, the following format is used:

{
    "ban_list": {
        "level_0": [],
        "level_1": [],
        "level_2": [],
        "level_3": [],
        "level_4": []
    }
}

For versions 1.19-1.19.4, the format is slightly different:

{
    "level_0_ban_list": [],
    "level_1_ban_list": [],
    "level_2_ban_list": [],
    "level_3_ban_list": [],
    "level_4_ban_list": []
}

You can add item identifiers to each of the arrays, for example:

{
    "level_0_ban_list": [
        "minecraft:enderman_spawn_egg",
        "minecraft:creeper_spawn_egg"
    ],
    "level_4_ban_list": [
        "minecraft:command_block"
    ]
}

Usage

Although the mod is primarily focused on server use, it can also be applied to single-player modpacks when strict control over available items is required.

Project members
dhyces

dhyces

Created: 30 Apr 2024

ID: 26257