#Problems with spawning explorer maps with /loot

1 messages · Page 1 of 1 (latest)

slow oxide
#

Hey all! I am aware this has been asked before, but I just can not seem to do this correctly. I know that /loot has an "exlporer_map" function, which generates the maps pointing to a structure. I, however, can not seem to get the command to work. ChatGPT keeps repeating that the only way the function executes is via a chest loot table generation, which i frankly don't buy. Bellow is the example loot table code that doesn't seem to generate. Running mc version 1.20.1 Forge modpack with KubeJS mod, the datapack is located there.


{
  "type": "minecraft:generic",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:filled_map",
          "functions": [
            {
              "function": "minecraft:exploration_map",
              "destination": "minecraft:ocean_monument",
              "decoration": "monument",
              "zoom": 2,
              "search_radius": 100,
              "skip_existing_chunks": false
            },
            {
              "function": "minecraft:set_name",
              "name": {
                "text": "Ocean Monument Explorer Map",
                "color": "aqua"
              }
            }
          ]
        }
      ]
    }
  ]
}

What I have tried:

  • Spawning the map loot inside a chest
  • Doing regular /loot spawn

The map's item and name is generated correctly.

All attempts yield the spawning of said map, but inside its just empty, no textures, no decorations, no nothing.

Any help would be greatly appretiated!

brave onyxBOT
random idol
#

here is an example I've made for my custom structure, you can replace ancient_artifacts:dungeon with your preffered structure tag json { "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "map", "functions": [ { "function": "exploration_map", "destination": "ancient_artifacts:dungeon", "decoration": "target_point", "zoom": 4, "search_radius": 200, "skip_existing_chunks": true }, { "function": "set_name", "name": { "text": "Dungeon Map", "color": "#b56400", "italic": false, "shadow_color": 0, "bold": true } } { "function": "set_components", "components": { "minecraft:map_color": 493607, "minecraft:custom_data": {"dungeon_map":true}, "item_model": "ancient_artifacts:item/dungeon_map", "tooltip_style": "minecraft:ancient_artifacts" } } ] } ] } ] }

#

If you look in the logs

#

you may see some errors

brave onyxBOT
slow oxide
#

Thank you for showing me the logs, i always wondered why they were not enabled by default :D. Sadly they are not of much help:
After loading in and doing /loot give @s loot atlas:treasure_map
logs only: 19:42:20.899
[System] [CHAT] Dropped 1 [Ocean Monument Explorer Map]

So no error was detected, but the map i get is:

#

After implementing your code (i deleted the setComponents part and replaced the dungeon with minecraft:ocean_monument) i received a regular map item, which when right-clicked just operatres as a regular map.

Forgot to mention I am running 1.20.1

#

Logs still show no errors

little crystalBOT
#

-# (helpers summoned) <@&1166082198152159386> <@&1202694677766348840>

hearty trout
#

That should absolutely have shown up in the logs

slow oxide
#

after fixing that too*

hearty trout
#

Besides that I believe that the destination needs to reference a structure tag, not the structure directly

slow oxide
#

... that did it! Thank you!