-
Bug
-
Resolution: Fixed
-
None
-
24w12a
-
None
-
Confirmed
-
Commands
-
Normal
-
Platform
When using an inline item modifier in /item modify, a schema error always yields "not a list" instead of a proper error.
How to reproduce
/item modify entity @s weapon {} /item modify entity @s weapon {function:"blah"} /item modify entity @s weapon {function:"set_count"}
Expected result
- Missing key "function"
- Invalid function name
- Missing key "count"
Observed result
- Not a list
- Not a list
- Not a list
Notes
It also seems like these errors don't show up while typing. Although they are syntax errors, since they prevent functions from loading. Additionally, as a workaround, you can wrap the argument in a list to start getting proper schema errors for the inner element.