... | @@ -33,15 +33,8 @@ This zombie would attack players, and walk around randomly when not targeting an |
... | @@ -33,15 +33,8 @@ This zombie would attack players, and walk around randomly when not targeting an |
|
| closedoors | restrictopendoor | Not sure what this one does |
|
|
| closedoors | restrictopendoor | Not sure what this one does |
|
|
| randomlookaround | lookaround | The mob will randomly look around |
|
|
| randomlookaround | lookaround | The mob will randomly look around |
|
|
| [gotospawnlocation](/Mobs/ai/goals/gotospawn) | gotospawn | Mob will pathfind to the its spawn location |
|
|
| [gotospawnlocation](/Mobs/ai/goals/gotospawn) | gotospawn | Mob will pathfind to the its spawn location |
|
|
| fleeConditional(/Mobs/ai/goals/fleeconditional) **[Premium-only]** | fleeIf | Causes the mob to flee based on provided conditions. Safe speed is required for distanes greater than 5. |
|
|
| [fleeConditional](/Mobs/ai/goals/fleeconditional)<br>**[Premium-only]** | fleeIf | Causes the mob to flee based on provided conditions. Safe speed is required for distanes greater than 5. |
|
|
| doNothing **[Premium-only]** | | Causes the mob to do nothing if conditions are met. |
|
|
| doNothing<br>**[Premium-only]** | | Causes the mob to do nothing if conditions are met. |
|
|
|
|
|
|
FleeConditional Example:
|
|
|
|
```yaml
|
|
|
|
AIGoalSelectors:
|
|
|
|
- clear
|
|
|
|
- fleeConditional{distance=5;speed=2;safespeed=2;conditions=[ - inlineofsight true ]}
|
|
|
|
```
|
|
|
|
|
|
|
|
**Creatures Only**
|
|
**Creatures Only**
|
|
|
|
|
... | @@ -131,19 +124,9 @@ SuperMob: |
... | @@ -131,19 +124,9 @@ SuperMob: |
|
| players | | Targets players. |
|
|
| players | | Targets players. |
|
|
| villagers | | Targets villagers. |
|
|
| villagers | | Targets villagers. |
|
|
| golems | | Targets Golems. |
|
|
| golems | | Targets Golems. |
|
|
| [nearestConditionalTarget](/Mobs/ai/targets/nearestconditionaltarget) **[Premium-only]** | nearestConditional, nearestIf | Targets the nearest entity that meets the conditions provided. |
|
|
| [nearestConditionalTarget](/Mobs/ai/targets/nearestconditionaltarget)<br>**[Premium-only]** | nearestConditional, nearestIf | Targets the nearest entity that meets the conditions provided. |
|
|
|
|
|
|
NearestConditionalTarget Example:
|
|
|
|
```yaml
|
|
|
|
AITargetSelectors:
|
|
|
|
- clear
|
|
|
|
- nearestConditionalTarget{conditions=[
|
|
|
|
- entitytype PLAYER true
|
|
|
|
- hasaura{aura=marked_for_death} true
|
|
|
|
]}
|
|
|
|
```
|
|
|
|
|
|
|
|
**All Creatures(Faction Support)**
|
|
**All Creatures ([Faction](Mobs/Factions) Support)**
|
|
|
|
|
|
| AI Goal | Description |
|
|
| AI Goal | Description |
|
|
|----------------------------------------|--------------------------------------------------------|
|
|
|----------------------------------------|--------------------------------------------------------|
|
... | @@ -153,15 +136,6 @@ AITargetSelectors: |
... | @@ -153,15 +136,6 @@ AITargetSelectors: |
|
| [SpecificFaction](/Mobs/ai/targets/specificfaction) [faction_name] | Targets any entities that are in the given faction. |
|
|
| [SpecificFaction](/Mobs/ai/targets/specificfaction) [faction_name] | Targets any entities that are in the given faction. |
|
|
| [SpecificFactionMonsters](/Mobs/ai/targets/specificfactionmonsters) [faction_name] | Targets any monsters that are in the given faction. |
|
|
| [SpecificFactionMonsters](/Mobs/ai/targets/specificfactionmonsters) [faction_name] | Targets any monsters that are in the given faction. |
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
AITargetSelectors:
|
|
|
|
- SpecificFaction undead
|
|
|
|
```
|
|
|
|
|
|
|
|
This will force a mob to attack mobs only in the “undead” faction.
|
|
|
|
|
|
|
|
**Tameable Creatures**
|
|
**Tameable Creatures**
|
|
|
|
|
|
| AI Goal | Description |
|
|
| AI Goal | Description |
|
... | | ... | |