mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-07 06:06:10 -04:00
Add binoculars mod with binoculars item to allow zoom
Uses the new player object property 'can zoom'. In survival mode, use of zoom requires the binoculars item in inventory. Zoom is automatically allowed in creative mode and for players with the 'creative' privilege. The binoculars.update_player_property() function is global so can be redefined by a mod for alternative behaviour.
This commit is contained in:
parent
eb5a5b56e1
commit
cc371ac726
5 changed files with 165 additions and 0 deletions
35
mods/binoculars/README.txt
Normal file
35
mods/binoculars/README.txt
Normal file
|
@ -0,0 +1,35 @@
|
|||
Minetest Game mod: binoculars
|
||||
=============================
|
||||
See license.txt for license information.
|
||||
|
||||
Authors of source code
|
||||
----------------------
|
||||
paramat (MIT)
|
||||
|
||||
Authors of media (textures)
|
||||
---------------------------
|
||||
paramat (CC BY-SA 3.0):
|
||||
binoculars_binoculars.png
|
||||
|
||||
Crafting
|
||||
--------
|
||||
binoculars:binoculars
|
||||
|
||||
default:obsidian_glass O
|
||||
default:bronze_ingot B
|
||||
|
||||
O_O
|
||||
BBB
|
||||
O_O
|
||||
|
||||
Usage
|
||||
-----
|
||||
In survival mode, use of zoom requires the binoculars item in your 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 zoom 'use' (leftclick) the item.
|
||||
|
||||
Zoom is automatically allowed in creative mode and for any player with the
|
||||
'creative' privilege.
|
||||
|
||||
The 'binoculars.update_player_property()' function is global so can be
|
||||
redefined by a mod for alternative behaviour.
|
Loading…
Add table
Add a link
Reference in a new issue