Skip to content

Commit f1700c0

Browse files
committed
1 parent a17ba8f commit f1700c0

File tree

9 files changed

+127
-28
lines changed

9 files changed

+127
-28
lines changed

packages/bolt/tests/snapshots/bolt__parse_230__0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
macro foo:
22
pass
3-
#>ERROR Expected colon, literal 'advancement', literal 'align', literal 'anchored', literal 'append', literal 'as' or 186 other tokens but got literal 'foo'.
3+
#>ERROR Expected colon, literal 'advancement', literal 'align', literal 'anchored', literal 'append', literal 'as' or 187 other tokens but got literal 'foo'.
44
# line 3, column 7
55
# 2 | pass
66
# 3 | as @p foo

packages/bolt/tests/snapshots/bolt__parse_305__0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#>ERROR Expected literal 'advancement', literal 'align', literal 'anchored', literal 'append', literal 'as', literal 'at' or 203 other tokens but got literal 'foo'.
1+
#>ERROR Expected literal 'advancement', literal 'align', literal 'anchored', literal 'append', literal 'as', literal 'at' or 204 other tokens but got literal 'foo'.
22
# line 1, column 11
33
# 1 | as @a run foo = "bar"
44
# : ^^^

packages/bolt/tests/snapshots/bolt__parse_352__0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
macro hello thing=subcommand:
22
pass
3-
#>ERROR Expected assignment, literal 'advancement', literal 'align', literal 'anchored', literal 'append', literal 'as' or 205 other tokens but got literal 'print(123)'.
3+
#>ERROR Expected assignment, literal 'advancement', literal 'align', literal 'anchored', literal 'append', literal 'as' or 206 other tokens but got literal 'print(123)'.
44
# line 3, column 7
55
# 2 | pass
66
# 3 | hello print(123)

packages/bolt/tests/snapshots/bolt__parse_358__0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#>ERROR Expected literal 'advancement', literal 'align', literal 'anchored', literal 'append', literal 'as', literal 'at' or 203 other tokens but got literal '"not'.
1+
#>ERROR Expected literal 'advancement', literal 'align', literal 'anchored', literal 'append', literal 'as', literal 'at' or 204 other tokens but got literal '"not'.
22
# line 1, column 13
33
# 1 | execute run "not docstring"
44
# : ^^^^

packages/bolt/tests/snapshots/bolt__parse_48__0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
1 * 2
2-
#>ERROR Expected bracket '[', curly '{', decorator, docstring, ellipsis, false or 216 other tokens but got literal '*'.
2+
#>ERROR Expected bracket '[', curly '{', decorator, docstring, ellipsis, false or 217 other tokens but got literal '*'.
33
# line 2, column 1
44
# 1 | 1 * 2
55
# 2 | * 3

packages/bolt/tests/snapshots/bolt__parse_99__0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#>ERROR Expected colon, literal 'advancement', literal 'align', literal 'anchored', literal 'append', literal 'as' or 186 other tokens but got literal 'for'.
1+
#>ERROR Expected colon, literal 'advancement', literal 'align', literal 'anchored', literal 'append', literal 'as' or 187 other tokens but got literal 'for'.
22
# line 1, column 7
33
# 1 | at @s for i in "foo":
44
# : ^^^

