tree-sitter-mcfunction-lang

1.3.10 • Public • Published

tree-sitter-mcfunction-lang

A tree sitter grammar for Minecraft functions

Used in the mcfunction-lang Atom package.

Examples

say hi
command
> command_name
> identifier

give @a[tag=foo] diamond_sword{Damage: 100} 128
command
> command_name
> selector
  > selector_option_section
    > selector_option
      > selector_key
      > selector_value
  > item
    > identifier
    > item_nbt
      > nbt_object
        > nbt_object_key
          > nbt_identifier
        > nbt_object_value
          > nbt_number
            > number
> number

setblock ~ ~ ~ chest[facing=north]{List:[{foo:"bar"}]}
command
> command_name
> location
  > x: coordinate
  > y: coordinate
  > z: coordinate
> item
  > identifier
  > item_state
    > state_key
    > state_value
  > item_nbt
    > nbt_object
      > nbt_object_key
        > nbt_identifier
      > nbt_object_value
        > nbt
          > nbt_array
            > nbt_object_value
              > nbt
                > nbt_object
                  > nbt_object_key
                    > nbt_identifier
                  > nbt_object_value
                    > string

Readme

Keywords

none

Package Sidebar

Install

npm i tree-sitter-mcfunction-lang

Weekly Downloads

0

Version

1.3.10

License

MIT

Unpacked Size

315 kB

Total Files

22

Last publish

Collaborators

  • theusaf