summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
AgeCommit message (Collapse)Author
2018-06-03Bump version to 0.4.170.4.17SmallJoker
2018-06-03core.rotate_node: Do not trigger after_place_node (#6900)SmallJoker
2018-06-03Find nodes in area (under air): Raise volume limit and document itparamat
2018-06-03Add minetest.is_player (#7013)you
* Add minetest.is_player * First use for is_player
2018-06-03Update documentation regarding authentication handler and related functionssfan5
Properly document it instead of referencing the builtin handler as authoritative "example" code. Also adds definition of get_auth_handler() which was missing previously.
2018-06-03Improve documentation for player:set_attribute()Ezhh
2018-06-03Lua_api.txt: Add documentation of required mapgen aliasesparamat
2018-06-03Add minetest.safe_write_file() to script APIsfan5
2018-06-03Add sha1 to lua utils. (#6563)Rob Blanckaert
2018-06-03Fix default item callbacks to work with nil users (#5819)raymoo
* Fix default item callbacks to work with nil users * item.lua: Handle node drops for invalid players The if-condition for the dropping loop is the same as `inv`, which means that the 2nd possible definition of `give_item` is never used. Remove redundant `local _, dropped_item`
2018-06-03Correct `prot_vers` in lua_api.txt.Auke Kok
We should avoid providing incorrect struct members in documentation since people will be coding based on them.
2018-06-03Document orientation parameter of set_attach (#6473)raymoo
2018-06-03Leveled nodebox: Change levels from 1/63rds to 1/64thsparamat
Add missing documentation of leveled nodebox to lua_api.txt, plus a little cleaning up nearby.
2018-06-03Fix core.wrap_text and make its behaviour consistent with the docssfan5
Code based on initial implementation by @dsohler.
2018-06-03Make dropped items colorableDániel Juhász
2018-06-03Trigger on_rightclick regardless on the formspec meta fieldSmallJoker
Document behaviour for older clients.
2018-06-03Automatic item and node colorization (#5640)Dániel Juhász
* Automatic item and node colorization Now nodes with a palette yield colored item stacks, and colored items place colored nodes by default. The client predicts the colorization. * Backwards compatibility * Use nil * Style fixes * Fix code style * Document changes
2018-06-03find_nodes_in_area: Extend maximal count to U32_MAX (#5277)SmallJoker
Extend documentation, limit area volume Remove u16 count limitation * Prevent integer overflow, replace minp/maxp with pos1/pos2
2018-06-03fix an example in lua_api (#5604)DS
2018-06-03Fix typos/mistakes in the documentation for colour related functions. (#5936)red-001
2017-11-20Revert version scheme changessfan5
This reverts commit 41b7823057bdaddd760f932dce802719301c3a0f. This reverts commit 7968f1ddaa67432719d5becdda5ca8bec58faa47.
2017-08-20New version scheme (#6292)Loïc Blot
* Version changes: current dev version is now 0.4.17 * This change permit to have multi branches with various versions * Dev version is 0.4.17-dev and next release will be 0.4.17
2017-06-03Bump version to 0.4.160.4.16ShadowNinja
2017-06-03Update remove_player documentationShadowNinja
This function only removes player meta data, not player authentication data.
2017-06-03Mention data type for get/set_attribute in docs (#5884)Wuzzy
2017-06-02Lua_api.txt: Various edits and Markdown syntax improvementsWuzzy
Add minor bits of missing Lua API documentation. Remove L-system lighting bug warning. Clarify 2 lines in node timer documentation. Fix many Markdown syntax errors in lua_api.txt.
2017-06-02Document hardware coloring and soft node overlays (#5876)Dániel Juhász
2017-05-16CSM: Document forgotten functionsSmallJoker
2017-05-12Replace inconsistent mentions of core.* with minetest.* (#5749)rubenwardy
2017-05-10Private nodemeta (#5702)sfan5
* Private node metadata that isn't sent to the client
2017-05-09Revert custom player collision box and step height commitsparamat
These caused inability to pass through 2 node high spaces or step up onto slabs or steps when a new client connected to an older server.
2017-05-07Player attrs: permits to remove an attribute by setting value to nil (#5716)Loïc Blot
* Player attrs: permits to remove an attribute by setting value to nil When doing player:set_attribute("attr", nil) remove attribute Also remove a useless check on C++ API part (already done by checkplayer) Fix #5709
2017-05-07Player properties: Set correct default collisionboxparamat
Recent commit b6f4a9c7e1a4f0bac66fd6f6ff844425ac775975 removed a hardcoded player collisionbox which resulted on falling back to an incorrect default. This stopped players walking through 2-node high spaces and made the player slightly wider. Improve docs for custom player collisionbox feature and reformat nearby lines.
2017-05-06Make the player collisionbox settableTeTpaAka
2017-05-06Use a settings object for the main settingsShadowNinja
This unifies the settings APIs. This also unifies the sync and async registration APIs, since the async registration API did not support adding non-functions to the API table.
2017-05-04Add option to also check the center to `find_node_near` (#5255)red-001
* Add option to also check the center to `find_node_near`
2017-05-02Set sky API: Add bool for clouds in front of custom skyboxparamat
Default true. Add 'm_clouds_enabled' bool to sky.h, set from new bool in 'set sky' API. Make 'getCloudsVisible()' depend on 'm_clouds_enabled' instead of 'm_visible' (whether normal sky is visible).
2017-05-03Sound API: Add fading soundsBrandon
2017-04-30Add clouds APIBen Deutsch
2017-04-28Fix click-digging torches (#5652)you
Torches are dug instantly again. When the digging time is 0, a delay of 0.15 seconds is added between digging nodes. If the left mouse button is released, the delay is set to 0, thus click-digging.
2017-04-28Allow mesh and nodeboxes to wave like plants or leaves. (#3497)Auke Kok
We introduce a new value for "waving" - 2: 0 - waving disabled 1 - wave like a plant 2 - wave like a leave Plantlike nodes will only allow waving = 1, but for leaves we will permit both 1 and 2 since current minetest_game sets it to 1 for all leaves. This makes it somewhat backwards compatible. For mesh and nodebox, values 1 and 2 are both valid, and the node can wave in both fashions as desired. I've tested this with the crops:corn plants, which are mesh nodes, and the results are really good. The code change is trivial as well, so I've opted to document the waving parameter in lua_api.txt because it was missing from there. Nodeboxes likely will not wave properly unless waving = 2. However it's possible that waving=1 may be desired by some mod developers for geometries I have not tried, so the code will not prohibit either value for mesh and nodebox drawtypes. Add lua_api.txt documentation for this feature and document both the existing functionality and the expansion to mesh and nodebox drawtypes.
2017-04-27Allow scripts to get the client protocol version in non-debug builds. (#5649)red-001
2017-04-27Fix incorrect formspec-tooltip doc, add detail in 'floodable' & 'on_flood' ↵Bluebird
docs (#5660) * Fix incorrect formspec tooltip documentation * Improve `floodable` and `on_flood` documentation. The original documentation did not specify that liquids should not themselves be floodable. This is probably something that should be mentioned.
2017-04-26Tiny documentation fix. (#5659)Bluebird
There are plenty of lines longer than 80 characters, and spliting the function declaration across two lines can be momentarily confusing.
2017-04-23Player data to Database (#5475)Loïc Blot
* Player data to Database Add player data into databases (SQLite3 & PG only) PostgreSQL & SQLite: better POO Design for databases Add --migrate-players argument to server + deprecation warning * Remove players directory if empty
2017-04-22Sneak glitch: Set default to falseparamat
The 'sneak glitch' physics override now controls whether a player can use the new move code replications of the old sneak side-effects: sneak ladders and 2 node sneak jump. This completes our intention to replicate the old sneak side-effects in new code and provide them as an option that is disabled by default.
2017-04-22Add on_flood() callback.Auke Kok
This callback is called if a liquid definitely floods a non-air node on the map. The callback arguments are (pos, oldnode, newnode) and can return a `bool` value indicating whether flooding the node should be cancelled (`return true` will prevent the node from flooding). Documentation is added, the callback function was tested with a modified minetest_game. Note that `return true` will likely cause the node's `on_flood()` callback to be called every second until the node gets removed, so care must be taken to prevent many callbacks from using this return value. The current default liquid update interval is 1.0 seconds, which isn't unmanageable. The larger aim of this patch is to remove the lava cooling ABM, which is a significant cost to idle servers that have lava on their map. This callback will be much more efficient.
2017-04-21Soft node overlay (#5186)Dániel Juhász
This commit adds node overlays, which are tiles that are drawn on top of other tiles.
2017-04-20Light update for map blocksDániel Juhász
This is not really different from the light update of a voxel manipulator. This update does not assume that the lighting was correct before, therefore it is useful for correction. Also expose this function to the Lua API for light correction, and allow voxel manipulators not to update the light.
2017-04-19Tools: Fix tool digging speed limitHybrid Dog