mojira.dev
MC-132940

"skip_existing_chunks" no longer works within "minecraft:exploration_map" function

The bug

Loot tables ignore the skip_existing_chunks option within minecraft:exploration_map functions.

How to reproduce

Using a loot table such as:

{
    "pools": [
        {
            "rolls": 1,
            "entries": [
                {
                    "type": "item",
                    "name": "minecraft:map",
                    "weight": 1,
                    "functions": [
                        {
                            "function": "minecraft:exploration_map",
                            "destination": "shipwreck",
                            "decoration": "red_x",
                            "zoom": 1,
                            "skip_existing_chunks": true
                        }
                    ]
                }
            ]
        }
    ]
}

→ Will result in maps leading to the same structure every time.

This is especially problematic for large servers, as this gave the ability to have naturally spawning explorer maps lead to unexplored chunks rather than always leading to treasure that is raided.

Comments 15

CreeperMagnet_

Can confirm. This is very problematic, and should probably be fixed along with the other explorer map and /locate bugs.

MukiTanuki

I will also mention that the maps that cartographers generate will always lead to the closest area, regardless of whether or not it leads to generated chunks.  I don't know it the two relate to each other, but I thought I should mention it.

Last Wanderer

Have observed this happening with ocean explorer maps in 1.13-pre7

user-57e18

Actually, only Ocean Monument and Woodland Mansion maps from Cartographers utilized this function. Buried Treasure maps had it set to false, as if you already generated a chunk but didn't know that a buried chest was there and this property was set to true, you would possibly never know that it was ever there. But with the former structures, they're so large and not hidden that you know for sure if you've generated a chunk with them in it.

MukiTanuki

@Milo359: this has been mentioned, it references to being able to change loot tables in order to skip existing chunks.  (Not just default functions).

5 more comments
Cavinator1

Can confirm for 1.14.4

tryashtar

Is this still the case in 1.15?

Irbis

it is fixed somewhere between 1.14.4 and 20w06a.

Gatinh0

We had skip_existing_chunks fail in 1.15.2 today, mapping to a structure that had already been explored, in this instance pointed to a village we were actively using as our home-base.

video of the event
https://youtu.be/PG91xhLCuAc?t=2588

That map was generated with this loot table portion:

{
          "type": "minecraft:item",
          "functions": [
            {
              "function": "minecraft:exploration_map",
              "destination": "village",
              "decoration": "target_point",
              "zoom": 1,
              "skip_existing_chunks": true
            },
            {
                "function":"set_name",
                "name":{"text":"Village Explorer Map"}
            },
            {
                "function":"set_nbt",
                "tag":"{display:{MapColor:14057086}}"
            }
          ],
          "name": "minecraft:map", "quality": 1, "weight": 1
        }
Nath U

Skipping existing chunks is still not working in 1.16.4, at least for end cities.

MukiTanuki

(Unassigned)

Community Consensus

(Unassigned)

exploration_map, function, loot-table

Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13-pre9, Minecraft 1.13-pre10, ..., Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.2 Pre-Release 4, Minecraft 1.14.2, Minecraft 1.14.3, 1.14.4

1.15.2

Retrieved