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