You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mecha throws an error when a resource location with no path is used, such as the following: @function foo:bar
data modify storage foo: mydata set value []
This is the error:
ERROR | mecha Expected quoted_string or string but got invalid ': mydata set value []'.
| src/data/foo/functions/bar.mcfunction:1:24
| 1 | data modify storage foo: mydata set value []
| : ^^^^^^^^^^^^^^^^^^^^^
When it's changed to foo:bar, it works just fine. I'm not at all familiar with the codebase, but I did some quick searching. In other contexts, this would throw an error. However, data storage is one of the few cases (next to functions named .mcfunction) which can apparently do this without issue in Minecraft. However, Mecha takes the brigadier resource object, reads that it specifies minecraft:resource_location, and passes it off to AstResourceLocation, which seems to assume a non-empty path.
The text was updated successfully, but these errors were encountered:
Mecha throws an error when a resource location with no path is used, such as the following:
@function foo:bar
This is the error:
When it's changed to
foo:bar
, it works just fine. I'm not at all familiar with the codebase, but I did some quick searching. In other contexts, this would throw an error. However, data storage is one of the few cases (next to functions named.mcfunction
) which can apparently do this without issue in Minecraft. However, Mecha takes the brigadier resource object, reads that it specifiesminecraft:resource_location
, and passes it off to AstResourceLocation, which seems to assume a non-empty path.The text was updated successfully, but these errors were encountered: