HomeJavaModsMob Mounting Control
Mob Mounting Control

Mob Mounting Control

A server-side Fabric mod for Minecraft 1.20.1 that controls which entities can mount vehicles (boats, minecarts, etc.) using configurable blacklists and whitelists.

Features

Installation

  1. Download the latest release from the releases page
  2. Place the .jar file in your server's mods folder
  3. Start your server - the mod will create a default configuration file
  4. Edit the configuration file if needed and restart the server

Configuration

The mod creates a configuration file at config/mobmountingcontrol.json with the following options:

{
  "enableMod": true,
  "defaultAllowMounting": true,
  "playersAlwaysAllowed": true,
  "entityBlacklist": [
    "minecraft:zombie",
    "minecraft:skeleton",
    "minecraft:creeper",
    "minecraft:spider"
  ],
  "entityWhitelist": [
    "minecraft:villager",
    "minecraft:horse",
    "minecraft:donkey",
    "minecraft:mule"
  ],
  "defaultAllowVehicles": true,
  "vehicleBlacklist": [
    "minecraft:tnt_minecart"
  ],
  "vehicleWhitelist": [
    "minecraft:boat",
    "minecraft:chest_boat",
    "minecraft:minecart",
    "minecraft:chest_minecart",
    "minecraft:furnace_minecart",
    "minecraft:hopper_minecart"
  ],
  "logMountingAttempts": false
}

Configuration Options

How the Dual-Layer System Works

  1. Vehicle Filter: First, the mod checks if the vehicle type should be controlled based on defaultAllowVehicles and the vehicle lists
  2. Entity Permission: If the vehicle is controlled, then check if the entity has permission to mount based on defaultAllowMounting and the entity lists
  3. Player Override: Players bypass entity permissions if playersAlwaysAllowed is true

Usage Examples

Prevent hostile mobs from mounting boats only

{
  "defaultAllowMounting": true,
  "entityBlacklist": [
    "minecraft:zombie",
    "minecraft:skeleton", 
    "minecraft:creeper",
    "minecraft:spider"
  ],
  "defaultAllowVehicles": false,
  "vehicleWhitelist": [
    "minecraft:boat",
    "minecraft:chest_boat"
  ]
}

Only allow specific mobs on any vehicle except TNT minecarts

{
  "defaultAllowMounting": false,
  "entityWhitelist": [
    "minecraft:villager",
    "minecraft:horse",
    "minecraft:cat"
  ],
  "defaultAllowVehicles": true,
  "vehicleBlacklist": [
    "minecraft:tnt_minecart"
  ]
}

Control all vehicles but only block zombies from everything

{
  "defaultAllowMounting": true,
  "entityBlacklist": [
    "minecraft:zombie"
  ],
  "defaultAllowVehicles": true,
  "vehicleBlacklist": []
}

Building from Source

  1. Clone this repository
  2. Run ./gradlew build
  3. The built mod will be in build/libs/

Requirements

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you encounter any issues or have feature requests, please open an issue on the GitHub repository.

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