Skip to content

Commit

Permalink
feat: update for 1.20.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Dec 6, 2023
1 parent d74babb commit 26ab5bb
Show file tree
Hide file tree
Showing 35 changed files with 470 additions and 40 deletions.
1 change: 1 addition & 0 deletions mecha/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ def get_default_parsers() -> Dict[str, Parser]:
),
"command:argument:minecraft:column_pos": delegate("column_pos"),
"command:argument:minecraft:component": MultilineParser(delegate("json")),
"command:argument:minecraft:style": MultilineParser(delegate("json")),
"command:argument:minecraft:dimension": delegate("resource_location"),
"command:argument:minecraft:entity": delegate("entity"),
"command:argument:minecraft:entity_anchor": delegate("entity_anchor"),
Expand Down
253 changes: 253 additions & 0 deletions mecha/resources/1_20.json
Original file line number Diff line number Diff line change
Expand Up @@ -4416,6 +4416,16 @@
}
}
},
"function": {
"type": "literal",
"children": {
"name": {
"type": "argument",
"parser": "minecraft:function",
"redirect": ["execute"]
}
}
},
"loaded": {
"type": "literal",
"children": {
Expand Down Expand Up @@ -5412,6 +5422,16 @@
}
}
},
"function": {
"type": "literal",
"children": {
"name": {
"type": "argument",
"parser": "minecraft:function",
"redirect": ["execute"]
}
}
},
"loaded": {
"type": "literal",
"children": {
Expand Down Expand Up @@ -6247,6 +6267,17 @@
},
"executable": true
},
"maxCommandForkCount": {
"type": "literal",
"children": {
"value": {
"type": "argument",
"executable": true,
"parser": "brigadier:integer"
}
},
"executable": true
},
"maxEntityCramming": {
"type": "literal",
"children": {
Expand Down Expand Up @@ -6291,6 +6322,28 @@
},
"executable": true
},
"playersNetherPortalCreativeDelay": {
"type": "literal",
"children": {
"value": {
"type": "argument",
"executable": true,
"parser": "brigadier:integer"
}
},
"executable": true
},
"playersNetherPortalDefaultDelay": {
"type": "literal",
"children": {
"value": {
"type": "argument",
"executable": true,
"parser": "brigadier:integer"
}
},
"executable": true
},
"playersSleepingPercentage": {
"type": "literal",
"children": {
Expand All @@ -6302,6 +6355,17 @@
},
"executable": true
},
"projectilesCanBreakBlocks": {
"type": "literal",
"children": {
"value": {
"type": "argument",
"executable": true,
"parser": "brigadier:bool"
}
},
"executable": true
},
"randomTickSpeed": {
"type": "literal",
"children": {
Expand Down Expand Up @@ -8482,6 +8546,13 @@
"return": {
"type": "literal",
"children": {
"fail": {
"type": "literal",
"executable": true
},
"run": {
"type": "literal"
},
"value": {
"type": "argument",
"executable": true,
Expand Down Expand Up @@ -8639,6 +8710,16 @@
"objective": {
"type": "argument",
"children": {
"displayautoupdate": {
"type": "literal",
"children": {
"value": {
"type": "argument",
"executable": true,
"parser": "brigadier:bool"
}
}
},
"displayname": {
"type": "literal",
"children": {
Expand All @@ -8649,6 +8730,36 @@
}
}
},
"numberformat": {
"type": "literal",
"children": {
"blank": {
"type": "literal",
"executable": true
},
"fixed": {
"type": "literal",
"children": {
"contents": {
"type": "argument",
"executable": true,
"parser": "minecraft:component"
}
}
},
"styled": {
"type": "literal",
"children": {
"style": {
"type": "argument",
"executable": true,
"parser": "minecraft:style"
}
}
}
},
"executable": true
},
"rendertype": {
"type": "literal",
"children": {
Expand Down Expand Up @@ -8727,6 +8838,82 @@
}
}
},
"display": {
"type": "literal",
"children": {
"name": {
"type": "literal",
"children": {
"targets": {
"type": "argument",
"children": {
"objective": {
"type": "argument",
"children": {
"name": {
"type": "argument",
"executable": true,
"parser": "minecraft:component"
}
},
"executable": true,
"parser": "minecraft:objective"
}
},
"parser": "minecraft:score_holder",
"properties": {
"amount": "multiple"
}
}
}
},
"numberformat": {
"type": "literal",
"children": {
"targets": {
"type": "argument",
"children": {
"objective": {
"type": "argument",
"children": {
"blank": {
"type": "literal",
"executable": true
},
"fixed": {
"type": "literal",
"children": {
"contents": {
"type": "argument",
"executable": true,
"parser": "minecraft:component"
}
}
},
"styled": {
"type": "literal",
"children": {
"style": {
"type": "argument",
"executable": true,
"parser": "minecraft:style"
}
}
}
},
"executable": true,
"parser": "minecraft:objective"
}
},
"parser": "minecraft:score_holder",
"properties": {
"amount": "multiple"
}
}
}
}
}
},
"enable": {
"type": "literal",
"children": {
Expand Down Expand Up @@ -9636,6 +9823,72 @@
}
}
},
"tick": {
"type": "literal",
"children": {
"freeze": {
"type": "literal",
"executable": true
},
"query": {
"type": "literal",
"executable": true
},
"rate": {
"type": "literal",
"children": {
"rate": {
"type": "argument",
"executable": true,
"parser": "brigadier:float",
"properties": {
"max": 10000.0,
"min": 1.0
}
}
}
},
"sprint": {
"type": "literal",
"children": {
"stop": {
"type": "literal",
"executable": true
},
"time": {
"type": "argument",
"executable": true,
"parser": "minecraft:time",
"properties": {
"min": 1
}
}
}
},
"step": {
"type": "literal",
"children": {
"stop": {
"type": "literal",
"executable": true
},
"time": {
"type": "argument",
"executable": true,
"parser": "minecraft:time",
"properties": {
"min": 1
}
}
},
"executable": true
},
"unfreeze": {
"type": "literal",
"executable": true
}
}
},
"time": {
"type": "literal",
"children": {
Expand Down
16 changes: 8 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ include = ["mecha/py.typed"]

[tool.poetry.dependencies]
python = "^3.10"
beet = ">=0.99.1"
beet = ">=0.100.0"
tokenstream = "^1.7.0"

[tool.poetry.group.dev.dependencies]
Expand All @@ -32,7 +32,7 @@ pytest = "^7.4.3"
isort = "^5.12.0"
python-semantic-release = "^7.33.3"
pytest-insta = "^0.2.0"
lectern = ">=0.30.0"
lectern = ">=0.31.0"

[tool.poetry.scripts]
mecha = "mecha.cli:main"
Expand Down
Loading

0 comments on commit 26ab5bb

Please sign in to comment.