Skip to main content

Mob Options

Custom mobs in MMO Mobs support a comprehensive options configuration block. This allows you to fine-tune the attributes, behaviors, immunities, and visual traits of both universal and type-specific mobs.

{
name: "<red>Elite Guardian",
type: "ZOMBIE",
health: 150,
options: {
AlwaysShowName: true,
MovementSpeed: 0.28,
Scale: 1.5,
PreventSunburn: true,
Collidable: false
}
}

Universal Options

These options can be applied to all custom mobs (mostly affecting LivingEntity).

OptionTypeDefaultDescription
AlwaysShowNameBooleanfalseIf true, the nameplate of the custom mob is permanently visible.
AttackSpeedDoubleVanillaSets the base attack speed of the mob.
VisibleByDefaultBooleantrueSet to false to spawn the mob invisible.
InvisibleBooleanfalseSets the permanent invisibility effect on the mob.
CollidableBooleantrueSets whether the mob has entity collisions enabled.
DigOutOfGroundBooleanfalseTeleports the mob 2 blocks up if it starts taking suffocation damage.
DespawnStringtrueDespawn policies: true / NORMAL, NEVER / PERSISTENT (prevents range-based despawning).
FollowRangeInteger32The range in blocks within which the mob targets/tracks players.
GlowingBooleanfalseSets whether the mob glows permanently.
HealOnReloadBooleanfalseAllows the mob to heal back to full when the chunk loads.
HiddenBooleanfalseIf true, hides the mob from commands or listing menus.
InvincibleBooleanfalseMakes the mob completely invulnerable to all damage.
InteractableBooleantrueIf false, cancels player interaction with this mob.
LockPitchBooleanfalseLock head pitch movement.
KnockbackResistanceDouble0.0Resistance percentage from 0.0 (0%) to 1.0 (100%).
MaxCombatDistanceInteger256Prevents players further than this distance from damaging the mob.
MovementSpeedDouble0.2The speed attribute of the mob. Values above 1.0 are extremely fast.
NoAIBooleanfalseSets whether the mob has AI. If false, the mob remains stationary.
NoDamageTicksInteger10The ticks of invulnerability invoker gets after taking damage.
NoGravityBooleanfalseDisables gravity for the mob.
PassthroughDamageBooleanfalseRedirects damage to the parent sumonner if applicable.
PreventItemPickupBooleantrueStops the mob from picking up ground items.
PreventLeashingBooleanfalsePrevents a leash from being attached to the mob.
PreventMobKillDropsBooleanfalsePrevents victim drops if they are killed by this mob.
PreventOtherDropsBooleanfalsePrevents the mob from dropping its own vanilla loot tables upon death.
PreventRandomEquipmentBooleanfalsePrevents natural vanilla equipment spawning.
PreventRenamingBooleantruePrevents players from renaming the mob using name tags.
PreventSunburnBooleanfalsePrevents zombies and skeletons from burning in the daylight.
PreventTransformationBooleanfalsePrevents the mob from converting to other variants (e.g., zombie to drowned).
PreventVanillaDamageBooleanfalseCancels regular vanilla attack damage from the mob (skills will still cast).
ScaleDouble-1.0Sets the visual scale (size) of the mob (1.21+ attribute support).
SilentBooleanfalseMutes all vanilla sounds produced by the mob.
RandomizePropertiesBooleantrueEnables/disables vanilla random spawn variations.

Specific / Group-Specific Options

These options apply only to specific Minecraft entity classes and will be ignored on others.

OptionEntity Group / Mob TypeTypeDescription
AgeBreedables / AgeablesIntegerSets the numerical age. Use -1 for a baby, 1 for an adult.
AgeLockBreedables / AgeablesBooleanLocks the age to prevent the baby from naturally growing up.
AdultBreedables / AgeablesBooleanSets the adult status directly.
BabyBreedables / AgeablesBooleanSets the baby status directly.
ColorSheep / Wolves / LlamasStringSets wool color (Sheep) or collar color (Wolves, Cats). Supports dye colors (e.g., RED, LIME).
SizeSlimes & Magma CubesIntegerSets the size scale of the slime/magma cube.
PreventSlimeSplitSlimes & Magma CubesBooleanPrevents splitting into smaller slimes/magma cubes upon death.
ExplosionRadiusCreepersIntegerSets the explosion power radius.
FuseTicksCreepersIntegerTicks before exploding.
SuperChargedCreepersBooleanSpawns the creeper powered (charged with lightning overlay).
PreventSuicideCreepersBooleanPrevents the creeper from dying during its explosion.
CanMoveArmor StandBooleanSets if the armor stand can move.
CanTickArmor StandBooleanSets if the armor stand ticks.
HasArmsArmor StandBooleanDisplays arms.
HasBasePlateArmor StandBooleanToggles the bottom stone base plate.
SmallArmor StandBooleanSpawns the small variant of the armor stand.
MarkerArmor StandBooleanMakes the armor stand a marker (completely non-interactable).
ItemHead, ItemBody, ItemLegs, ItemFeet, ItemHand, ItemOffhandArmor StandStringEquip custom keys from YueMiLibs directly onto the stand.
AngerBeesIntegerTicks of anger duration.
HasNectarBeesBooleanIf the bee is carrying pollen.
HasStungBeesBooleanIf the bee has stung an entity.
SaddledSaddleable MobsBooleanSpawns the entity saddled (Camel, Pig, Strider, Horses).
CatTypeCatsStringCat variant (e.g. BLACK, SIAMESE, CALICO).
FoxTypeFoxesStringFox variant (RED or SNOW).
VariantFrogs / Wolves / ChickensStringFrog/Wolf biome variant (e.g., WARM, COLD for Frogs; black, chestnut for Wolves).
ImmuneToZombificationHoglins / PiglinsBooleanPrevents conversion to Zoglins/Zombie Piglins.
HuntableHoglinsBooleanAllows/prevents Hoglins from being hunted by Piglins.
AbleToHuntPiglinsBooleanAllows/prevents Piglins from hunting.
ProfessionVillagers / Zombie VillagersStringProfession type (e.g. MASON, FARMER, CLERIC).
TypeVillagersStringVillager biome variant (e.g. DESERT, PLAINS, SNOW).
LevelVillagersIntegerProfession level (1 to 5).