promotional bannermobile promotional banner
premium banner
Ban items from being obtainable

Description

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