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 143
    • Issues 143
    • 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
    • Mobs
    • Ai
    • Goals
  • gotospawn

gotospawn · Changes

Page history
Update gotospawn authored Dec 31, 2024 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 10 additions and 11 deletions
+10 -11
  • Mobs/ai/goals/gotospawn.md Mobs/ai/goals/gotospawn.md +10 -11
  • No files found.
Mobs/ai/goals/gotospawn.md
View page @ 2db02646
Goal: goToSpawnLocation ## Description
--------------
*Aliases*: goToSpawn
Makes the mob travel to its original spawn location. Makes the mob travel to its original spawn location.
### Attributes
## Attributes
| Attribute | Aliases | Description | Default | | Attribute | Aliases | Description | Default |
|----------------|----------|------------------------------------|:-------:| |----------------|----------|------------------------------------|:-------:|
| speed | s | Movement speed modifier | 1 | | speed | s | Movement speed modifier | 1 |
| minRange | min | How far the mob needs to be from its spawn location to consider itself "at the location". The mob will walk towards its spawn location until it is this close to it. | 2 | | minRange | min, mr | How far the mob needs to be from its spawn location to consider itself "at the location". The mob will walk towards its spawn location until it is this close to it. | 2 |
| maxRange | max | The maximum range the mob can be from its spawn location. If the mob is further than this amount from its spawn location, it will activate the goal and walk towards the spawn location until it reaches the minimum range. | 16 | | maxRange | max, r | The maximum range the mob can be from its spawn location. If the mob is further than this amount from its spawn location, it will activate the goal and walk towards the spawn location until it reaches the minimum range. | 16 |
| dropTarget | dt | Whether or not the mob should drop its current target when this goal activates. | true | | dropTarget | dt | Whether or not the mob should drop its current target when this goal activates. | true |
### Examples ## Examples
This zombie will try to melee attack its target until it is more than 20 blocks from its spawn location, then will turn around and walk back to where it spawned. This zombie will try to melee attack its target until it is more than 20 blocks from its spawn location, then will turn around and walk back to where it spawned.
```yaml ```yaml
ExampleMob: ExampleMob:
...@@ -25,4 +20,8 @@ ExampleMob: ...@@ -25,4 +20,8 @@ ExampleMob:
- clear - clear
- goToSpawn{speed=1;max=20;min=4} - goToSpawn{speed=1;max=20;min=4}
- meleeattack - meleeattack
``` ```
\ No newline at end of file
## Aliases
- [x] gotospawnlocation
\ No newline at end of file
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
Mythic Add-ons
Compatible Plugins
API Information

Guides
  • Troubleshooting
  • FAQ / Common Issues
  • Examples
Packs

MythicScribe MythicScribe - VSCode Extension

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
    • Mechanics by Tag
  • 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
  • Advanced User Guides and Techniques