You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/adventure/minimessage/format.mdx
+40-71Lines changed: 40 additions & 71 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,11 +94,10 @@ Examples
94
94
<#00ff00>R G B!
95
95
```
96
96
97
-
Preview
98
-
<divstyle="display: inline-block;">
99
-
<imgstyle="max-height: 10rem;"alt="The result of parsing `<yellow>Hello <blue>World</blue>!`, shown in-game in the Minecraft client's chat window"src={Color1.src} />
100
-
<imgstyle="max-height: 10rem;"alt="The result of parsing `<red>This is a <green>test!`, shown in-game in the Minecraft client's chat window"src={Color2.src} />
101
-
</div>
97
+
<br/>
98
+
99
+
<imgstyle="all: initial"alt="The result of parsing `<yellow>Hello <blue>World</blue>!`, shown in-game in the Minecraft client's chat window"src={Color1.src} />
100
+
<imgstyle="all: initial"alt="The result of parsing `<red>This is a <green>test!`, shown in-game in the Minecraft client's chat window"src={Color2.src} />
102
101
103
102
### Color (verbose)
104
103
@@ -121,11 +120,10 @@ Examples
121
120
<color:#FF5555>This is a <color:#55FF55>test!
122
121
```
123
122
124
-
Preview
125
-
<divstyle="display: inline-block;">
126
-
<imgstyle="max-height: 10rem;"alt="The result of parsing `<color:yellow>Hello <color:blue>World</color:blue>!`, shown in-game in the Minecraft client's chat window"src={ColorVerbose1.src} />
127
-
<imgstyle="max-height: 10rem;"alt="The result of parsing `<color:#FF5555>This is a <color:#55FF55>test!`, shown in-game in the Minecraft client's chat window"src={ColorVerbose2.src} />
128
-
</div>
123
+
<br/>
124
+
125
+
<imgstyle="all: initial"alt="The result of parsing `<color:yellow>Hello <color:blue>World</color:blue>!`, shown in-game in the Minecraft client's chat window"src={ColorVerbose1.src} />
126
+
<imgstyle="all: initial"alt="The result of parsing `<color:#FF5555>This is a <color:#55FF55>test!`, shown in-game in the Minecraft client's chat window"src={ColorVerbose2.src} />
129
127
130
128
### Shadow Color
131
129
@@ -146,12 +144,11 @@ Examples
146
144
<shadow:#000000FF><b>Thicc
147
145
```
148
146
149
-
Preview
150
-
<divstyle="display: flex;">
151
-
<imgsrc={Shadow1.src}style="max-width: 50%; margin: auto;"alt="The result of parsing `<shadow:yellow>Hello <shadow:aqua:0.5>World</shadow>!` shown in-game in the Minecraft client's chat window"/>
152
-
<imgsrc={Shadow2.src}style="max-width: 50%; margin: auto;"alt="The result of parsing `<shadow:#FF5555>This is a <shadow:#55FF55>test!` shown in-game in the Minecraft client's chat window"/>
153
-
<imgsrc={Shadow3.src}style="max-width: 50%; margin: auto;"alt="The result of parsing `<shadow:#000000FF><b>Thicc` shown in-game in the Minecraft client's chat window"/>
154
-
</div>
147
+
<br/>
148
+
149
+
<imgsrc={Shadow1.src}style="all: initial"alt="The result of parsing `<shadow:yellow>Hello <shadow:aqua:0.5>World</shadow>!` shown in-game in the Minecraft client's chat window"/>
150
+
<imgsrc={Shadow2.src}style="all: initial"alt="The result of parsing `<shadow:#FF5555>This is a <shadow:#55FF55>test!` shown in-game in the Minecraft client's chat window"/>
151
+
<imgsrc={Shadow3.src}style="all: initial"alt="The result of parsing `<shadow:#000000FF><b>Thicc` shown in-game in the Minecraft client's chat window"/>
155
152
156
153
### Decoration
157
154
@@ -176,10 +173,8 @@ Examples
176
173
<underlined>This is <bold>important</bold>!
177
174
```
178
175
179
-
Preview
180
-
<divstyle="display: inline-block;">
181
-
<imgstyle="max-height: 10rem;"alt="The result of parsing `<underlined>This is <bold>important</bold>!`, shown in-game in the Minecraft client's chat window"src={Decoration1.src} />
182
-
</div>
176
+
<br/>
177
+
<imgstyle="all: initial"alt="The result of parsing `<underlined>This is <bold>important</bold>!`, shown in-game in the Minecraft client's chat window"src={Decoration1.src} />
183
178
184
179
### Reset
185
180
@@ -198,10 +193,8 @@ Examples
198
193
<yellow><bold>Hello <reset>world!
199
194
```
200
195
201
-
Preview
202
-
<divstyle="display: inline-block;">
203
-
<imgstyle="max-height: 10rem;"alt="The result of parsing `<yellow><bold>Hello <reset>world!`, shown in-game in the Minecraft client's chat window"src={Reset1.src} />
204
-
</div>
196
+
<br/>
197
+
<imgstyle="all: initial"alt="The result of parsing `<yellow><bold>Hello <reset>world!`, shown in-game in the Minecraft client's chat window"src={Reset1.src} />
205
198
206
199
### Click
207
200
@@ -220,10 +213,8 @@ Examples
220
213
Click <click:copy_to_clipboard:Haha you suck> this </click>to copy your score!
221
214
```
222
215
223
-
Preview
224
-
<divstyle="display: inline-block;">
225
-
<imgstyle="max-height: 10rem;"alt="The result of parsing `<click:run_command:/seed>Click</click> to show the world seed!`, shown in-game in the Minecraft client's chat window"src={Click1.src} />
226
-
</div>
216
+
<br/>
217
+
<imgstyle="all: initial"alt="The result of parsing `<click:run_command:/seed>Click</click> to show the world seed!`, shown in-game in the Minecraft client's chat window"src={Click1.src} />
227
218
228
219
:::caution
229
220
@@ -254,10 +245,8 @@ Examples
254
245
<hover:show_text:'<red>test'>TEST
255
246
```
256
247
257
-
Preview
258
-
<divstyle="display: inline-block;">
259
-
<imgstyle="max-height: 10rem;"alt="The result of parsing `<hover:show_text:'<red>test'>TEST`, shown in-game in the Minecraft client's chat window"src={Hover1.src} />
260
-
</div>
248
+
<br/>
249
+
<imgstyle="all: initial"alt="The result of parsing `<hover:show_text:'<red>test'>TEST`, shown in-game in the Minecraft client's chat window"src={Hover1.src} />
261
250
262
251
### Keybind
263
252
@@ -274,10 +263,8 @@ Examples
274
263
Press <red><key:key.jump> to jump!
275
264
```
276
265
277
-
Preview
278
-
<divstyle="display: inline-block;">
279
-
<imgstyle="max-height: 10rem;"alt="The result of parsing `Press <red><key:key.jump> to jump!`, shown in-game in the Minecraft client's chat window"src={Key1.src} />
280
-
</div>
266
+
<br/>
267
+
<imgstyle="all: initial"alt="The result of parsing `Press <red><key:key.jump> to jump!`, shown in-game in the Minecraft client's chat window"src={Key1.src} />
281
268
282
269
### Translatable
283
270
@@ -299,11 +286,9 @@ You should get a <lang:block.minecraft.diamond_block>!
<imgstyle="max-height: 10rem;"alt="The result of parsing `You should get a <lang:block.minecraft.diamond_block>!`, shown in-game in the Minecraft client's chat window in English"src={Translatable1.src} />
305
-
<imgstyle="max-height: 10rem;"alt="The result of parsing `<lang:commands.drop.success.single:'<red>1':'<blue>Stone'>!`, shown in-game in the Minecraft client's chat window in English"src={Translatable2.src} />
306
-
</div>
289
+
<br/>
290
+
<imgstyle="all: initial"alt="The result of parsing `You should get a <lang:block.minecraft.diamond_block>!`, shown in-game in the Minecraft client's chat window in English"src={Translatable1.src} />
291
+
<imgstyle="all: initial"alt="The result of parsing `<lang:commands.drop.success.single:'<red>1':'<blue>Stone'>!`, shown in-game in the Minecraft client's chat window in English"src={Translatable2.src} />
307
292
308
293
### Fallback
309
294
@@ -346,10 +331,8 @@ Examples
346
331
Shift-click <insert:test>this</insert> to insert!
347
332
```
348
333
349
-
Preview
350
-
<divstyle="display: inline-block;">
351
-
<imgstyle="max-height: 10rem;"alt="The result of parsing `Shift-click <insert:test>this</insert> to insert!`, shown in-game in the Minecraft client's chat window"src={Insertion1.src} />
352
-
</div>
334
+
<br/>
335
+
<imgstyle="all: initial"alt="The result of parsing `Shift-click <insert:test>this</insert> to insert!`, shown in-game in the Minecraft client's chat window"src={Insertion1.src} />
<imgstyle="max-height: 10rem;"alt="The result of parsing all four examples in series, shown in-game in the Minecraft client's chat window"src={Rainbow1.src} />
376
-
</div>
356
+
<br/>
357
+
<imgstyle="all: initial"alt="The result of parsing all four examples in series, shown in-game in the Minecraft client's chat window"src={Rainbow1.src} />
<imgstyle="max-height: 10rem;"alt="The result of parsing the examples for the gradient tag, shown in-game in the Minecraft client's chat window"src={Gradient1.src} />
399
-
</div>
400
-
377
+
<br/>
378
+
<imgstyle="all: initial"alt="The result of parsing the examples for the gradient tag, shown in-game in the Minecraft client's chat window"src={Gradient1.src} />
401
379
402
380
### Transition
403
381
@@ -414,11 +392,8 @@ Examples
414
392
<transition:white:black:red:[phase]>Hello world [phase]</transition>
415
393
```
416
394
417
-
Preview
418
-
<divstyle="display: inline-block;">
419
-
<imgstyle="max-height: 10rem;"alt="The result of parsing `<transition:white:black:red:[phase]>Hello World [phase]</transition>`, shown in-game in the Minecraft client's chat window"src={Transition1.src} />
420
-
</div>
421
-
395
+
<br/>
396
+
<imgstyle="all: initial"alt="The result of parsing `<transition:white:black:red:[phase]>Hello World [phase]</transition>`, shown in-game in the Minecraft client's chat window"src={Transition1.src} />
<font:myfont:custom_font>Uses a custom font from a resource pack</font>
437
412
```
438
413
439
-
Preview
440
-
<divstyle="display: inline-block;">
441
-
<imgstyle="max-height: 10rem;"alt="The result of parsing `Nothing <font:uniform>Uniform <font:alt>Alt </font> Uniform`, shown in-game in the Minecraft client's chat window"src={Font1.src} />
442
-
</div>
414
+
<br/>
415
+
<imgstyle="all: initial"alt="The result of parsing `Nothing <font:uniform>Uniform <font:alt>Alt </font> Uniform`, shown in-game in the Minecraft client's chat window"src={Font1.src} />
443
416
444
417
### Newline
445
418
@@ -460,10 +433,8 @@ Let me insert a <newline>line break here.
460
433
<hover:show_text:'<red>Hover with a<newline><green>line break'>Text with<newline>line break</hover>
461
434
```
462
435
463
-
Preview
464
-
<divstyle="display: inline-block;">
465
-
<imgstyle="max-height: 10rem;"alt="The result of parsing `<hover:show_text:'<red>Hover with a<newline><green>line break'>Text with<newline>line break</hover>`, shown in-game in the Minecraft client's chat window"src={Newline1.src} />
466
-
</div>
436
+
<br/>
437
+
<imgstyle="all: initial"alt="The result of parsing `<hover:show_text:'<red>Hover with a<newline><green>line break'>Text with<newline>line break</hover>`, shown in-game in the Minecraft client's chat window"src={Newline1.src} />
467
438
468
439
### Selector
469
440
@@ -484,10 +455,8 @@ Examples
484
455
Hello <selector:@e[limit=5]>, I'm <selector:@s>!
485
456
```
486
457
487
-
Preview
488
-
<divstyle="display: inline-block;">
489
-
<imgstyle="max-height: 10rem;"alt="The result of parsing `Hello <selector:@e[limit=5]>, I'm <selector:@s>!`, show in-game in the Minecraft client's chat window"src={Selector1.src} />
490
-
</div>
458
+
<br/>
459
+
<imgstyle="all: initial"alt="The result of parsing `Hello <selector:@e[limit=5]>, I'm <selector:@s>!`, show in-game in the Minecraft client's chat window"src={Selector1.src} />
0 commit comments