loot replace entity @s[nbt={Inventory:[{Slot:-106b,id:"minecraft:warped_fungus_on_a_stick",tag:{manic:{id:"grim_explorer_map"}}}]},nbt=!{SelectedItem:{id:"minecraft:warped_fungus_on_a_stick",tag:{manic:{id:"grim_explorer_map"}}}}] weapon.offhand loot manic:technical/items/map/grim_explorer_map
loot replace entity @s[nbt={SelectedItem:{id:"minecraft:warped_fungus_on_a_stick",tag:{manic:{id:"grim_explorer_map"}}}}] weapon.mainhand loot manic:technical/items/map/grim_explorer_map

playsound minecraft:ui.cartography_table.take_result player @s
