Add stopwatch command and execute if stopwatch

Adds the stopwatches store saved in data/minecraft/stopwatches.dat, the /stopwatch create, query, restart and remove commands, and the execute if stopwatch condition, with the parse tree and parse fixture updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-10 06:20:08 +02:00
parent 5a5bdf6a9b
commit abb21704dd
10 changed files with 234 additions and 0 deletions
@@ -64,6 +64,7 @@ fn parser_id(ty: &ArgType) -> String {
ArgType::Operation => "minecraft:operation".into(),
ArgType::TeamColor => "minecraft:team_color".into(),
ArgType::IntRange => "minecraft:int_range".into(),
ArgType::FloatRange => "minecraft:float_range".into(),
ArgType::NbtPath => "minecraft:nbt_path".into(),
ArgType::NbtTag => "minecraft:nbt_tag".into(),
ArgType::Vec2 => "minecraft:vec2".into(),