Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-177035

exploration_map with EndCity as destination takes incredibly long time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.15.2
    • None
    • Plausible
    • (Unassigned)

      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"
                      }
                  ]
                }
              ]
            }
          ]
      }
      

            Unassigned Unassigned
            halemaster Christopher Hale
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: