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
2
mods/binoculars/depends.txt
Normal file
2
mods/binoculars/depends.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
creative?
|
Loading…
Add table
Add a link
Reference in a new issue