diamonddevv / luafy

lua scripting language in minecraft datapacks
Creative Commons Zero v1.0 Universal
7 stars 2 forks source link

Add Support for applying a PNG Static Resource to a Map Item #33

Open diamonddevv opened 4 months ago

diamonddevv commented 4 months ago

Apply an image loaded as a static resource to a map item. Not too sure how to tackle this.

MulverineX commented 4 months ago

The maps protocol works like this: each map has an integer id, and when a client receives this ID in the item data (1.20.5+ minecraft:map_id), it requests the map data from the server. The server responds with NBT that lists every pixel and its RGB value.

Here's what Luafy needs to extend:

Prior Art: an external tool (some of the relevant code here), a server mod by Patbox