Hunter
How the hunter minion picks its targets, how hard it hits and where the drops and experience go.
The hunter attacks mobs that come into its area and stores what they drop. Put one at the bottom of a mob farm and the loot collects itself. Players, villagers and other minions are always safe from it.
Choosing targets
The targets list in minions/hunter.yml says what the hunter attacks. Each entry is one of:
| Entry | What it matches |
|---|---|
An entity type name, like ZOMBIE | That one kind of mob. |
HOSTILE | Every hostile mob at once. |
ANIMALS | Every animal at once, such as cows, pigs, sheep and chickens. |
mythicmobs:MobId | One MythicMobs mob, by its internal id. |
The shipped list:
settings:
targets:
- ZOMBIE
- SKELETON
- SPIDER
- CAVE_SPIDER
- CREEPER
- ENDERMAN
- WITCH
- DROWNED
- HUSK
- STRAY
- PHANTOM
- BLAZE
- MAGMA_CUBE
- SLIMEA name that is not an entity type on your Minecraft version is skipped, and the console says which one.
MythicMobs mobs
A mob made by MythicMobs is only attacked when its id is listed with mythicmobs:. It is not caught by HOSTILE, ANIMALS or its base entity type, so a hunter set up for vanilla zombies will leave a MythicMobs zombie boss alone. If MythicMobs is not installed, these entries are skipped and a warning is logged. The loot from a MythicMobs drop table reaches storage the same way as vanilla drops. When MythicMobs is installed, the console says MythicMobs was found, hunters can target its mobs and its items can be used. on start. Its items can then be used with mythicmobs: in fuel, repair items, ITEM currencies and any other item section, see Fuel and Breakdowns and repairs.
Never a target
Whatever the list says, the hunter never attacks:
- players
- villagers and wandering traders
- armour stands
- minions, its own or anyone else's
- mobs that are already dead or cannot take damage
Named and tamed mobs
settings:
allow-named: false
allow-tamed: false| Key | Default | What it does |
|---|---|---|
allow-named | false | Whether mobs with a name tag may be hit. Left off, a player can protect any mob with a name tag. |
allow-tamed | false | Whether tamed mobs (dogs, cats, horses and so on) and leashed mobs may be hit. |
MythicMobs mobs usually carry a display name, so the name tag check is not applied to them. The tamed and leashed check does apply to them.
Damage and how many mobs per action
settings:
order: NEAREST
damage: 6.0
max-targets: 1| Key | Default | What it does |
|---|---|---|
damage | 6.0 | The damage of one hit, in half hearts, so 6.0 is three hearts. The lowest allowed value is 0.5. The mob's armour still counts. |
max-targets | 1 | How many mobs one action may hit. |
order | NEAREST | NEAREST hits the closest mobs first, RANDOM picks at random. |
The hunter hits once per action, at the speed set by the delay of its level. A zombie with 20 health takes four hits at the default damage. Raise damage for one hit kills, or raise max-targets to hit a whole group at once.
The area is a box around the minion: its range in every direction sideways and height blocks up and down (2 in the shipped file).
Combat upgrades
Three upgrade kinds only work on hunters. They are shipped in upgrades.yml with types set to hunter, and like every upgrade other than a level upgrade they can only be applied once the hunter is at its highest level while upgrades.require-max-level is on in config.yml.
| Upgrade id | Kind | Shipped amount | Most per hunter | What it does |
|---|---|---|---|---|
fire-aspect | FIRE_ASPECT | 1 | 2 | Sets every mob it hits on fire for 4 seconds per point, so two upgrades give 8 seconds. A mob already burning longer keeps its longer fire. |
sharpness | DAMAGE | 2 | 3 | Adds its amount to damage on every hit, in half hearts. Three shipped upgrades add three hearts. |
looting | LOOTING | 1 | 3 | Adds looting levels to every kill, up to upgrades.max-looting in config.yml (3 shipped). |
Looting works like the vanilla enchantment. For each drop, a random number from 0 up to the looting level is added to the stack. Items the mob was wearing or holding, and items that do not stack, such as tools and armour, get no extra. Extra items go through the filter and into storage the same way as normal drops.
See Levels and upgrades for applying upgrades, their fuel cost and the other kinds.
Where the drops go
When a mob dies within three seconds of a hit from the hunter, its drops are handled by the hunter:
- The hunter's filter is applied. Rejected drops are deleted or left where the mob died, depending on
output.filter-rejectinconfig.yml. See Filters. - If the hunter is paired with a chunk collector and stands inside its area, the drops go there first.
- Anything left goes into the hunter's own storage.
- Drops that still do not fit are left on the ground where the mob died, or deleted when
output.overflowisVOID.
While its storage is full, the hunter stops attacking, unless output.overflow is VOID or its paired collector has free space.
Experience
Mobs killed by a minion give no experience in vanilla, because no player made the kill. The hunter can store experience for you instead.
# config.yml
output:
collect-experience: false# minions/hunter.yml
settings:
experience-per-kill: 5| Key | Default | What it does |
|---|---|---|
output.collect-experience | false | Switches experience storage on for every minion. It is off by default. |
experience-per-kill | 5 | The experience stored for each kill when the game itself gives none. |
With collect-experience on, the experience from each kill is added to the minion, and nothing drops on the ground. Players collect it with the experience button in the minion menu.
Related pages
- Minion type files to make a hunter type for one mob farm
- Filters to keep only the drops worth selling
- Levels and upgrades for range, speed and storage