WIP: command and datapack tweaks

Work in progress on commands, functions and scoreboard handling carried over from the interrupted run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-10 08:59:08 +02:00
parent 40802dd9af
commit f0d33d3cf8
8 changed files with 282 additions and 0 deletions
@@ -222,6 +222,14 @@ fn data_and_tag_commands_parse() {
assert_eq!(id, "data.get");
assert_eq!(args, ["target", "path", "scale"]);
assert_eq!(run("data get block ~ ~ ~ Items[0]").unwrap().0, "data.get");
assert_eq!(
run("item modify entity @s weapon.mainhand a:b").unwrap().0,
"item.modify"
);
assert_eq!(
run("item modify block 1 2 3 container.0 a:b").unwrap().0,
"item.modify"
);
assert_eq!(run("data get storage my:store").unwrap().0, "data.get");
assert_eq!(run("data merge storage a:b {x:1}").unwrap().0, "data.merge");
assert_eq!(