Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Wiki
    • Skills
    • Mechanics
  • SetPathfindingMalus

Last edited by Lxlp 5 months ago
Page history
This is an old version of this page. You can view the most recent version or browse the history.

SetPathfindingMalus

Description

Sets the pathfinding malus of a mob, influencing how a particular entity evaluates different types of blocks when calculating its path

Attributes

Attribute Aliases Description Default
malus type, malustype The type of block or terrain the entity can encounter OPEN
value amount A weight that represents how "undesirable" the associated block or terrain is for pathfinding. Can be negative 0.0

Malus Attribute

The valid malus types are

BLOCKED OPEN WALKABLE WALKABLE_DOOR
TRAPDOOR POWDER_SNOW DANGER_POWDER_SNOW FENCE
LAVA WATER WATER_BORDER RAIL
UNPASSABLE_RAIL DANGER_FIRE DAMAGE_FIRE DANGER_OTHER
DAMAGE_OTHER DOOR_OPEN DOOR_WOOD_CLOSED DOOR_IRON_CLOSED
BREACH LEAVES STICKY_HONEY COCOA
DAMAGE_CAUTIOUS

Value Attribute

When the entity's AI calculates a path, it checks the block types along the potential path. By setting a malus using this function, you can make the entity more or less likely to walk over, around, or avoid certain blocks. For example:

  • A positive value (e.g., 1.0) means the entity will consider this block type harder to walk over or less favorable, causing the entity to try to avoid it.
  • A negative or zero value (e.g., -1.0 or 0.0) means the entity will consider this block type neutral or easier to walk over, making it more likely to choose paths with these blocks

Examples

  Skills:
  - setpathfindingmalus{malus=BLOCKED;value=2} @self

Aliases

  • setmalus
  • malus
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
Mythic Add-ons
Compatible Plugins
API Information
Guides
  • Troubleshooting
  • FAQ / Common Issues
  • Examples
Packs
Mobs
  • Mob Options
    • Display Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Vanilla Overrides
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drops
  • DropTables
  • FancyDrops
Spawning
  • Spawners
  • Random Spawns
Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats
Other
  • Particles Types
  • Audience
  • Equipment Slots
  • Pins
Technical
  • Math
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • SkillTree
  • Intratick Scheduling
  • Dynamic Metaskills