packages/bolt/tests/snapshots/spec__prototypes__0.json

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,8 @@
11341134
"execute:experience:set:target:amount:points",
11351135
"execute:facing:entity:targets:anchor:subcommand",
11361136
"execute:facing:pos:subcommand",
1137+
"execute:fetchprofile:id:id",
1138+
"execute:fetchprofile:name:name",
11371139
"execute:fill:from:to:block",
11381140
"execute:fill:from:to:block:destroy",
11391141
"execute:fill:from:to:block:hollow",
@@ -1181,6 +1183,8 @@
11811183
"execute:game_event_tag:name:content",
11821184
"execute:gamemode:gamemode",
11831185
"execute:gamemode:gamemode:target",
1186+
"execute:gamerule:allowEnteringNetherUsingPortals",
1187+
"execute:gamerule:allowEnteringNetherUsingPortals:value",
11841188
"execute:gamerule:allowFireTicksAwayFromPlayer",
11851189
"execute:gamerule:allowFireTicksAwayFromPlayer:value",
11861190
"execute:gamerule:announceAdvancements",
@@ -1189,6 +1193,8 @@
11891193
"execute:gamerule:blockExplosionDropDecay:value",
11901194
"execute:gamerule:commandBlockOutput",
11911195
"execute:gamerule:commandBlockOutput:value",
1196+
"execute:gamerule:commandBlocksEnabled",
1197+
"execute:gamerule:commandBlocksEnabled:value",
11921198
"execute:gamerule:commandModificationBlockLimit",
11931199
"execute:gamerule:commandModificationBlockLimit:value",
11941200
"execute:gamerule:disableElytraMovementCheck",
@@ -1269,6 +1275,8 @@
12691275
"execute:gamerule:playersSleepingPercentage:value",
12701276
"execute:gamerule:projectilesCanBreakBlocks",
12711277
"execute:gamerule:projectilesCanBreakBlocks:value",
1278+
"execute:gamerule:pvp",
1279+
"execute:gamerule:pvp:value",
12721280
"execute:gamerule:randomTickSpeed",
12731281
"execute:gamerule:randomTickSpeed:value",
12741282
"execute:gamerule:reducedDebugInfo",
@@ -1279,10 +1287,12 @@
12791287
"execute:gamerule:showDeathMessages:value",
12801288
"execute:gamerule:snowAccumulationHeight",
12811289
"execute:gamerule:snowAccumulationHeight:value",
1282-
"execute:gamerule:spawnChunkRadius",
1283-
"execute:gamerule:spawnChunkRadius:value",
1290+
"execute:gamerule:spawnMonsters",
1291+
"execute:gamerule:spawnMonsters:value",
12841292
"execute:gamerule:spawnRadius",
12851293
"execute:gamerule:spawnRadius:value",
1294+
"execute:gamerule:spawnerBlocksEnabled",
1295+
"execute:gamerule:spawnerBlocksEnabled:value",
12861296
"execute:gamerule:spectatorsGenerateChunks",
12871297
"execute:gamerule:spectatorsGenerateChunks:value",
12881298
"execute:gamerule:tntExplodes",
@@ -1741,12 +1751,12 @@
17411751
"execute:setblock:pos:block:strict",
17421752
"execute:setidletimeout:minutes",
17431753
"execute:setworldspawn:pos",
1744-
"execute:setworldspawn:pos:angle",
1754+
"execute:setworldspawn:pos:rotation",
17451755
"execute:shader:name:content",
17461756
"execute:shader_post:name:content",
17471757
"execute:spawnpoint:targets",
17481758
"execute:spawnpoint:targets:pos",
1749-
"execute:spawnpoint:targets:pos:angle",
1759+
"execute:spawnpoint:targets:pos:rotation",
17501760
"execute:spectate:target",
17511761
"execute:spectate:target:player",
17521762
"execute:spreadplayers:center:spreadDistance:maxRange:respectTeams:targets",
@@ -2075,6 +2085,8 @@
20752085
"experience:set:target:amount:points",
20762086
"facing:entity:targets:anchor:subcommand",
20772087
"facing:pos:subcommand",
2088+
"fetchprofile:id:id",
2089+
"fetchprofile:name:name",
20782090
"fill:from:to:block",
20792091
"fill:from:to:block:destroy",
20802092
"fill:from:to:block:hollow",
@@ -2126,6 +2138,8 @@
21262138
"game_event_tag:name:content",
21272139
"gamemode:gamemode",
21282140
"gamemode:gamemode:target",
2141+
"gamerule:allowEnteringNetherUsingPortals",
2142+
"gamerule:allowEnteringNetherUsingPortals:value",
21292143
"gamerule:allowFireTicksAwayFromPlayer",
21302144
"gamerule:allowFireTicksAwayFromPlayer:value",
21312145
"gamerule:announceAdvancements",
@@ -2134,6 +2148,8 @@
21342148
"gamerule:blockExplosionDropDecay:value",
21352149
"gamerule:commandBlockOutput",
21362150
"gamerule:commandBlockOutput:value",
2151+
"gamerule:commandBlocksEnabled",
2152+
"gamerule:commandBlocksEnabled:value",
21372153
"gamerule:commandModificationBlockLimit",
21382154
"gamerule:commandModificationBlockLimit:value",
21392155
"gamerule:disableElytraMovementCheck",
@@ -2214,6 +2230,8 @@
22142230
"gamerule:playersSleepingPercentage:value",
22152231
"gamerule:projectilesCanBreakBlocks",
22162232
"gamerule:projectilesCanBreakBlocks:value",
2233+
"gamerule:pvp",
2234+
"gamerule:pvp:value",
22172235
"gamerule:randomTickSpeed",
22182236
"gamerule:randomTickSpeed:value",
22192237
"gamerule:reducedDebugInfo",
@@ -2224,10 +2242,12 @@
22242242
"gamerule:showDeathMessages:value",
22252243
"gamerule:snowAccumulationHeight",
22262244
"gamerule:snowAccumulationHeight:value",
2227-
"gamerule:spawnChunkRadius",
2228-
"gamerule:spawnChunkRadius:value",
2245+
"gamerule:spawnMonsters",
2246+
"gamerule:spawnMonsters:value",
22292247
"gamerule:spawnRadius",
22302248
"gamerule:spawnRadius:value",
2249+
"gamerule:spawnerBlocksEnabled",
2250+
"gamerule:spawnerBlocksEnabled:value",
22312251
"gamerule:spectatorsGenerateChunks",
22322252
"gamerule:spectatorsGenerateChunks:value",
22332253
"gamerule:tntExplodes",
@@ -2716,13 +2736,13 @@
27162736
"setidletimeout:minutes",
27172737
"setworldspawn",
27182738
"setworldspawn:pos",
2719-
"setworldspawn:pos:angle",
2739+
"setworldspawn:pos:rotation",
27202740
"shader:name:content",
27212741
"shader_post:name:content",
27222742
"spawnpoint",
27232743
"spawnpoint:targets",
27242744
"spawnpoint:targets:pos",
2725-
"spawnpoint:targets:pos:angle",
2745+
"spawnpoint:targets:pos:rotation",
27262746
"spectate",
27272747
"spectate:target",
27282748
"spectate:target:player",

