Mob Category
The MobCategory is a utility binding of a vanilla enumeration that represents the different mob categories in Minecraft.
Overview
- access via:
MobCategory - values:
MobCategory.AMBIENTMobCategory.AXOLOTLSMobCategory.CREATUREMobCategory.MISCMobCategory.MONSTERMobCategory.UNDERGROUND_WATER_CREATUREMobCategory.WATER_AMBIENTMobCategory.WATER_CREATURE
Examples
This binding is intended to be used inside Soul Binder recipes. Pass it to the mob_category parameter to define the mob category soul required for the recipe. Since it's a vanilla enumeration, it's not exclusive to the Soul Binder.
js
ServerEvents.recipes(event => {
event.recipes.enderio
.soul_binding(Item.of("stone", 4), "stick", 5000)
.mobCategory(MobCategory.AXOLOTLS)
})