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
    • Mechanics
  • jsonmessage

jsonmessage · Changes

Page history
Removed double title and colorized examples. authored Oct 20, 2023 by Dante's avatar Dante
Show whitespace changes
Inline Side-by-side
Showing with 13 additions and 13 deletions
+13 -13
  • skills/mechanics/jsonmessage.md skills/mechanics/jsonmessage.md +13 -13
  • No files found.
skills/mechanics/jsonmessage.md
View page @ eaa1776f
Mechanic: JSON Message
======================
Sends a json-format chat message to the target player(s). JSON-messages
......@@ -34,21 +33,21 @@ Examples
You can use both bukkit color codes or json color formatting:
![](http://fs5.directupload.net/images/160309/u3fdf5cx.jpg)
Skills:
```yaml
Skills:
- jsonmessage{m="[{'text':'&aHey, i am a JSON message!'}]"} @trigger ~onInteract
- jsonmessage{m="[{'text':'Hey, i am a red JSON message!','color':'red'}]"} @trigger ~onInteract
```
------------------------------------------------------------------------
Here's an example of how to make use of hover-events:
<img src="http://fs5.directupload.net/images/160309/7irfoune.jpg" width="500" height="30" alt="http://fs5.directupload.net/images/160309/7irfoune.jpg" />
Skills:
```yaml
Skills:
- jsonmessage{m="[{'text':'&7With me, you can create hover events','hoverEvent':{'action':'show_text','value':{'text':'&aI am a hover event :)'}}}]"} @trigger ~onInteract
```
------------------------------------------------------------------------
And click events can be created like this. This is especially useful for
......@@ -57,6 +56,7 @@ would send the signal &lt;signal&gt; to the mob casting the json-message
mechanic, if the player clicks on the click-event.
![](http://fs5.directupload.net/images/160309/gjxvhpd8.jpg)
Skills:
```yaml
Skills:
- jsonmessage{m="[{'text':'&7&nAlso click events! :)','clickEvent':{'action':'run_command','value':'/mm signal <mob.uuid> <signal>'}}]"} @trigger ~onInteract
```
\ No newline at end of file
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
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
  • 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
Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats
Examples
Useful Tips