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

playsound minecraft:ui.cartography_table.take_result player @s
