* 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>
23 lines
No EOL
543 B
SNBT
23 lines
No EOL
543 B
SNBT
{
|
|
display: {
|
|
Name:'{"text":"My Epic Sword","color":"#8AA9FF","bold":true}',
|
|
Lore:['{"text":"Yep"}']
|
|
},
|
|
Unbreakable: true,
|
|
Damage: 20,
|
|
Enchantments: [
|
|
{id: "minecraft:sharpness", lvl:1s},
|
|
{id: "minecraft:sweeping", lvl:20s}
|
|
],
|
|
custom: {
|
|
UUID: [I;459130179,987513928,-1425663264,-175461800],
|
|
LongArray: [L; 112233L, 445566L],
|
|
ByteArray: [B; 1b, 2b, 3b]
|
|
Health: 10.0f,
|
|
Pos: [
|
|
1.2d,
|
|
3.4d,
|
|
5.6d
|
|
]
|
|
}
|
|
} |