-- Binoculars item
minetest.register_craftitem("binoculars:binoculars", {
- description = "Binoculars",
+ description = "Binoculars\nUse with 'Zoom' key",
inventory_image = "binoculars_binoculars.png",
stack_max = 1,
Usage
-----
In survival mode, use of the minimap requires the mapping kit item in your
-inventory. It can take up to 3 seconds for adding to or removal from inventory
-to have an effect.
+inventory. It can take up to 5 seconds for adding to or removal from inventory
+to have an effect, however to instantly allow the use of the minimap 'use'
+(leftclick) the item.
Minimap radar mode is always disallowed in survival mode.
Minimap and minimap radar mode are automatically allowed in creative mode and
for _, player in ipairs(minetest.get_connected_players()) do
map.update_hud_flags(player)
end
- minetest.after(3.1, cyclic_update)
+ minetest.after(5.3, cyclic_update)
end
-minetest.after(3.1, cyclic_update)
+minetest.after(5.3, cyclic_update)
-- Mapping kit item
minetest.register_craftitem("map:mapping_kit", {
- description = "Mapping Kit",
+ description = "Mapping Kit\nUse with 'Minimap' key",
inventory_image = "map_mapping_kit.png",
stack_max = 1,
groups = {flammable = 3},
+
+ on_use = function(itemstack, user, pointed_thing)
+ map.update_hud_flags(user)
+ end,
})