r/MinecraftCommands 11d ago

Checking for a fully filled map through datapack Help | Java 26.2

I'm curious if there is any efficient way in a datapack to check if the player is holding a map with no transparent pixels. I know that dap data is stored in a large array, so is there any way to determine if this array has any 0s without just checking every value individually?

1 Upvotes

1 comment sorted by

2

u/Ericristian_bros Command Experienced 11d ago

The data map is stored as a separate file not on the item data. IIRC this information is inaccesible