Add binoculars mod with binoculars item to allow zoom
authorparamat <paramat@users.noreply.github.com>
Wed, 30 Aug 2017 01:37:43 +0000 (02:37 +0100)
committerparamat <mat.gregory@virginmedia.com>
Fri, 13 Oct 2017 04:32:18 +0000 (05:32 +0100)
commitcc371ac726305cfca64fad257b2c5cd37afd80cb
treead8b58ae70ee5b7c776e5396085ebd330cbbdcfd
parenteb5a5b56e194bbaa432edea9697f1adb1d2398d9
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.
mods/binoculars/README.txt [new file with mode: 0644]
mods/binoculars/depends.txt [new file with mode: 0644]
mods/binoculars/init.lua [new file with mode: 0644]
mods/binoculars/license.txt [new file with mode: 0644]
mods/binoculars/textures/binoculars_binoculars.png [new file with mode: 0644]