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 146
    • Issues 146
    • 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
    • Guides
  • Spawn Message

Spawn Message · Changes

Page history
Create Guides/Spawn Message authored Apr 13, 2024 by Amy's avatar Amy
Show whitespace changes
Inline Side-by-side
Showing with 33 additions and 0 deletions
+33 -0
  • Guides/Spawn-Message.md Guides/Spawn-Message.md +33 -0
  • No files found.
Guides/Spawn-Message.md 0 → 100644
View page @ 01a1412b
You may have a special mob that spawns, such as a boss, that you want players on the server to know about. You can use the [Message Mechanic](/skills/mechanics/message) combined with the [onSpawn Trigger](/Skills/Triggers#onspawn) to achieve this.
It is worth noting that this may not work for mobs spawned from a Spawner that is in currently unloaded chunks.
In this basic example, we are simply sending a message to [@server](/Skills/Targeters/PlayersOnServer) informing them that the mob has spawned.
```yaml
SkeletonKing:
Type: WITHER_SKELETON
Display: '&6Skeleton King'
Health: 500
Damage: 10
Skills:
- message{m="&6The Skeleton King has spawned!"} @server ~onSpawn
```
This works well, but you may want to make your mob show its coordinates to players! You can use [Caster Placeholders](/Skills/Placeholders) to achieve this.
```yaml
SkeletonKing:
Type: WITHER_SKELETON
Display: '&6Skeleton King'
Health: 500
Damage: 10
Skills:
- message{m="&6The Skeleton King has spawned! You can find it at, &aX<&co>&b<caster.l.x> &aY<&co>&b<caster.l.y> &aZ<&co>&b<caster.l.x>"} @server ~onSpawn
```
We are using the following placeholders:
- `<&co>` This will insert a `:` symbol which will otherwise interfere with the syntax.
- `<caster.l.x>` This displays the casters X coordinate
- `<caster.l.y>` This displays the casters Y coordinate
- `<caster.l.z>` This displays the casters Z coordinate
\ No newline at end of file
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Guides
Troubleshooting
Mythic Add-ons
Compatible Plugins
API Information
Packs
  • Pins
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
Technical
  • Math
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • Particles Types
  • Audience
Examples
Useful Tips