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

Commit f20584d

Browse files
authored
feat: update command tree to 1.21.10 (#316)
1 parent 80149ac commit f20584d

File tree

2 files changed

+93
-14
lines changed

2 files changed

+93
-14
lines changed

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,

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)