packages/mecha/src/mecha/resources/1_21.json

Lines changed: 79 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6359,6 +6359,35 @@
63596359
},
63606360
"required_level": 2
63616361
},
6362+
"fetchprofile": {
6363+
"type": "literal",
6364+
"children": {
6365+
"id": {
6366+
"type": "literal",
6367+
"children": {
6368+
"id": {
6369+
"type": "argument",
6370+
"executable": true,
6371+
"parser": "minecraft:uuid"
6372+
}
6373+
}
6374+
},
6375+
"name": {
6376+
"type": "literal",
6377+
"children": {
6378+
"name": {
6379+
"type": "argument",
6380+
"executable": true,
6381+
"parser": "brigadier:string",
6382+
"properties": {
6383+
"type": "greedy"
6384+
}
6385+
}
6386+
}
6387+
}
6388+
},
6389+
"required_level": 2
6390+
},
63626391
"fill": {
63636392
"type": "literal",
63646393
"children": {
@@ -6632,6 +6661,17 @@
66326661
"gamerule": {
66336662
"type": "literal",
66346663
"children": {
6664+
"allowEnteringNetherUsingPortals": {
6665+
"type": "literal",
6666+
"children": {
6667+
"value": {
6668+
"type": "argument",
6669+
"executable": true,
6670+
"parser": "brigadier:bool"
6671+
}
6672+
},
6673+
"executable": true
6674+
},
66356675
"allowFireTicksAwayFromPlayer": {
66366676
"type": "literal",
66376677
"children": {
@@ -6676,6 +6716,17 @@
66766716
},
66776717
"executable": true
66786718
},
6719+
"commandBlocksEnabled": {
6720+
"type": "literal",
6721+
"children": {
6722+
"value": {
6723+
"type": "argument",
6724+
"executable": true,
6725+
"parser": "brigadier:bool"
6726+
}
6727+
},
6728+
"executable": true
6729+
},
66796730
"commandModificationBlockLimit": {
66806731
"type": "literal",
66816732
"children": {
@@ -7120,6 +7171,17 @@
71207171
},
71217172
"executable": true
71227173
},
7174+
"pvp": {
7175+
"type": "literal",
7176+
"children": {
7177+
"value": {
7178+
"type": "argument",
7179+
"executable": true,
7180+
"parser": "brigadier:bool"
7181+
}
7182+
},
7183+
"executable": true
7184+
},
71237185
"randomTickSpeed": {
71247186
"type": "literal",
71257187
"children": {
@@ -7175,17 +7237,13 @@
71757237
},
71767238
"executable": true
71777239
},
7178-
"spawnChunkRadius": {
7240+
"spawnMonsters": {
71797241
"type": "literal",
71807242
"children": {
71817243
"value": {
71827244
"type": "argument",
71837245
"executable": true,
7184-
"parser": "brigadier:integer",
7185-
"properties": {
7186-
"max": 32,
7187-
"min": 0
7188-
}
7246+
"parser": "brigadier:bool"
71897247
}
71907248
},
71917249
"executable": true
@@ -7201,6 +7259,17 @@
72017259
},
72027260
"executable": true
72037261
},
7262+
"spawnerBlocksEnabled": {
7263+
"type": "literal",
7264+
"children": {
7265+
"value": {
7266+
"type": "argument",
7267+
"executable": true,
7268+
"parser": "brigadier:bool"
7269+
}
7270+
},
7271+
"executable": true
7272+
},
72047273
"spectatorsGenerateChunks": {
72057274
"type": "literal",
72067275
"children": {
@@ -10081,10 +10150,10 @@
1008110150
"pos": {
1008210151
"type": "argument",
1008310152
"children": {
10084-
"angle": {
10153+
"rotation": {
1008510154
"type": "argument",
1008610155
"executable": true,
10087-
"parser": "minecraft:angle"
10156+
"parser": "minecraft:rotation"
1008810157
}
1008910158
},
1009010159
"executable": true,
@@ -10103,10 +10172,10 @@
1010310172
"pos": {
1010410173
"type": "argument",
1010510174
"children": {
10106-
"angle": {
10175+
"rotation": {
1010710176
"type": "argument",
1010810177
"executable": true,
10109-
"parser": "minecraft:angle"
10178+
"parser": "minecraft:rotation"
1011010179
}
1011110180
},
1011210181
"executable": true,

packages/mecha/tests/snapshots/spec__prototypes__0.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,8 @@
653653
"experience:set:target:amount",
654654
"experience:set:target:amount:levels",
655655
"experience:set:target:amount:points",
656+
"fetchprofile:id:id",
657+
"fetchprofile:name:name",
656658
"fill:from:to:block",
657659
"fill:from:to:block:destroy",
658660
"fill:from:to:block:hollow",
@@ -684,6 +686,8 @@
684686
"function:name:with:storage:source:path",
685687
"gamemode:gamemode",
686688
"gamemode:gamemode:target",
689+
"gamerule:allowEnteringNetherUsingPortals",
690+
"gamerule:allowEnteringNetherUsingPortals:value",
687691
"gamerule:allowFireTicksAwayFromPlayer",
688692
"gamerule:allowFireTicksAwayFromPlayer:value",
689693
"gamerule:announceAdvancements",
@@ -692,6 +696,8 @@
692696
"gamerule:blockExplosionDropDecay:value",
693697
"gamerule:commandBlockOutput",
694698
"gamerule:commandBlockOutput:value",
699+
"gamerule:commandBlocksEnabled",
700+
"gamerule:commandBlocksEnabled:value",
695701
"gamerule:commandModificationBlockLimit",
696702
"gamerule:commandModificationBlockLimit:value",
697703
"gamerule:disableElytraMovementCheck",
@@ -772,6 +778,8 @@
772778
"gamerule:playersSleepingPercentage:value",
773779
"gamerule:projectilesCanBreakBlocks",
774780
"gamerule:projectilesCanBreakBlocks:value",
781+
"gamerule:pvp",
782+
"gamerule:pvp:value",
775783
"gamerule:randomTickSpeed",
776784
"gamerule:randomTickSpeed:value",
777785
"gamerule:reducedDebugInfo",
@@ -782,10 +790,12 @@
782790
"gamerule:showDeathMessages:value",
783791
"gamerule:snowAccumulationHeight",
784792
"gamerule:snowAccumulationHeight:value",
785-
"gamerule:spawnChunkRadius",
786-
"gamerule:spawnChunkRadius:value",
793+
"gamerule:spawnMonsters",
794+
"gamerule:spawnMonsters:value",
787795
"gamerule:spawnRadius",
788796
"gamerule:spawnRadius:value",
797+
"gamerule:spawnerBlocksEnabled",
798+
"gamerule:spawnerBlocksEnabled:value",
789799
"gamerule:spectatorsGenerateChunks",
790800
"gamerule:spectatorsGenerateChunks:value",
791801
"gamerule:tntExplodes",
@@ -1067,11 +1077,11 @@
10671077
"setidletimeout:minutes",
10681078
"setworldspawn",
10691079
"setworldspawn:pos",
1070-
"setworldspawn:pos:angle",
1080+
"setworldspawn:pos:rotation",
10711081
"spawnpoint",
10721082
"spawnpoint:targets",
10731083
"spawnpoint:targets:pos",
1074-
"spawnpoint:targets:pos:angle",
1084+
"spawnpoint:targets:pos:rotation",
10751085
"spectate",
10761086
"spectate:target",
10771087
"spectate:target:player",

0 commit comments

Comments
 (0)