Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Commit 51f8150

Browse files
committed
Update snapshots
1 parent 1e1782f commit 51f8150

File tree

60 files changed

+306
-272
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+306
-272
lines changed

tests/snapshots/examples__build_basic_embed__0.pack.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"functions": [
3636
{
3737
"function": "minecraft:set_nbt",
38-
"tag": "{custom: {value: \"owo\"}}"
38+
"tag": "{custom: {value: 'owo'}}"
3939
}
4040
]
4141
}
@@ -59,7 +59,7 @@
5959
"functions": [
6060
{
6161
"function": "minecraft:set_nbt",
62-
"tag": "{custom: {item: \"owo\", json_text_component: '{\"function\": \"minecraft:set_nbt\", \"tag\": \"{who_cares: \\\\\"owo\\\\\"}\", \"text\": \"nonsense\", \"color\": \"red\"}'}}"
62+
"tag": "{custom: {item: 'owo', json_text_component: '{\"function\": \"minecraft:set_nbt\", \"tag\": \"{who_cares: \\'owo\\'}\", \"text\": \"nonsense\", \"color\": \"red\"}'}}"
6363
}
6464
]
6565
}

tests/snapshots/examples__build_basic_formatting__0.pack.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919

2020
```mcfunction
2121
say this is a test
22-
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond",Count:64b}}] at @s run setblock ~ ~ ~ repeater[delay=3,facing=south]
23-
tellraw @a ["",{"text":"hello","color":"red"},"not ascii: \u00b6"]
22+
execute as @a[nbt={SelectedItem:{id:'minecraft:diamond',Count:64b}}] at @s run setblock ~ ~ ~ repeater[delay=3,facing=south]
23+
tellraw @a ['',{text:'hello',color:'red'},'not ascii: \u00b6']
2424
say goodbye
2525
```
2626

2727
`@function demo:dense`
2828

2929
```mcfunction
3030
say this is a test
31-
execute as @a[nbt={SelectedItem: {id: "minecraft:diamond", Count: 64b}}] at @s run setblock ~ ~ ~ repeater[delay=3, facing=south]
32-
tellraw @a ["", {"text": "hello", "color": "red"}, "not ascii: \u00b6"]
31+
execute as @a[nbt={SelectedItem: {id: 'minecraft:diamond', Count: 64b}}] at @s run setblock ~ ~ ~ repeater[delay=3, facing=south]
32+
tellraw @a ['', {text: 'hello', color: 'red'}, 'not ascii: \u00b6']
3333
say goodbye
3434
```
3535

@@ -39,12 +39,12 @@ say goodbye
3939
say this is a test
4040
4141
# Random stuff
42-
execute as @a[nbt={SelectedItem: {id: "minecraft:diamond", Count: 64b}}] at @s run setblock ~ ~ ~ repeater[delay=3, facing=south]
42+
execute as @a[nbt={SelectedItem: {id: 'minecraft:diamond', Count: 64b}}] at @s run setblock ~ ~ ~ repeater[delay=3, facing=south]
4343
4444
4545
4646
47-
tellraw @a ["", {"text": "hello", "color": "red"}, "not ascii: \u00b6"]
47+
tellraw @a ['', {text: 'hello', color: 'red'}, 'not ascii: \u00b6']
4848
4949
5050
@@ -58,12 +58,12 @@ say goodbye
5858
say this is a test
5959
6060
# Random stuff
61-
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond",Count:64b}}] at @s run setblock ~ ~ ~ repeater[delay=3, facing=south]
61+
execute as @a[nbt={SelectedItem:{id:'minecraft:diamond',Count:64b}}] at @s run setblock ~ ~ ~ repeater[delay=3, facing=south]
6262
6363
6464
6565
66-
tellraw @a ["", {"color": "red", "text": "hello"}, "not ascii: ¶"]
66+
tellraw @a ['',{text:'hello',color:'red'},'not ascii: \u00b6']
6767
6868
6969

tests/snapshots/examples__build_basic_json__0.pack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
`@function demo:foo`
1919

2020
```mcfunction
21-
tellraw @p {"text": "empty"}
21+
tellraw @p {text: 'empty'}
2222
```
2323

2424
`@loot_table demo:foo`

tests/snapshots/examples__build_basic_macro_line__0.pack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
`@function demo:foo`
1919

2020
```mcfunction
21-
function demo:thing {name: "steve", eval: "kill @a"}
21+
function demo:thing {name: 'steve', eval: 'kill @a'}
2222
```
2323

2424
`@function demo:thing`

tests/snapshots/examples__build_basic_nested_yaml__0.pack.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
`@function demo:foo`
1919

