Skip to content

Commit d693f95

Browse files
committedNov 6, 2017
Lua_api.txt: Add documentation for 'eye_height' player object property
1 parent ce832eb commit d693f95

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed
 

Diff for: ‎doc/lua_api.txt

+8-5
Original file line numberDiff line numberDiff line change
@@ -4234,6 +4234,8 @@ Definition tables
42344234
-- ^ For players only. Defaults to `minetest.PLAYER_MAX_BREATH_DEFAULT`
42354235
can_zoom = true,
42364236
-- ^ For players only. Enables the zoom feature. Defaults to true
4237+
eye_height = 1.625,
4238+
-- ^ For players only. Camera height above feet position in nodes. Defaults to 1.625
42374239
physical = true,
42384240
collide_with_objects = true, -- collide with other objects if physical = true
42394241
weight = 5,
@@ -4261,15 +4263,16 @@ Definition tables
42614263
backface_culling = true, -- false to disable backface_culling for model
42624264
glow = 0,
42634265
-- ^ Add this much extra lighting when calculating texture color.
4264-
value < 0 disables light's effect on texture color.
4265-
For faking self-lighting, UI style entities, or programmatic coloring in mods.
4266+
-- Value < 0 disables light's effect on texture color.
4267+
-- For faking self-lighting, UI style entities, or programmatic coloring in mods.
42664268
nametag = "", -- by default empty, for players their name is shown if empty
42674269
nametag_color = <color>, -- sets color of nametag as ColorSpec
42684270
infotext = "", -- by default empty, text to be shown when pointed at object
42694271
static_save = true,
4270-
-- ^ If false, never save this object statically. It will simply be deleted when the block gets unloaded.
4271-
-- ^ The get_staticdata() callback is never called then.
4272-
-- ^ Defaults to 'true'
4272+
-- ^ If false, never save this object statically. It will simply be deleted when the
4273+
-- block gets unloaded.
4274+
-- The get_staticdata() callback is never called then.
4275+
-- Defaults to 'true'
42734276
}
42744277

42754278
### Entity definition (`register_entity`)

0 commit comments

Comments
 (0)
Please sign in to comment.