Unofficial; not affiliated with the Mapwright team.
Add-on for Mapwright 1.0.6 (NeoForge 1.21.1), written for the First Flight pack. It contains no Mapwright code or art and does not change Mapwright's jar; it hooks in with mixins.
- Shared map. Everyone on a server draws on one map. The server keeps it in
world/data/mapwright_crew/<dimension>/and passes changed pixels on (last writer wins per pixel). Needs the add-on on the server and on each client; players without it keep a private map. Undo restores a whole page as it was before your stroke, so it can also undo what others drew on that page since. - Shared pins. The red, green and blue pins are the same for everyone (one of each per dimension).
- Shared spyglass marks. A mark made with the spyglass shows up for the rest of the crew too, with a note saying who made it. Like your own marks, it fades about ten seconds after you stop looking at the map or spyglass.
- Crew on the map. Other players in your dimension are drawn as faces; hover one for the name.
- Iris shaderpacks. The map screen is drawn again when a shaderpack is on (Veil's Iris compatibility sent it to an off-screen buffer). Same approach as the fix proposed upstream in BeeIsYou/map-drawing#17 (MIT).
- Voxy. The spyglass mark (look through a spyglass, press the map key) reaches Voxy's distant terrain, up to 4096 blocks. Uses Voxy 0.2.16's storage classes by reflection; if they change it turns itself off.
./gradlew build with JDK 21. The build needs Mapwright's jar to compile against: point the compileOnly files(...)
line in build.gradle at your copy of mapwright-neoforge-1.21.1-1.0.6.jar. The result is in build/libs/.
Put it in mods/ on the server and on each client, next to Mapwright (the server does not need Mapwright).
CC0 1.0 (public domain dedication, see LICENSE): use any of it for anything, with no credit or notice needed.
The Mapwright team in particular is welcome to take whatever is useful straight into Mapwright.
One credit we keep by choice: the Iris fix (VeilWrapperMixin, MapScreenMixin, IrisFix) follows the approach of
luxvent's pull request BeeIsYou/map-drawing#17 (MIT).
This code was written by an AI assistant (Claude) at the pack author's direction and tested with scripted game clients; see the commit history.
What was tested: two scripted clients on a local server (drawing, erasing, pins, spyglass marks, a late join after a server restart), the map screen under BSL 10.1.8 and CazToon 1.2.7 (Colorwheel builds), and the Voxy ray against the vanilla raycast. Not tested: more than two players, a real network, a LAN-opened singleplayer world, and the spyglass by hand.
Test aid: start a client with -Dmapcrew.selftest=a|b|c|ray (see SelfTest.java);
-Dmapcrew.noirisfix=true leaves the shader bug in for comparison.