Save the Duloc wanted status and the onion layer with the world #3

Merged
Bewerkt merged 2 commits from fix/persist-player-state into main 2026-10-22 09:52:48 +00:00
Owner

Both lived in static maps, so a restart was a full pardon in Duloc and put an onion eater back on the first layer.

  • New common/PPPlayerState.java: saved data on the overworld (one file per world), written through the existing DataSavedData / DataOut / DataIn layer, so Fabric and NeoForge share the mechanics without loader-specific attachments. Only players with something to remember are written.
  • The wanted status now counts down one tick per tick the player is online: five in-game days of playtime (120000 ticks), not of world time, so waiting it out offline does not help. New chat.perfectplace.duloc_pardon message (English and Dutch) when it runs out.
  • OnionItem reads and writes its layer through PPPlayerState.

Builds green on all six nodes (CI run #7); the save round-trip has not been tested in a running world yet.

Both lived in static maps, so a restart was a full pardon in Duloc and put an onion eater back on the first layer. - New `common/PPPlayerState.java`: saved data on the overworld (one file per world), written through the existing `DataSavedData` / `DataOut` / `DataIn` layer, so Fabric and NeoForge share the mechanics without loader-specific attachments. Only players with something to remember are written. - The wanted status now counts down one tick per tick the player is **online**: five in-game days of playtime (120000 ticks), not of world time, so waiting it out offline does not help. New `chat.perfectplace.duloc_pardon` message (English and Dutch) when it runs out. - `OnionItem` reads and writes its layer through `PPPlayerState`. Builds green on all six nodes (CI run #7); the save round-trip has not been tested in a running world yet.
Save the Duloc wanted status and the onion layer with the world
Some checks failed
Build / Build all versions and loaders (push) Successful in 5m1s
Build / Build all versions and loaders (pull_request) Has been cancelled
d397b50367
Both lived in static maps, so a restart was a full pardon in Duloc and put an onion eater back on the first
layer.

They now live in PPPlayerState, saved data on the overworld (one file per world), written through the
existing DataSavedData / DataOut / DataIn layer. That keeps both loaders on the same mechanics without
loader-specific attachments, and only players with something to remember end up in the file.

The wanted status counts down one tick per tick the player is online: five in-game days of playtime, not of
world time, so waiting out a sentence while offline does not help. When it runs out the player is told Duloc
has forgiven them.
Merge main into fix/persist-player-state
All checks were successful
Build / Build all versions and loaders (push) Successful in 5m10s
Build / Build all versions and loaders (pull_request) Successful in 5m37s
1245bc15dc
Bewerkt deleted branch fix/persist-player-state 2026-10-22 09:53:32 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Bewerkt/ThePerfectPlaceMod!3
No description provided.