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 137
    • Issues 137
    • 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
  • Targeters

Targeters · Changes

Page history
updated Common Attributes - added the Sudo Attributes section authored Jul 22, 2023 by Lxlp's avatar Lxlp
Show whitespace changes
Inline Side-by-side
Showing with 15 additions and 3 deletions
+15 -3
  • Skills/Targeters.md Skills/Targeters.md +15 -3
  • No files found.
Skills/Targeters.md
View page @ fa50410b
......@@ -169,11 +169,23 @@ Some meta-targeters also allow the mechanic to be casted "fromOrigin". This will
There are some common attributes that can be used in most of the Targeters, depending on the targeter's returned value
## All Targeters
### Sudo Attributes
| Attribute | Shorthand | Description |
| ---------------------------------------- | ---------------- | ----------------------------------------- |
| sudoparent | fromparent, ofparent, asparent, parent, ofparent | Allows to obtain the targeter as if it was the parent casting the mechanic |
| sudoowner | fromowner, ofowner, asowner, owner, ofowner | Allows to obtain the targeter as if it was the owner casting the mechanic |
| sudotrigger | fromtrigger, oftrigger, astrigger, trigger, oftrigger | Allows to obtain the targeter as if it was the trigger casting the mechanic |
| sudoparent | fromparent, ofparent, asparent, parent, ofparent | If this attribute is set to `true`, the targeter will be parsed as if it was the [Parent][] of the casting entity executing the mechanic|
| sudoowner | fromowner, ofowner, asowner, owner, ofowner | If this attribute is set to `true`, the targeter will be parsed as if it was the [Owner][] of the casting entity executing the mechanic |
| sudotrigger | fromtrigger, oftrigger, astrigger, trigger, oftrigger | If this attribute is set to `true`, the targeter will be parsed as if it was the [Trigger][] of the skilltree executing the mechanic |
In this example, [the mob will keep getting teleported in front of its owner](https://cdn.discordapp.com/attachments/523443579574681600/1101186712174088253/a.gif), since the `Forward` targeter is using the `sudoowner` attribute, and is, as such, getting parsed as if it was the owner of the casting mob executing the mechanic
```yaml
TestOwner:
Type: Wolf
Skills:
- setOwner @NearestPlayer{r=99} ~onSpawn
- tp @Forward{f=5;y=1;sudoowner=true} ~onTimer:1
```
## Location Targeters
| Attribute | Shorthand | Description |
......
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
Packs
Mobs
  • Mob 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
  • Effects
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drop Types
Spawning
  • Spawners
  • Random Spawns
Examples
Useful Tips