2020
```mcfunction
21-
tellraw @a ["", {"text": "hello", "color": "red"}]
22-
tellraw @a ["", {"text": "hello", "color": "red"}]
23-
summon armor_stand ~ ~ ~ {Tags: ["position_history", "new"], Invisible: 1b, Marker: 1b}
24-
summon armor_stand ~ ~ ~ {Tags: ["position_history", "new"], Invisible: 1b, Marker: 1b}
25-
tellraw @s {"text": "Hover me!", "hoverEvent": {"action": "show_text", "value": "Hi!"}}
26-
tellraw @a {"text": "Hello # there"}
27-
tellraw @a {"text": "Hello\" # \"there"}
28-
data merge storage demo:foo {custom_stuff: {list_of_lists: [[0, 0, 0], [1, 1, 1]], normal_lists: [[0, 0, 0], [1, 1, 1]]}, something_else: [{type: "foo", foo: 42}, {type: "bar", bar: 99}], byte_array: [B; 1B, 1B, 0B, 1B], item1: {id: "player_head", count: 1b, components: {"minecraft:profile": "herobrine"}}, item2: {id: "player_head", count: 1b, components: {"minecraft:profile": "herobrine"}}}
21+
tellraw @a ['', {text: 'hello', color: 'red'}]
22+
tellraw @a ['', {text: 'hello', color: 'red'}]
23+
summon armor_stand ~ ~ ~ {Tags: ['position_history', 'new'], Invisible: 1b, Marker: 1b}
24+
summon armor_stand ~ ~ ~ {Tags: ['position_history', 'new'], Invisible: 1b, Marker: 1b}
25+
tellraw @s {text: 'Hover me!', hoverEvent: {action: 'show_text', value: 'Hi!'}}
26+
tellraw @a {text: 'Hello # there'}
27+
tellraw @a {text: 'Hello" # "there'}
28+
data merge storage demo:foo {custom_stuff: {list_of_lists: [[0, 0, 0], [1, 1, 1]], normal_lists: [[0, 0, 0], [1, 1, 1]]}, something_else: [{type: 'foo', foo: 42}, {type: 'bar', bar: 99}], byte_array: [B; 1b, 1b, 0b, 1b], item1: {id: 'player_head', count: 1b, components: {"minecraft:profile": 'herobrine'}}, item2: {id: 'player_head', count: 1b, components: {"minecraft:profile": 'herobrine'}}}
2929
```

tests/snapshots/examples__build_basic_preserve__0.pack.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2323
2424
# First command
25-
execute as @a at @s align xyz if block ~ ~ ~ wool[foo=bar] run summon armor_stand ~ ~ ~ {Tags: ["position_history", "new"], Invisible: 1b, Marker: 1b}
25+
execute as @a at @s align xyz if block ~ ~ ~ wool[foo=bar] run summon armor_stand ~ ~ ~ {Tags: ['position_history', 'new'], Invisible: 1b, Marker: 1b}
2626
2727
2828
@@ -50,7 +50,7 @@ execute as @a at @s align xyz if block ~ ~ ~ wool[foo=bar] run summon armor_stan
5050
# consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
5151
# cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
5252
# non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
53-
tellraw @s {"text": "Hover me!", "hoverEvent": {"action": "show_text", "value": "Hi!"}}
53+
tellraw @s {text: 'Hover me!', hoverEvent: {action: 'show_text', value: 'Hi!'}}
5454
5555
# The hover event is cool
5656
@@ -84,7 +84,7 @@ execute as @a at @s if block ~ ~-1 ~ #wool run give @s stone{display: {Name: '[{
8484
execute if block ~ ~ ~ #namespace:tag if entity @s[tag=foo]
8585
8686
87-
tellraw @a {"text": "Hello # there"}
87+
tellraw @a {text: 'Hello # there'}
8888
8989
9090

tests/snapshots/examples__build_kitchen_sink__0.pack.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ execute as @a run function demo:with_tag
2525
`@function demo:implicit_execute`
2626

2727
```mcfunction
28-
execute as @a at @s align xyz run summon armor_stand ~ ~ ~ {Tags: ["position_history", "new"], Invisible: 1b, Marker: 1b}
28+
execute as @a at @s align xyz run summon armor_stand ~ ~ ~ {Tags: ['position_history', 'new'], Invisible: 1b, Marker: 1b}
2929
execute if score @s obj matches 2 run say hi
3030
```
3131

3232
`@function demo:messages`
3333

3434
```mcfunction
3535
tellraw @p {"text": "hello", "color": "red"}
36-
data modify storage imp:io words set value ["alpha", "beta", "gamma", "delta"]
36+
data modify storage imp:io words set value ['alpha', 'beta', 'gamma', 'delta']
3737
```
3838

3939
`@function demo:nesting`

tests/snapshots/parse__argument_examples_minecraft_block_predicate_0_4__0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ minecraft:block_predicate 0 4
44
---
55
#stone[foo=bar]{baz:nbt}
66
---
7-
#stone[foo=bar]{baz: "nbt"}
7+
#stone[foo=bar]{baz: 'nbt'}
88
---
99
<class 'mecha.ast.AstBlock'>
1010
location: SourceLocation(pos=0, lineno=1, colno=1)

tests/snapshots/parse__argument_examples_minecraft_block_state_0_3__0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ minecraft:block_state 0 3
44
---
55
foo{bar:baz}
66
---
7-
foo{bar: "baz"}
7+
foo{bar: 'baz'}
88
---
99
<class 'mecha.ast.AstBlock'>
1010
location: SourceLocation(pos=0, lineno=1, colno=1)

tests/snapshots/parse__argument_examples_minecraft_component_0_0__0.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ minecraft:component 0 0
44
---
55
"hello world"
66
---
7-
"hello world"
7+
'hello world'
88
---
9-
<class 'mecha.ast.AstJsonValue'>
9+
<class 'mecha.ast.AstNbtValue'>
1010
location: SourceLocation(pos=0, lineno=1, colno=1)
1111
end_location: SourceLocation(pos=13, lineno=1, colno=14)
12-
value: 'hello world'
12+
value: String('hello world')

0 commit comments

Comments
 (0)