Note: MobDropLoot must be set to true in the config in order to use this feature
PhatLoots can be used to cause mobs to drop specific items based on a loot table. In order to do so, simply create a new PhatLoot using the name of the mob. A list of mob names can be found below. The steps to setup zombies to drop a zombie head and egg are as follows:
- /loot make Zombie
- /loot add egg d54 %20 pZombie
- /loot add skull d2 %60 pZombie
And that's it! From now on, any zombie that dies has a chance to drop an egg and/or a head. Of course you can also add money, experience, commands, and more as loot.
Note: MobSpawnLoot must be set to true in the config in order to use this feature
To add mob equipment rather than drops, simply append Spawn (case sensitive) to the end of the mob name. e.g. ZombieSpawn or WitherSkeletonSpawn. Only certain mobs are able to carry equipment. Some mobs don't visibly wear the armor but they may still benefit from it. When creating a mob spawn loot, it must give exactly 5 items in the following order:
- Weapon/Item holding
- Helmet/Item on Head
Any of these items may be AIR if you wish to not actually give them that piece of equipment. As an example, the following commands will cause skeletons to spawn with an enchanted bow and leather chaps:
- /loot make Skeleton
- /loot add bow earrow_fire(3)
- /loot add air
- /loot add air
- /loot add leather_leggings
- /loot add air
You may create more complicated loot tables using collections. Watch this video for a more in depth look at mob armor using PhatLoots.
Note: In order to use this feature, There are four settings in the config; WorldMobDropLoot, WorldMobSpawnLoot, RegionMobDropLoot, and RegionMobSpawnLoot
Mob Loots can vary based on the Region or World that they are in. Both RegionOwn and WorldGuard are supported for creating regions. To limit the PhatLoot to only effect mobs in a specific area, name the PhatLoot <MobName>@<RegionName> such as Zombie@Dungeon and PriestVillager@Graveyard. The Region name must match the name of the region exactly. You may also use a World name instead.
Note: All names are case sensitive.
Most of the Mob names are listed below for your convenience. If you do not see a mob in the list, it is still supported you just have to figure out what it is called. Take note that a Player is considered a mob. You can customize what Players drop and the armor in which they spawn with.
Player Friendly Hostile
Note: MobTypes must be set to true in the config in order to use this feature
There are specific types of mobs in Minecraft. Zombies, Villagers, and Skeletons all have various types. Zombies may be baby zombies or zombie villagers. Villagers may be defined by their profession such as Butcher and Priest. A full list of mob types can be found below. When create mob loots etc. you may replace use one of these mob types rather than the mob name.
- SpottedHorse (White Spots)
- DarkHorse (Dark blotches on back)
- LightHorse (Light shading on back)
- MilkyHorse (White cow-like splotches)
Mobs may also have Baby amended to the beginning of the type. Here are 4 examples:
Sheep and Horses may have a color amended to the beginning of the type.
Custom Named Mobs
Note: NamedMobs must be set to true in the config in order to use this feature
Mobs in Minecraft can have custom names. You may use these custom names rather than a mobs type. For example, if you create a PhatLoot named Bob then any mob named Bob will drop the loot from that PhatLoot. Note that this also works with Player names.
Citizens NPC Players/Mobs
When creating a PhatLoot for a specific NPC (powered by Citizens) you will use the same rules as Custom Named Mobs but prepend it with NPC.
i.e. NPCGorkTheGriefer or NPCCityGuardSpawn
Using the loot tables NPC and NPCSpawn will apply to all NPCs which are not explicitly stated like in one of the examples above.