diff options
| author | Rit <RitikShah@users.noreply.github.com> | 2022-04-24 05:59:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-24 14:59:41 +0200 |
| commit | 8ad1bea2a285b33778aa38eb274ddea9a6afc0b9 (patch) | |
| tree | 66a52e90346a88ade27f6ab59a8c556f9aa794b9 /tests/examplefiles/mcfunction | |
| parent | 323a7056a7df342e2e4e9986204f5d80487fae56 (diff) | |
| download | pygments-git-8ad1bea2a285b33778aa38eb274ddea9a6afc0b9.tar.gz | |
Initial commit for MCFunction Lexer + tests (#2107)
* Initial commit for MCFunction Lexer + tests
* Apply suggestions from code review
Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
* added docstring info + fix for run ... command
* remove string ending Error tokens
* not working - refactor in-progress
* fixed: generic property
* Update pygments/lexers/mcfunction.py
Co-authored-by: Georg Brandl <georg@python.org>
* apply some fixes from comments
* Update pygments/lexers/mcfunction.py
Co-authored-by: Georg Brandl <georg@python.org>
* spacing
* updated tests and applied more suggestions
* fixed comment regex, passes tests
Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
Co-authored-by: Georg Brandl <georg@python.org>
Diffstat (limited to 'tests/examplefiles/mcfunction')
| -rw-r--r-- | tests/examplefiles/mcfunction/main.mcfunction | 180 | ||||
| -rw-r--r-- | tests/examplefiles/mcfunction/main.mcfunction.output | 2052 |
2 files changed, 2232 insertions, 0 deletions
diff --git a/tests/examplefiles/mcfunction/main.mcfunction b/tests/examplefiles/mcfunction/main.mcfunction new file mode 100644 index 00000000..47109ff0 --- /dev/null +++ b/tests/examplefiles/mcfunction/main.mcfunction @@ -0,0 +1,180 @@ +# This example file is borrowed from https://github.com/Arcensoth/language-mcfunction/blob/main/tests/everything.mcfunction + +#> Raycasting +# +# Casts a ray from starting position along a configurable number +# of blocks with a confugrable accuracy, counting the number of +# entities hit by the ray along the way. +# +# @params +# $mypack.raycast.distance param +# The number of blocks to cast forward. +# $mypack.raycast.precision param +# The ratio of block precision to a full block. +# +# @returns +# $mypack.raycast.result return +# The number of entities hit by the ray. + +function #mypack:hooks/raycast/begin + +function mypack:raycast/loop + +function #mypack:hooks/raycast/end + +# this is a comment +say hello world + + # indented comment + say hello indent + +effect give @s minecraft:night_vision 999999 1 true +effect give @s minecraft:night_vision 999999 1 false + +teleport 1 2 3 +teleport 100.5 80 -100.5 + +execute if score @a temp matches 10.. run +execute if score @a temp matches ..20 run +execute if score @a temp matches 10..20 run + +execute positioned 10 ~ -10 run +execute positioned 10 ~10 -10 run +execute positioned 10 ~0.5 -10 run +execute positioned 10 ~.5 -10 run +execute positioned 10 ~-10 -10 run +execute positioned 10 ~-0.5 -10 run +execute positioned 10 ~-.5 -10 run + +execute positioned 10 ^ -10 run +execute positioned 10 ^10 -10 run +execute positioned 10 ^0.5 -10 run +execute positioned 10 ^.5 -10 run +execute positioned 10 ^-10 -10 run +execute positioned 10 ^-0.5 -10 run +execute positioned 10 ^-.5 -10 run + +function mypack:foo +function mypack:foo/bar +function mypack:foo/bar/baz +function #mypack:foo +function #mypack:foo/bar +function #mypack:foo/bar/baz + +execute if block ~ ~ ~ minecraft:oak_log[axis=x] run +execute if block ~ ~ ~ minecraft:oak_leaves[distance=5] run +execute if block ~ ~ ~ minecraft:oak_leaves[persistent=true] run +execute if block ~ ~ ~ minecraft:oak_leaves[persistent=false] run +execute if block ~ ~ ~ minecraft:oak_leaves[distance=5,persistent=true] run +execute if block ~ ~ ~ #minecraft:leaves[distance=5] run +execute if block ~ ~ ~ #minecraft:leaves[distance=5,persistent=true] run +setblock ~ ~ ~ mypack:foo{foo:bar} destroy +setblock ~ ~ ~ mypack:foo{foo: bar} destroy +setblock ~ ~ ~ mypack:foo[facing=up]{foo: bar} destroy +setblock ~ ~ ~ mypack:foo[facing = up]{foo: bar} destroy +setblock ~ ~ ~ minecraft:dispenser[facing=up]{Items: [{id: "minecraft:diamond", Count: 1}]} + +tag @s add my.tag + +datapack enable "hello world" +datapack enable "escape \" me" +datapack enable 'hello world' +datapack enable 'escape \' me' + +execute as f7a39418-72ca-4bf2-bc7e-ba9df67a4707 run +execute as 0-0-0-0-0 run + +execute store result score #fakeplayer +execute store result score #fake.player +execute store result score #fake_player +execute store result score $fakeplayer +execute store result score %fakeplayer + +execute as @b +execute as @a + +execute as @a[tag=foo] +execute as @a[tag=!foo] + +execute as @a[sort=nearest] run +execute as @a[gamemode=survival] run +execute as @a[gamemode=!creative] run +execute as @a[tag=foo,tag=bar,tag=!baz] run + +execute as @a[distance=15] +execute as @a[distance=1.5] +execute as @a[distance=.5] +execute as @a[distance=-.25] + +execute as @a[distance=100] +execute as @a[distance=..10] +execute as @a[distance=11..19] +execute as @a[distance=20..] +execute as @a[distance=0.5] +execute as @a[distance=..0.1] +execute as @a[distance=0.2..0.8] +execute as @a[distance=0.9..] + +execute as @a[type=minecraft:bat] run +execute as @a[type=!minecraft:cow,type=!minecraft:pig] run +execute as @a[type=#minecraft:skeletons] run +execute as @a[type=!#minecraft:skeletons,type=!minecraft:zombie] run + +execute as @a[tag=my.tag] run + +execute as @a[name="hello world"] as @s run +execute as @a[name="escape \" me"] as @s run +execute as @a[name="how, about, commas ?"] as @s run +execute as @a[name="and [braces] ?"] as @s run + +execute as @e[nbt={ PortalCooldown: 0 }] run +execute as @e[nbt={ Item: {id: "minecraft:diamond", Count: 64 } }] run + +execute if score @s foo < @s bar run +execute if score @s foo <= @s bar run +execute if score @s foo = @s bar run +execute if score @s foo > @s bar run +execute if score @s foo >= @s bar run + +data get entity @s SelectedItem.tag.display.Name +data get entity @s Inventory[0] +data get entity @s Inventory[{id: "minecraft:diamond"}].Count +data get entity @s Inventory[].tag{custom: true}.display.Name + +data merge entity @s { foo: true, bar: 1234 } +data modify block ~ ~ ~ RecordItem.tag set value { messages: [hi, bye] } +data modify block ~ ~ ~ RecordItem.tag.messages append value [ { message: "hello world" } ] + +tellraw @a {"text": "hello world", "color": "blue"} +tellraw @a [{"text": "hello", "color": "blue"}, {"text": "world", "color": "blue"}] + +execute as @a[scores={myscore=10}] run +execute as @a[scores={myscore=10..12}] run +execute as @a[scores={foo=10, bar=1..5, baz=..0}] run + +execute as @a[advancements={minecraft:story/form_obsidian=true}] run +execute as @a[advancements={minecraft:story/obtain_armor={iron_helmet=true}}] run +execute as @a[advancements={minecraft:story/obtain_armor={iron_helmet=true, gold_helmet=false}}] run +execute as @a[advancements={minecraft:story/form_obsidian=true, minecraft:story/follow_ender_eye=true}] run +execute as @a[advancements={minecraft:story/form_obsidian={foo=true, bar=false},minecraft:story/follow_ender_eye={foo=false, bar=true}}] run + +give @s diamond_sword{display: {Name: '"My Custom Sword"'}} +give @s minecraft:diamond_sword{display: {Name: '"My Custom Sword"'}} + +execute if score @s foo < @s bar run say execute if score @s foo < @s bar run say +execute if score @s foo < @s bar run say hello @e[tag=baz, sort=nearest, limit=1] how are you? + +execute + as @a # For each "player", + at @s # start at their feet. + anchored eyes # Looking through their eyes, + facing 0 0 0 # face perfectly at the target + anchored feet # (go back to the feet) + positioned ^ ^ ^1 # and move one block forward. + rotated as @s # Face the direction the player + # is actually facing, + positioned ^ ^ ^-1 # and move one block back. + if entity @s[distance=..0.6] # Check if we're close to the + # player's feet. + run + say "I'm facing the target!" diff --git a/tests/examplefiles/mcfunction/main.mcfunction.output b/tests/examplefiles/mcfunction/main.mcfunction.output new file mode 100644 index 00000000..5b5b8c40 --- /dev/null +++ b/tests/examplefiles/mcfunction/main.mcfunction.output @@ -0,0 +1,2052 @@ +'# This example file is borrowed from https://github.com/Arcensoth/language-mcfunction/blob/main/tests/everything.mcfunction' Comment.Single +'\n\n' Text.Whitespace + +'#>' Comment.Multiline +' ' Text.Whitespace +'Raycasting' Literal.String.Doc +'\n' Text + +'#' Comment.Multiline +'\n' Text + +'#' Comment.Multiline +' ' Text.Whitespace +'Casts' Comment.Multiline +' ' Text.Whitespace +'a' Comment.Multiline +' ' Text.Whitespace +'ray' Comment.Multiline +' ' Text.Whitespace +'from' Comment.Multiline +' ' Text.Whitespace +'starting' Comment.Multiline +' ' Text.Whitespace +'position' Comment.Multiline +' ' Text.Whitespace +'along' Comment.Multiline +' ' Text.Whitespace +'a' Comment.Multiline +' ' Text.Whitespace +'configurable' Comment.Multiline +' ' Text.Whitespace +'number' Comment.Multiline +'\n' Text + +'#' Comment.Multiline +' ' Text.Whitespace +'of' Comment.Multiline +' ' Text.Whitespace +'blocks' Comment.Multiline +' ' Text.Whitespace +'with' Comment.Multiline +' ' Text.Whitespace +'a' Comment.Multiline +' ' Text.Whitespace +'confugrable' Comment.Multiline +' ' Text.Whitespace +'accuracy,' Comment.Multiline +' ' Text.Whitespace +'counting' Comment.Multiline +' ' Text.Whitespace +'the' Comment.Multiline +' ' Text.Whitespace +'number' Comment.Multiline +' ' Text.Whitespace +'of' Comment.Multiline +'\n' Text + +'#' Comment.Multiline +' ' Text.Whitespace +'entities' Comment.Multiline +' ' Text.Whitespace +'hit' Comment.Multiline +' ' Text.Whitespace +'by' Comment.Multiline +' ' Text.Whitespace +'the' Comment.Multiline +' ' Text.Whitespace +'ray' Comment.Multiline +' ' Text.Whitespace +'along' Comment.Multiline +' ' Text.Whitespace +'the' Comment.Multiline +' ' Text.Whitespace +'way.' Comment.Multiline +'\n' Text + +'#' Comment.Multiline +'\n' Text + +'#' Comment.Multiline +' ' Text.Whitespace +'@params' Name.Decorator +'\n' Text + +'#' Comment.Multiline +' ' Text.Whitespace +'$mypack.raycast.distance' Name.Variable.Magic +' ' Text.Whitespace +'param' Comment.Multiline +'\n' Text + +'#' Comment.Multiline +' ' Text.Whitespace +'The' Comment.Multiline +' ' Text.Whitespace +'number' Comment.Multiline +' ' Text.Whitespace +'of' Comment.Multiline +' ' Text.Whitespace +'blocks' Comment.Multiline +' ' Text.Whitespace +'to' Comment.Multiline +' ' Text.Whitespace +'cast' Comment.Multiline +' ' Text.Whitespace +'forward.' Comment.Multiline +'\n' Text + +'#' Comment.Multiline +' ' Text.Whitespace +'$mypack.raycast.precision' Name.Variable.Magic +' ' Text.Whitespace +'param' Comment.Multiline +'\n' Text + +'#' Comment.Multiline +' ' Text.Whitespace +'The' Comment.Multiline +' ' Text.Whitespace +'ratio' Comment.Multiline +' ' Text.Whitespace +'of' Comment.Multiline +' ' Text.Whitespace +'block' Comment.Multiline +' ' Text.Whitespace +'precision' Comment.Multiline +' ' Text.Whitespace +'to' Comment.Multiline +' ' Text.Whitespace +'a' Comment.Multiline +' ' Text.Whitespace +'full' Comment.Multiline +' ' Text.Whitespace +'block.' Comment.Multiline +'\n' Text + +'#' Comment.Multiline +'\n' Text + +'#' Comment.Multiline +' ' Text.Whitespace +'@returns' Name.Decorator +'\n' Text + +'#' Comment.Multiline +' ' Text.Whitespace +'$mypack.raycast.result' Name.Variable.Magic +' ' Text.Whitespace +'return' Comment.Multiline +'\n' Text + +'#' Comment.Multiline +' ' Text.Whitespace +'The' Comment.Multiline +' ' Text.Whitespace +'number' Comment.Multiline +' ' Text.Whitespace +'of' Comment.Multiline +' ' Text.Whitespace +'entities' Comment.Multiline +' ' Text.Whitespace +'hit' Comment.Multiline +' ' Text.Whitespace +'by' Comment.Multiline +' ' Text.Whitespace +'the' Comment.Multiline +' ' Text.Whitespace +'ray.' Comment.Multiline +'\n' Text + +'\n' Text.Whitespace + +'function' Name.Builtin +' ' Text.Whitespace +'#mypack:hooks/raycast/begin' Name.Function +'\n\n' Text.Whitespace + +'function' Name.Builtin +' ' Text.Whitespace +'mypack:raycast/loop' Name.Function +'\n\n' Text.Whitespace + +'function' Name.Builtin +' ' Text.Whitespace +'#mypack:hooks/raycast/end' Name.Function +'\n\n' Text.Whitespace + +'# this is a comment' Comment.Single +'\n' Text.Whitespace + +'say' Name.Builtin +' ' Text.Whitespace +'hello' Keyword.Constant +' ' Text.Whitespace +'world' Keyword.Constant +'\n\n ' Text.Whitespace +'# indented comment' Comment.Single +'\n ' Text.Whitespace +'say' Keyword.Constant +' ' Text.Whitespace +'hello' Keyword.Constant +' ' Text.Whitespace +'indent' Keyword.Constant +'\n\n' Text.Whitespace + +'effect' Name.Builtin +' ' Text.Whitespace +'give' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'minecraft:night_vision' Name.Function +' ' Text.Whitespace +'999999' Literal.Number.Float +' ' Text.Whitespace +'1' Literal.Number.Float +' ' Text.Whitespace +'true' Keyword.Constant +'\n' Text.Whitespace + +'effect' Name.Builtin +' ' Text.Whitespace +'give' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'minecraft:night_vision' Name.Function +' ' Text.Whitespace +'999999' Literal.Number.Float +' ' Text.Whitespace +'1' Literal.Number.Float +' ' Text.Whitespace +'false' Keyword.Constant +'\n\n' Text.Whitespace + +'teleport' Name.Builtin +' ' Text.Whitespace +'1' Literal.Number.Float +' ' Text.Whitespace +'2' Literal.Number.Float +' ' Text.Whitespace +'3' Literal.Number.Float +'\n' Text.Whitespace + +'teleport' Name.Builtin +' ' Text.Whitespace +'100.5' Literal.Number.Float +' ' Text.Whitespace +'80' Literal.Number.Float +' ' Text.Whitespace +'-100.5' Literal.Number.Float +'\n\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +' ' Text.Whitespace +'temp' Keyword.Constant +' ' Text.Whitespace +'matches' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +'..' Literal +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +' ' Text.Whitespace +'temp' Keyword.Constant +' ' Text.Whitespace +'matches' Keyword.Constant +' ' Text.Whitespace +'..' Literal +'20' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +' ' Text.Whitespace +'temp' Keyword.Constant +' ' Text.Whitespace +'matches' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +'..' Literal +'20' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\n\nexecute' Name.Builtin +' ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'-10' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +' ' Text.Whitespace +'~' Operator +'10' Literal.Number.Float +' ' Text.Whitespace +'-10' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +' ' Text.Whitespace +'~' Operator +'0.5' Literal.Number.Float +' ' Text.Whitespace +'-10' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +' ' Text.Whitespace +'~' Operator +'.5' Literal.Number.Float +' ' Text.Whitespace +'-10' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +' ' Text.Whitespace +'~' Operator +'-10' Literal.Number.Float +' ' Text.Whitespace +'-10' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +' ' Text.Whitespace +'~' Operator +'-0.5' Literal.Number.Float +' ' Text.Whitespace +'-10' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +' ' Text.Whitespace +'~' Operator +'-.5' Literal.Number.Float +' ' Text.Whitespace +'-10' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\n\nexecute' Name.Builtin +' ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +' ' Text.Whitespace +'^' Operator +' ' Text.Whitespace +'-10' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +' ' Text.Whitespace +'^' Operator +'10' Literal.Number.Float +' ' Text.Whitespace +'-10' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +' ' Text.Whitespace +'^' Operator +'0.5' Literal.Number.Float +' ' Text.Whitespace +'-10' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +' ' Text.Whitespace +'^' Operator +'.5' Literal.Number.Float +' ' Text.Whitespace +'-10' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +' ' Text.Whitespace +'^' Operator +'-10' Literal.Number.Float +' ' Text.Whitespace +'-10' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +' ' Text.Whitespace +'^' Operator +'-0.5' Literal.Number.Float +' ' Text.Whitespace +'-10' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'10' Literal.Number.Float +' ' Text.Whitespace +'^' Operator +'-.5' Literal.Number.Float +' ' Text.Whitespace +'-10' Literal.Number.Float +' ' Text.Whitespace +'run' Keyword.Constant +'\n\nfunction' Name.Builtin +' ' Text.Whitespace +'mypack:foo' Name.Function +'\n' Text.Whitespace + +'function' Name.Builtin +' ' Text.Whitespace +'mypack:foo/bar' Name.Function +'\n' Text.Whitespace + +'function' Name.Builtin +' ' Text.Whitespace +'mypack:foo/bar/baz' Name.Function +'\n' Text.Whitespace + +'function' Name.Builtin +' ' Text.Whitespace +'#mypack:foo' Name.Function +'\n' Text.Whitespace + +'function' Name.Builtin +' ' Text.Whitespace +'#mypack:foo/bar' Name.Function +'\n' Text.Whitespace + +'function' Name.Builtin +' ' Text.Whitespace +'#mypack:foo/bar/baz' Name.Function +'\n\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'block' Keyword.Constant +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'minecraft:oak_log' Name.Function +'[' Punctuation +'axis' Name.Attribute +'=' Punctuation +'x' Name.Variable.Class +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'block' Keyword.Constant +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'minecraft:oak_leaves' Name.Function +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'5' Literal.Number.Float +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'block' Keyword.Constant +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'minecraft:oak_leaves' Name.Function +'[' Punctuation +'persistent' Name.Attribute +'=' Punctuation +'true' Name.Tag +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'block' Keyword.Constant +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'minecraft:oak_leaves' Name.Function +'[' Punctuation +'persistent' Name.Attribute +'=' Punctuation +'false' Name.Tag +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'block' Keyword.Constant +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'minecraft:oak_leaves' Name.Function +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'5' Literal.Number.Float +',' Punctuation +'persistent' Name.Attribute +'=' Punctuation +'true' Name.Tag +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'block' Keyword.Constant +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'#minecraft:leaves' Name.Function +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'5' Literal.Number.Float +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'block' Keyword.Constant +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'#minecraft:leaves' Name.Function +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'5' Literal.Number.Float +',' Punctuation +'persistent' Name.Attribute +'=' Punctuation +'true' Name.Tag +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nsetblock' Name.Builtin +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'mypack:foo' Name.Function +'{' Punctuation +'foo' Name.Attribute +':' Punctuation +'bar' Name.Tag +'}' Punctuation +' ' Text.Whitespace +'destroy' Keyword.Constant +'\n' Text.Whitespace + +'setblock' Name.Builtin +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'mypack:foo' Name.Function +'{' Punctuation +'foo' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'bar' Name.Tag +'}' Punctuation +' ' Text.Whitespace +'destroy' Keyword.Constant +'\n' Text.Whitespace + +'setblock' Name.Builtin +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'mypack:foo' Name.Function +'[' Punctuation +'facing' Name.Attribute +'=' Punctuation +'up' Name.Tag +']' Punctuation +'{' Punctuation +'foo' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'bar' Name.Tag +'}' Punctuation +' ' Text.Whitespace +'destroy' Keyword.Constant +'\n' Text.Whitespace + +'setblock' Name.Builtin +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'mypack:foo' Name.Function +'[' Punctuation +'facing' Name.Attribute +' ' Text.Whitespace +'=' Punctuation +' ' Text.Whitespace +'up' Name.Tag +']' Punctuation +'{' Punctuation +'foo' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'bar' Name.Tag +'}' Punctuation +' ' Text.Whitespace +'destroy' Keyword.Constant +'\n' Text.Whitespace + +'setblock' Name.Builtin +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'minecraft:dispenser' Name.Function +'[' Punctuation +'facing' Name.Attribute +'=' Punctuation +'up' Name.Tag +']' Punctuation +'{' Punctuation +'Items' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'[' Punctuation +'{' Punctuation +'id' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'"' Literal.String.Double +'minecraft:diamond' Literal.String.Double +'"' Literal.String.Double +',' Punctuation +' ' Text.Whitespace +'Count' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'1' Literal.Number.Float +'}' Punctuation +']' Punctuation +'}' Punctuation +'\n\n' Text.Whitespace + +'tag' Name.Builtin +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'add' Keyword.Constant +' ' Text.Whitespace +'my.tag' Keyword.Constant +'\n\n' Text.Whitespace + +'datapack' Name.Builtin +' ' Text.Whitespace +'enable' Keyword.Constant +' ' Text.Whitespace +'"' Literal.String.Double +'hello world' Literal.String.Double +'"' Literal.String.Double +'\n' Text.Whitespace + +'datapack' Name.Builtin +' ' Text.Whitespace +'enable' Keyword.Constant +' ' Text.Whitespace +'"' Literal.String.Double +'escape ' Literal.String.Double +'\\"' Literal.String.Escape +' me' Literal.String.Double +'"' Literal.String.Double +'\n' Text.Whitespace + +'datapack' Name.Builtin +' ' Text.Whitespace +'enable' Keyword.Constant +' ' Text.Whitespace +"'" Literal.String.Single +'hello world' Literal.String.Single +"'" Literal.String.Single +'\n' Text.Whitespace + +'datapack' Name.Builtin +' ' Text.Whitespace +'enable' Keyword.Constant +' ' Text.Whitespace +"'" Literal.String.Single +'escape ' Literal.String.Single +"\\'" Literal.String.Escape +' me' Literal.String.Single +"'" Literal.String.Single +'\n\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'f7a39418-72ca-4bf2-bc7e-ba9df67a4707' Name.Variable +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'0-0-0-0-0' Name.Variable +' ' Text.Whitespace +'run' Keyword.Constant +'\n\nexecute' Name.Builtin +' ' Text.Whitespace +'store' Keyword.Constant +' ' Text.Whitespace +'result' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'#fakeplayer' Name.Variable.Magic +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'store' Keyword.Constant +' ' Text.Whitespace +'result' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'#fake.player' Name.Variable.Magic +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'store' Keyword.Constant +' ' Text.Whitespace +'result' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'#fake_player' Name.Variable.Magic +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'store' Keyword.Constant +' ' Text.Whitespace +'result' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'$fakeplayer' Name.Variable.Magic +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'store' Keyword.Constant +' ' Text.Whitespace +'result' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'%fakeplayer' Name.Variable.Magic +'\n\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@b' Name.Variable +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'\n\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'tag' Name.Attribute +'=' Punctuation +'foo' Name.Tag +']' Punctuation +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'tag' Name.Attribute +'=!' Punctuation +'foo' Name.Tag +']' Punctuation +'\n\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'sort' Name.Attribute +'=' Punctuation +'nearest' Name.Tag +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'gamemode' Name.Attribute +'=' Punctuation +'survival' Name.Tag +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'gamemode' Name.Attribute +'=!' Punctuation +'creative' Name.Tag +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'tag' Name.Attribute +'=' Punctuation +'foo' Name.Tag +',' Punctuation +'tag' Name.Attribute +'=' Punctuation +'bar' Name.Tag +',' Punctuation +'tag' Name.Attribute +'=!' Punctuation +'baz' Name.Tag +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\n\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'15' Literal.Number.Float +']' Punctuation +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'1.5' Literal.Number.Float +']' Punctuation +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'.5' Literal.Number.Float +']' Punctuation +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'-.25' Literal.Number.Float +']' Punctuation +'\n\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'100' Literal.Number.Float +']' Punctuation +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'..' Literal +'10' Literal.Number.Float +']' Punctuation +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'11' Literal.Number.Float +'..' Literal +'19' Literal.Number.Float +']' Punctuation +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'20' Literal.Number.Float +'..' Literal +']' Punctuation +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'0.5' Literal.Number.Float +']' Punctuation +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'..' Literal +'0.1' Literal.Number.Float +']' Punctuation +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'0.2' Literal.Number.Float +'..' Literal +'0.8' Literal.Number.Float +']' Punctuation +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'0.9' Literal.Number.Float +'..' Literal +']' Punctuation +'\n\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'type' Name.Attribute +'=' Punctuation +'minecraft:bat' Name.Tag +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'type' Name.Attribute +'=!' Punctuation +'minecraft:cow' Name.Tag +',' Punctuation +'type' Name.Attribute +'=!' Punctuation +'minecraft:pig' Name.Tag +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'type' Name.Attribute +'=' Punctuation +'#minecraft:skeletons' Name.Tag +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'type' Name.Attribute +'=!' Punctuation +'#minecraft:skeletons' Name.Tag +',' Punctuation +'type' Name.Attribute +'=!' Punctuation +'minecraft:zombie' Name.Tag +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\n\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'tag' Name.Attribute +'=' Punctuation +'my.tag' Name.Tag +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\n\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'name' Name.Attribute +'=' Punctuation +'"' Literal.String.Double +'hello world' Literal.String.Double +'"' Literal.String.Double +']' Punctuation +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'name' Name.Attribute +'=' Punctuation +'"' Literal.String.Double +'escape ' Literal.String.Double +'\\"' Literal.String.Escape +' me' Literal.String.Double +'"' Literal.String.Double +']' Punctuation +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'name' Name.Attribute +'=' Punctuation +'"' Literal.String.Double +'how, about, commas ?' Literal.String.Double +'"' Literal.String.Double +']' Punctuation +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'name' Name.Attribute +'=' Punctuation +'"' Literal.String.Double +'and [braces] ?' Literal.String.Double +'"' Literal.String.Double +']' Punctuation +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'run' Keyword.Constant +'\n\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@e' Name.Variable +'[' Punctuation +'nbt' Name.Attribute +'=' Punctuation +'{' Punctuation +' ' Text.Whitespace +'PortalCooldown' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'0' Literal.Number.Float +' ' Text.Whitespace +'}' Punctuation +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@e' Name.Variable +'[' Punctuation +'nbt' Name.Attribute +'=' Punctuation +'{' Punctuation +' ' Text.Whitespace +'Item' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'{' Punctuation +'id' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'"' Literal.String.Double +'minecraft:diamond' Literal.String.Double +'"' Literal.String.Double +',' Punctuation +' ' Text.Whitespace +'Count' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'64' Literal.Number.Float +' ' Text.Whitespace +'}' Punctuation +' ' Text.Whitespace +'}' Punctuation +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\n\nexecute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'foo' Keyword.Constant +' ' Text.Whitespace +'<' Operator +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'bar' Keyword.Constant +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'foo' Keyword.Constant +' ' Text.Whitespace +'<' Operator +'=' Operator +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'bar' Keyword.Constant +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'foo' Keyword.Constant +' ' Text.Whitespace +'=' Operator +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'bar' Keyword.Constant +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'foo' Keyword.Constant +' ' Text.Whitespace +'>' Operator +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'bar' Keyword.Constant +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'foo' Keyword.Constant +' ' Text.Whitespace +'>' Operator +'=' Operator +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'bar' Keyword.Constant +' ' Text.Whitespace +'run' Keyword.Constant +'\n\ndata' Name.Builtin +' ' Text.Whitespace +'get' Keyword.Constant +' ' Text.Whitespace +'entity' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'SelectedItem.tag.display.Name' Keyword.Constant +'\n' Text.Whitespace + +'data' Name.Builtin +' ' Text.Whitespace +'get' Keyword.Constant +' ' Text.Whitespace +'entity' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'Inventory' Keyword.Constant +'[' Punctuation +'0' Literal.Number.Integer +']' Punctuation +'\n' Text.Whitespace + +'data' Name.Builtin +' ' Text.Whitespace +'get' Keyword.Constant +' ' Text.Whitespace +'entity' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'Inventory' Keyword.Constant +'[' Punctuation +'{' Punctuation +'id' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'"' Literal.String.Double +'minecraft:diamond' Literal.String.Double +'"' Literal.String.Double +'}' Punctuation +']' Punctuation +'.' Operator +'Count' Keyword.Constant +'\n' Text.Whitespace + +'data' Name.Builtin +' ' Text.Whitespace +'get' Keyword.Constant +' ' Text.Whitespace +'entity' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'Inventory' Keyword.Constant +'[' Punctuation +']' Punctuation +'.' Operator +'tag' Keyword.Constant +'{' Punctuation +'custom' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'true' Name.Tag +'}' Punctuation +'.' Operator +'display.Name' Keyword.Constant +'\n\n' Text.Whitespace + +'data' Name.Builtin +' ' Text.Whitespace +'merge' Keyword.Constant +' ' Text.Whitespace +'entity' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'{' Punctuation +' ' Text.Whitespace +'foo' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'true' Name.Tag +',' Punctuation +' ' Text.Whitespace +'bar' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'1234' Literal.Number.Float +' ' Text.Whitespace +'}' Punctuation +'\n' Text.Whitespace + +'data' Name.Builtin +' ' Text.Whitespace +'modify' Keyword.Constant +' ' Text.Whitespace +'block' Keyword.Constant +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'RecordItem.tag' Keyword.Constant +' ' Text.Whitespace +'set' Keyword.Constant +' ' Text.Whitespace +'value' Keyword.Constant +' ' Text.Whitespace +'{' Punctuation +' ' Text.Whitespace +'messages' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'[' Punctuation +'hi' Name.Attribute +',' Punctuation +' ' Text.Whitespace +'bye' Name.Attribute +']' Punctuation +' ' Text.Whitespace +'}' Punctuation +'\n' Text.Whitespace + +'data' Name.Builtin +' ' Text.Whitespace +'modify' Keyword.Constant +' ' Text.Whitespace +'block' Keyword.Constant +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'~' Operator +' ' Text.Whitespace +'RecordItem.tag.messages' Keyword.Constant +' ' Text.Whitespace +'append' Keyword.Constant +' ' Text.Whitespace +'value' Keyword.Constant +' ' Text.Whitespace +'[' Punctuation +' ' Text.Whitespace +'{' Punctuation +' ' Text.Whitespace +'message' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'"' Literal.String.Double +'hello world' Literal.String.Double +'"' Literal.String.Double +' ' Text.Whitespace +'}' Punctuation +' ' Text.Whitespace +']' Punctuation +'\n\n' Text.Whitespace + +'tellraw' Name.Builtin +' ' Text.Whitespace +'@a' Name.Variable +' ' Text.Whitespace +'{' Punctuation +'"' Name.Attribute +'text' Name.Attribute +'"' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'"' Literal.String.Double +'hello world' Literal.String.Double +'"' Literal.String.Double +',' Punctuation +' ' Text.Whitespace +'"' Name.Attribute +'color' Name.Attribute +'"' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'"' Literal.String.Double +'blue' Literal.String.Double +'"' Literal.String.Double +'}' Punctuation +'\n' Text.Whitespace + +'tellraw' Name.Builtin +' ' Text.Whitespace +'@a' Name.Variable +' ' Text.Whitespace +'[' Punctuation +'{' Punctuation +'"' Name.Attribute +'text' Name.Attribute +'"' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'"' Literal.String.Double +'hello' Literal.String.Double +'"' Literal.String.Double +',' Punctuation +' ' Text.Whitespace +'"' Name.Attribute +'color' Name.Attribute +'"' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'"' Literal.String.Double +'blue' Literal.String.Double +'"' Literal.String.Double +'}' Punctuation +',' Punctuation +' ' Text.Whitespace +'{' Punctuation +'"' Name.Attribute +'text' Name.Attribute +'"' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'"' Literal.String.Double +'world' Literal.String.Double +'"' Literal.String.Double +',' Punctuation +' ' Text.Whitespace +'"' Name.Attribute +'color' Name.Attribute +'"' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'"' Literal.String.Double +'blue' Literal.String.Double +'"' Literal.String.Double +'}' Punctuation +']' Punctuation +'\n\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'scores' Name.Attribute +'=' Punctuation +'{' Punctuation +'myscore' Name.Attribute +'=' Punctuation +'10' Literal.Number.Float +'}' Punctuation +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'scores' Name.Attribute +'=' Punctuation +'{' Punctuation +'myscore' Name.Attribute +'=' Punctuation +'10' Literal.Number.Float +'..' Literal +'12' Literal.Number.Float +'}' Punctuation +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'scores' Name.Attribute +'=' Punctuation +'{' Punctuation +'foo' Name.Attribute +'=' Punctuation +'10' Literal.Number.Float +',' Punctuation +' ' Text.Whitespace +'bar' Name.Attribute +'=' Punctuation +'1' Literal.Number.Float +'..' Literal +'5' Literal.Number.Float +',' Punctuation +' ' Text.Whitespace +'baz' Name.Attribute +'=' Punctuation +'..' Literal +'0' Literal.Number.Float +'}' Punctuation +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\n\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'advancements' Name.Attribute +'=' Punctuation +'{' Punctuation +'minecraft:story/form_obsidian' Name.Attribute +'=' Punctuation +'true' Name.Tag +'}' Punctuation +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'advancements' Name.Attribute +'=' Punctuation +'{' Punctuation +'minecraft:story/obtain_armor' Name.Attribute +'=' Punctuation +'{' Punctuation +'iron_helmet' Name.Attribute +'=' Punctuation +'true' Name.Tag +'}' Punctuation +'}' Punctuation +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'advancements' Name.Attribute +'=' Punctuation +'{' Punctuation +'minecraft:story/obtain_armor' Name.Attribute +'=' Punctuation +'{' Punctuation +'iron_helmet' Name.Attribute +'=' Punctuation +'true' Name.Tag +',' Punctuation +' ' Text.Whitespace +'gold_helmet' Name.Attribute +'=' Punctuation +'false' Name.Tag +'}' Punctuation +'}' Punctuation +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'advancements' Name.Attribute +'=' Punctuation +'{' Punctuation +'minecraft:story/form_obsidian' Name.Attribute +'=' Punctuation +'true' Name.Tag +',' Punctuation +' ' Text.Whitespace +'minecraft:story/follow_ender_eye' Name.Attribute +'=' Punctuation +'true' Name.Tag +'}' Punctuation +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\nexecute' Name.Builtin +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +'[' Punctuation +'advancements' Name.Attribute +'=' Punctuation +'{' Punctuation +'minecraft:story/form_obsidian' Name.Attribute +'=' Punctuation +'{' Punctuation +'foo' Name.Attribute +'=' Punctuation +'true' Name.Tag +',' Punctuation +' ' Text.Whitespace +'bar' Name.Attribute +'=' Punctuation +'false' Name.Tag +'}' Punctuation +',' Punctuation +'minecraft:story/follow_ender_eye' Name.Attribute +'=' Punctuation +'{' Punctuation +'foo' Name.Attribute +'=' Punctuation +'false' Name.Tag +',' Punctuation +' ' Text.Whitespace +'bar' Name.Attribute +'=' Punctuation +'true' Name.Tag +'}' Punctuation +'}' Punctuation +']' Punctuation +' ' Text.Whitespace +'run' Keyword.Constant +'\n\ngive' Name.Builtin +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'diamond_sword' Keyword.Constant +'{' Punctuation +'display' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'{' Punctuation +'Name' Name.Attribute +':' Punctuation +' ' Text.Whitespace +"'" Literal.String.Single +'"My Custom Sword"' Literal.String.Single +"'" Literal.String.Single +'}' Punctuation +'}' Punctuation +'\n' Text.Whitespace + +'give' Name.Builtin +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'minecraft:diamond_sword' Name.Function +'{' Punctuation +'display' Name.Attribute +':' Punctuation +' ' Text.Whitespace +'{' Punctuation +'Name' Name.Attribute +':' Punctuation +' ' Text.Whitespace +"'" Literal.String.Single +'"My Custom Sword"' Literal.String.Single +"'" Literal.String.Single +'}' Punctuation +'}' Punctuation +'\n\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'foo' Keyword.Constant +' ' Text.Whitespace +'<' Operator +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'bar' Keyword.Constant +' ' Text.Whitespace +'run' Keyword.Constant +' say' Name.Builtin +' ' Text.Whitespace +'execute' Keyword.Constant +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'foo' Keyword.Constant +' ' Text.Whitespace +'<' Operator +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'bar' Keyword.Constant +' ' Text.Whitespace +'run' Keyword.Constant +' say' Name.Builtin +'\n' Text.Whitespace + +'execute' Name.Builtin +' ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'score' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'foo' Keyword.Constant +' ' Text.Whitespace +'<' Operator +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'bar' Keyword.Constant +' ' Text.Whitespace +'run' Keyword.Constant +' say' Name.Builtin +' ' Text.Whitespace +'hello' Keyword.Constant +' ' Text.Whitespace +'@e' Name.Variable +'[' Punctuation +'tag' Name.Attribute +'=' Punctuation +'baz' Name.Tag +',' Punctuation +' ' Text.Whitespace +'sort' Name.Attribute +'=' Punctuation +'nearest' Name.Tag +',' Punctuation +' ' Text.Whitespace +'limit' Name.Attribute +'=' Punctuation +'1' Literal.Number.Float +']' Punctuation +' ' Text.Whitespace +'how' Keyword.Constant +' ' Text.Whitespace +'are' Keyword.Constant +' ' Text.Whitespace +'you' Keyword.Constant +'?' Operator +'\n\n' Text.Whitespace + +'execute' Name.Builtin +'\n ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@a' Name.Variable +' ' Text.Whitespace +'# For each "player",' Comment.Single +'\n ' Text.Whitespace +'at' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'# start at their feet.' Comment.Single +'\n ' Text.Whitespace +'anchored' Keyword.Constant +' ' Text.Whitespace +'eyes' Keyword.Constant +' ' Text.Whitespace +'# Looking through their eyes,' Comment.Single +'\n ' Text.Whitespace +'facing' Keyword.Constant +' ' Text.Whitespace +'0' Literal.Number.Float +' ' Text.Whitespace +'0' Literal.Number.Float +' ' Text.Whitespace +'0' Literal.Number.Float +' ' Text.Whitespace +'# face perfectly at the target' Comment.Single +'\n ' Text.Whitespace +'anchored' Keyword.Constant +' ' Text.Whitespace +'feet' Keyword.Constant +' ' Text.Whitespace +'# (go back to the feet)' Comment.Single +'\n ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'^' Operator +' ' Text.Whitespace +'^' Operator +' ' Text.Whitespace +'^' Operator +'1' Literal.Number.Float +' ' Text.Whitespace +'# and move one block forward.' Comment.Single +'\n ' Text.Whitespace +'rotated' Keyword.Constant +' ' Text.Whitespace +'as' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +' ' Text.Whitespace +'# Face the direction the player' Comment.Single +'\n ' Text.Whitespace +'# is actually facing,' Comment.Single +'\n ' Text.Whitespace +'positioned' Keyword.Constant +' ' Text.Whitespace +'^' Operator +' ' Text.Whitespace +'^' Operator +' ' Text.Whitespace +'^' Operator +'-1' Literal.Number.Float +' ' Text.Whitespace +'# and move one block back.' Comment.Single +'\n ' Text.Whitespace +'if' Keyword.Constant +' ' Text.Whitespace +'entity' Keyword.Constant +' ' Text.Whitespace +'@s' Name.Variable +'[' Punctuation +'distance' Name.Attribute +'=' Punctuation +'..' Literal +'0.6' Literal.Number.Float +']' Punctuation +' ' Text.Whitespace +"# Check if we're close to the" Comment.Single +'\n ' Text.Whitespace +"# player's feet." Comment.Single +'\n ' Text.Whitespace +'run' Keyword.Constant +'\n say' Name.Builtin +' ' Text.Whitespace +'"' Literal.String.Double +"I'm facing the target!" Literal.String.Double +'"' Literal.String.Double +'\n' Text.Whitespace |
