mojira.dev
MC-177035

exploration_map with EndCity as destination takes incredibly long time

Using a loot table, I made an exploration map for EndCity destination type.

When looting from this table, the game completely freezes up for about 20s (counted) and then the map is generated and given.

This was for an EndCity literally 37 blocks away, found using the /locate command (which took almost no time).

My assumption is that this happens due to trying to do the "river" style on the map, and probably also affects Nether Fortresses in the same way (I haven't tested, just a guess).

Since this is the case, my proposal would be to simply make the "river" generation an optional value (like skip_existing_chunks) so that datapack authors can turn off this since it is unnecessary for EndCity. Or just make a check for dimension the structure is in and just don't do the "river" styling for end and nether. Whichever one makes more sense.

 

Here is the loot table I made for the endcity map:

{
    "type": "minecraft:generic",
    "pools": [
      {
        "rolls": 1,
        "entries": [
          {
            "type": "minecraft:item",
            "name": "minecraft:map",
            "weight": 5,
            "functions": [
                {
                    "function": "minecraft:exploration_map",
                    "destination": "EndCity",
                    "decoration": "target_x",
                    "zoom": 3,
                    "skip_existing_chunks": false
                },
                {
                    "function": "minecraft:set_nbt",
                    "tag": "{\"display\": {\"MapColor\": 16711935},\"to_explore_map\": map_endcity}"
                },
                {
                    "function": "minecraft:set_name",
                    "name": "End City Explorer Map"
                }
            ]
          }
        ]
      }
    ]
}

Linked issues

Comments

migrated

Just realized the "zoom" was at 3. Set it to 1, and it loaded instantly. Maybe the zoom is the problem here and not the styling, or maybe some sort of combo.

May help you figure out what may be happening, or to mark this as a resolved issue or duplicate.

wobst.michael

Please check if this is still an issue in 20w17a.

migrated

Tried in 20w17a with zoom of 3, took about 18 seconds to generate the map. zoom of 1 is still near instantaneous.

The zoom being 3 might be an issue I think is not worth solving. I think if zoom of 1 works fine, it is probably a fine issue.

migrated

Is this issue still present in 1.19? Note, that the loot table needs to be updated.

migrated

(Unassigned)

Plausible

(Unassigned)

1.15.2

Retrieved