Home›Java›Mods›Item Banning (Fabric)
Item Banning (Fabric)
ModsJava

Item Banning (Fabric)

by Dhyces · on CurseForge

Fabric port of This mod is primarily a server utility meant for modded servers to prevent players from accessing certain items, however it can be used for…

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.20–1.20.2 · Fabric⬇ Download for 1.19.4 · Fabric⬇ Download for 1.19.3 · Fabric⬇ Download for 1.19–1.19.2 · Fabric⬇ Download for 1.18.2 · Fabric⬇ Download for 1.18–1.18.1 · Fabric⬇ Download for 1.20–1.20.2 · Quilt⬇ Download for 1.19.3 · Quilt⬇ Download for 1.19–1.19.2 · Quilt
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Fabric port of https://www.curseforge.com/minecraft/mc-mods/item-banning

This mod is primarily a server utility meant for modded servers to prevent players from accessing certain items, however it can be used for singleplayer modpacks as well (not recommended unless necessary)

 

Commands:

/itemblacklist ban <item|hand> {optional}<permission_level> {optional}<nbt_comparison> {optional}<reason>

/itemblacklist unban <item|all> {optional}<permission_level>

/itemblacklist list {optional}<permission_level>

 

The default config is generated in the 'config' folder of your Minecraft profile. The config that is used in-game is generated in the world save, ie "saves/New World/serverconfig/itemblacklist.json". The format is as follows:

 1.20+

{

    "ban_list": {

        "level_0": [],

        "level_1": [],

        "level_2": [],

        "level_3": [],

        "level_4": []

    }

}

 

1.19-1.19.4

{

    "level_0_ban_list": [],

    "level_1_ban_list": [],

    "level_2_ban_list": [],

    "level_3_ban_list": [],

    "level_4_ban_list": []

}

 

Within each of the arrays (the '[]' at the end of each '...ban_list'), items can be defined, like so:

 

{

    "level_0_ban_list": [

        "minecraft:enderman_spawn_egg",

        "minecraft:creeper_spawn_egg"

    ],

    "level_1_ban_list": [],

    "level_2_ban_list": [],

    "level_3_ban_list": [],

    "level_4_ban_list": [

        "minecraft:command_block"

    ]

}

 

TODO:

  1. Allow more control over the banned items
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more