Move parity fixtures onto server execution

Co-Authored-By: OpenAI Codex (GPT-6.1) <noreply@openai.com>
This commit is contained in:
rdbtCVS
2026-10-25 22:04:23 +00:00
parent e05933169a
commit 28206976d8
16 changed files with 338 additions and 56 deletions
+22 -1
View File
@@ -611,7 +611,9 @@ def world_misc():
cmd('/fill 0 210 0 2 212 2 minecraft:glass keep'),
cmd('/fill 0 210 0 2 212 2 minecraft:dirt replace #minecraft:base_stone_overworld'),
cmd('/fill 0 210 0 2 212 2 minecraft:air strict'),
cmd('/fill 0 210 0 100 300 100 minecraft:stone'),
# A connected server loads more terrain than the oracle's 5x5 core.
# Keep the far corner unambiguously unloaded in both executions.
cmd('/fill 0 210 0 1000 300 1000 minecraft:stone'),
cmd('/setblock 0 211 0 minecraft:oak_sign{front_text:{messages:["a","b","c","d"]}}'),
cmd('/data get block 0 211 0 front_text.messages'),
cmd('/clone 0 211 0 0 211 0 1 211 1 replace move'),
@@ -814,6 +816,9 @@ def functions_and_packs():
def ticking():
return [
# Isolate named-stream commands from earlier loot rolls, including
# ocean vegetation updated while asynchronous terrain loads settle.
*setup('/random reset *'),
cmd('/tick query'),
cmd('/tick rate 40'),
cmd('/tick query'),
@@ -1046,9 +1051,25 @@ def test_command():
]
def server_clock():
"""Only explicit tick operations advance the script's authoritative clock."""
return [
*setup('/scoreboard objectives add harness_clock dummy',
'/execute store result score before harness_clock run time query gametime'),
{'op': 'tick', 'n': 3},
*setup('/execute store result score elapsed harness_clock run time query gametime',
'/scoreboard players operation elapsed harness_clock -= before harness_clock'),
cmd('/scoreboard players get elapsed harness_clock'),
# The connected owner is the only player; @s and @a use the same body.
cmd('/execute as @a run say connected owner'),
*setup('/scoreboard objectives remove harness_clock'),
]
def groups():
return [
('setup', group_setup()),
('server clock', server_clock()),
('client commands', client_commands()),
('game state', game_state()),
('player state', player_state()),