| 1 |
---input--- |
| 2 |
#> This command looks for a player with 10 hp and prints a message |
| 3 |
# @param - @s = player |
| 4 |
|
| 5 |
execute as @a[name="rx", nbt={Health: 10.0f}] run tellraw @a {"text": "this is my cool command"} # epic |
| 6 |
|
| 7 |
---tokens--- |
| 8 |
'#>' Comment.Multiline |
| 9 |
' ' Text.Whitespace |
| 10 |
'This' Literal.String.Doc |
| 11 |
' ' Text.Whitespace |
| 12 |
'command' Literal.String.Doc |
| 13 |
' ' Text.Whitespace |
| 14 |
'looks' Literal.String.Doc |
| 15 |
' ' Text.Whitespace |
| 16 |
'for' Literal.String.Doc |
| 17 |
' ' Text.Whitespace |
| 18 |
'a' Literal.String.Doc |
| 19 |
' ' Text.Whitespace |
| 20 |
'player' Literal.String.Doc |
| 21 |
' ' Text.Whitespace |
| 22 |
'with' Literal.String.Doc |
| 23 |
' ' Text.Whitespace |
| 24 |
'10' Literal.String.Doc |
| 25 |
' ' Text.Whitespace |
| 26 |
'hp' Literal.String.Doc |
| 27 |
' ' Text.Whitespace |
| 28 |
'and' Literal.String.Doc |
| 29 |
' ' Text.Whitespace |
| 30 |
'prints' Literal.String.Doc |
| 31 |
' ' Text.Whitespace |
| 32 |
'a' Literal.String.Doc |
| 33 |
' ' Text.Whitespace |
| 34 |
'message' Literal.String.Doc |
| 35 |
'\n' Text |
| 36 |
|
| 37 |
'#' Comment.Multiline |
| 38 |
' ' Text.Whitespace |
| 39 |
'@param' Name.Decorator |
| 40 |
' ' Text.Whitespace |
| 41 |
'-' Comment.Multiline |
| 42 |
' ' Text.Whitespace |
| 43 |
'@s' Name.Decorator |
| 44 |
' ' Text.Whitespace |
| 45 |
'=' Comment.Multiline |
| 46 |
' ' Text.Whitespace |
| 47 |
'player' Comment.Multiline |
| 48 |
'\n' Text |
| 49 |
|
| 50 |
'\n' Text.Whitespace |
| 51 |
|
| 52 |
'execute' Name.Builtin |
| 53 |
' ' Text.Whitespace |
| 54 |
'as' Keyword.Constant |
| 55 |
' ' Text.Whitespace |
| 56 |
'@a' Name.Variable |
| 57 |
'[' Punctuation |
| 58 |
'name' Name.Attribute |
| 59 |
'=' Punctuation |
| 60 |
'"' Literal.String.Double |
| 61 |
'rx' Literal.String.Double |
| 62 |
'"' Literal.String.Double |
| 63 |
',' Punctuation |
| 64 |
' ' Text.Whitespace |
| 65 |
'nbt' Name.Attribute |
| 66 |
'=' Punctuation |
| 67 |
'{' Punctuation |
| 68 |
'Health' Name.Attribute |
| 69 |
':' Punctuation |
| 70 |
' ' Text.Whitespace |
| 71 |
'10.0f' Literal.Number.Float |
| 72 |
'}' Punctuation |
| 73 |
']' Punctuation |
| 74 |
' ' Text.Whitespace |
| 75 |
'run' Keyword.Constant |
| 76 |
' tellraw' Name.Builtin |
| 77 |
' ' Text.Whitespace |
| 78 |
'@a' Name.Variable |
| 79 |
' ' Text.Whitespace |
| 80 |
'{' Punctuation |
| 81 |
'"' Name.Attribute |
| 82 |
'text' Name.Attribute |
| 83 |
'"' Name.Attribute |
| 84 |
':' Punctuation |
| 85 |
' ' Text.Whitespace |
| 86 |
'"' Literal.String.Double |
| 87 |
'this is my cool command' Literal.String.Double |
| 88 |
'"' Literal.String.Double |
| 89 |
'}' Punctuation |
| 90 |
' ' Text.Whitespace |
| 91 |
'# epic' Comment.Single |
| 92 |
'\n' Text.Whitespace |