diff options
author | LoneWolfHT <lonewolf04361@gmail.com> | 2020-08-29 16:02:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-30 00:02:21 +0100 |
commit | c18dbadcb898db6d1f68b72afec56c599af317ec (patch) | |
tree | bb44e483ea2a807720afa5b9c8480a0d40cf18b1 /doc | |
parent | 5c4b560b6812bbdf7a9d3202c95bad5c9df97d66 (diff) | |
download | minetest-c18dbadcb898db6d1f68b72afec56c599af317ec.tar.gz minetest-c18dbadcb898db6d1f68b72afec56c599af317ec.tar.bz2 minetest-c18dbadcb898db6d1f68b72afec56c599af317ec.zip |
Fix dropped craftitems/tools not using light_source values (#9438)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index c81824163..6341571c7 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -7026,6 +7026,13 @@ Used by `minetest.register_node`, `minetest.register_craftitem`, and liquids_pointable = false, + light_source = 0, + -- When used for nodes: Defines amount of light emitted by node. + -- Otherwise: Defines texture glow when viewed as a dropped item + -- To set the maximum (14), use the value 'minetest.LIGHT_MAX'. + -- A value outside the range 0 to minetest.LIGHT_MAX causes undefined + -- behavior. + -- See "Tools" section for an example including explanation tool_capabilities = { full_punch_interval = 1.0, @@ -7225,12 +7232,6 @@ Used by `minetest.register_node`. drowning = 0, -- Player will take this amount of damage if no bubbles are left - light_source = 0, - -- Amount of light emitted by node. - -- To set the maximum (14), use the value 'minetest.LIGHT_MAX'. - -- A value outside the range 0 to minetest.LIGHT_MAX causes undefined - -- behavior. - damage_per_second = 0, -- If player is inside node, this damage is caused |