Mob Hopper

What is a Mob Hopper?

Mob Hoppers collect every specified mob that spawns in the chunk the hopper is placed in. Unlike Item Hoppers, the Mob Hopper does not have a per-hopper-filter. Mobs collected by Mob Hoppers are specified in the config.yml (Configuration).

A Mob Hopper may e.g. collect pigs, cows, and skeletons.

Acquiring the Mob Hopper

To acquire a Mob Hopper, type:

/hopper give <player> mob <amount> [single-type]

This will give the specified player x amount of mob hoppers.

Using the Mob Hopper

To use a Mob Hopper, simply place a Mob Hopper item in the chunk you want it to collect mobs from. The Mob Hopper is now active, and a hologram should appear above the hopper displaying the hopper type, owner name, and the total.

It should look something like this:

Mob hopper placed in the world

Mob Storage

The Mob Hopper's storage is similar to the Item Storage. The Mob storage displays every collectable mob, and the amount and worth you have of each.

In the Mob Storage, you can sell and withdraw mobs:

  • Sell: Left click (this will sell every mob of that type)

  • Withdraw: Right click (this will sell up to 64 of the mob type each click)

Since Minecraft mobs, does not have certain items for each mob type, the item representing each mob is configured in the config.yml (see Configuration).

(This image is using HeadDatabase for mob representation)

Sell all

If you want to sell everything in the Mob Hopper, simply sneak + left click on the Hopper block.

Auto Sell

You can enable auto-sell on every Mob Hopper. This will automatically sell the mobs instead of collecting them. To toggle auto-sell, click on the auto-sell item at the bottom of the storage menu.

For more information: see Auto Sell.

Void Filter

The MobHopper also has a void filter, which can be configured the same way as the item filter. To open the void filter, simply click the void filter item in the storage menu.

When withdrawing a mob, every item that's also in the void filter will automatically disposed instead of giving it to the player. This can be useful for filtering out waste loot from mobs.

Single type Mob Hopper

You can also give players Mob Hoppers which only can collect a single mob type. To give such a Mob Hopper, specify the [single-type] argument in the give command with the entity type you want the hopper to only collect.

Configuring the Mob Hopper

Unlike the Item Hopper, players can't customize which mobs the hopper should collect themselves. The collected mobs are configured in the mobs.yml file (see Configuration). In this file you need to specify both the mob prices used for selling, and the item that should represent the mob in the GUI.

#--------------------- Mobs ---------------------#

#If you want to use HeadDatabase IDs instead of vanilla
#materials, enable HeadDB in the config.yml and place
#'hdb:' in front of the id! E.g. hdb:10000
mobs:
  ZOMBIE:
    material: ZOMBIE_SPAWN_EGG
    price: 100
  SKELETON:
    material: SKELETON_SPAWN_EGG
    price: 100
  CREEPER:
    material: CREEPER_SPAWN_EGG
    price: 150
  COW:
    material: COW_SPAWN_EGG
    price: 50
  PIG:
    material: PIG_SPAWN_EGG
    price: 50
  CHICKEN:
    material: CHICKEN_SPAWN_EGG
    price: 50
  SHEEP:
    material: SHEEP_SPAWN_EGG
    price: 50

You can also configure custom loot tables and xp for you mobs. This is done in the loot.yml file (see Configuration). When enabled, all mobs in the custom loot table will have their vanilla drops replaced by the custom one. Configuring custom loot is required for legacy versions (< 1.13), since automatic loot generation is not supported for these versions.

#------------------- Custom loot tables -------------------#

custom_loot_tables:
  #If you want to use custom loot tables, set this to true
  enable: false
  #List all mobs which should use custom loot tables. If a
  #mob is not listed, it will default to it's vanilla table
  mobs:
    #EntityType of mob
    SKELETON:
      #Material
      BONE:
        #Probability of receiving this item
        probability: 1
        #Minimum amount
        min: 0
        #Maximum amount
        max: 2
      ARROW:
        probability: 1
        min: 0
        max: 2
    ZOMBIE:
      ROTTEN_FLESH:
        probability: 1
        min: 0
        max: 2
      POTATO:
        probability: 0.025
        min: 1
        max: 1
      IRON_INGOT:
        probability: 0.025
        min: 1
        max: 1
      CARROT:
        probability: 0.025
        min: 1
        max: 1
    COW:
      LEATHER:
        probability: 1
        min: 0
        max: 2
      BEEF:
        probability: 1
        min: 1
        max: 3
    PIG:
      PORKCHOP:
        probability: 1
        min: 1
        max: 3

#Enabled if custom_loot_tables is enabled
custom_xp:
  mobs:
    SKELETON: 10

Last updated

Was this helpful?