aboutsummaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
AgeCommit message (Collapse)Author
2021-03-09Rename hash field to _hash and document it properlyitemmeta_restrictionsElias Fleckenstein
2021-02-23Allow overwriting media files of dependencies (#10752)DS
2021-02-17Add nametag background setting and object property (#10937)rubenwardy
2021-02-17Fix short_description fallback order (#10943)rubenwardy
2021-02-04Fix documentation of formspec sound style (#10913)Wuzzy
2021-02-01Revise dynamic_add_media API to better accomodate future changessfan5
2021-01-31Preserve immortal group for players when damage is disabledsfan5
2021-01-31Fix minetest.dig_node returning true when node isn't diggable (#10890)rubenwardy
2021-01-29Rework use_texture_alpha to provide three opaque/clip/blend modessfan5
The change that turns nodeboxes and meshes opaque when possible is kept, as is the compatibility code that warns modders to adjust their nodedefs.
2021-01-29Clarify key_value_swap's edge case (#10799)Graham Northup
In compiler design especially, leaving behavior as "undefined" is a _strong_ condition that basically states that all possible integrity is violated; it's the kind of thing that happens when, say, dereferencing a pointer with unknown provenance, and most typically leads to a crash, but can result in all sorts of spectacular errors--thus, "it is undefined" how your program will melt down. The pure-Lua implementation of `key_value_swap` does not permit UB _per se_ (assuming the implementation of Lua itself is sound), but does deterministically choose the value to which a key is mapped (the last in visitation order wins--since visitation order is arbitrary, _some_ value _will_ be chosen). Most importantly, the program won't do something wildly unexpected.
2021-01-27Consistently use "health points" (#10868)Zughy
2021-01-23FormSpec: Add list spacing, slot size, and noclip (#10083)Vincent Robinson
* Add list spacing, slot size, and noclip * Simplify StyleSpec * Add test cases Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-01-21ObjectRef: fix some v3f checks (#10602)Zughy
2021-01-11Document how to make nametags background disappear on players' head (#10783)Zughy
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2021-01-11Implement on_rightclickplayer callback (#10775)JDiaz
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-01-02Add on_deactivate callback for luaentities (#10723)hecks
2021-01-02Clarify documentation of minetest.get_modpath and minetest.get_modnames (#10771)OgelGames
2020-12-29Add minetest.get_objects_in_area (#10668)Elias Fleckenstein
2020-12-18Documentation for highest formspec_version[] and changelog (#10592)DS
2020-12-15Formspec: Allow to specify frame loop for model[] (#10679)Thomas--S
Add the ability to specify an animation frame loop range for the model[] formspec element.
2020-12-15lua_api.txt: Add mod_orgin to node def (#10697)wsor4035
2020-12-10Various documentation fixes (#10692)SmallJoker
set_sky: New feature, keep note about the old syntax get_us_time: Document overflow localplayer: Document "nil" behaviour before initialization collision_box: Safe limit of "1.45"
2020-12-04Cross-reference the node level manipulation functions (#10633)Oblomov
This can help developers find the correct functions to access and manipulate the fluid level.
2020-11-23Add sound to press event of some formspecs elements (#10402)Pierre-Yves Rollo
2020-11-10Do not set a default for description in itemdef table (#10559)DS
* Do not set a default for description in itemdef table * improve documentation
2020-11-09Fix object interaction distance not being checked (#10547)rubenwardy
2020-11-04Add model[] formspec element (#10320)SmallJoker
Formspec element to display models, written by @kilbith, rebased and tweaked. Co-authored-by: Jean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com> Co-authored-by: sfan5 <sfan5@live.de>
2020-10-22Clean up l_object.cpp (#10512)Zughy
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2020-10-19Decouple entity minimap markers from nametags replacing with show_on_minimap ↵sfan5
property (#10443)
2020-10-17Remove all bump mapping and parallax occlusion related code.Lars
2020-10-13Add ObjectRef:get_children() (#10480)Zughy
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2020-10-09Add a short_description to be used by mods (#8980)DS
2020-10-08Mention texture modifier colorspace (#10112)HybridDog
2020-10-06Add minetest.get_artificial_light and minetest.get_natural_light (#5680)HybridDog
Add more detailed light detection functions, a function to get the artificial light (torches) and a function to get the sunlight as seen by the player (you can specify timeofday). Co-authored-by: rubenwardy <rw@rubenwardy.com>
2020-10-04Minimap as HUD element with API controlPierre-Yves Rollo
Features: * Define Minimap available modes (surface/radar, scale) from Lua, using player:set_minimap_modes() * New HUD elements for displaying minimap with custom size and placing * New minimap mode for displaying a texture instead of the map
2020-10-04Add First Person Attachments (#10360)Jordan Snelling
Fixes some other third person camera specific attachments. Implements a single new flag for entities to be forced visible in first person mode. Old mods do not need to be updated to use the new flag and are fully backwards compatible.
2020-10-04Deprecate get_player_velocity and add_player_velocity (#10173)rubenwardy
2020-10-03Add note to docs on how to override privileges (#9792)LoneWolfHT
2020-10-03Lua API: Add register_on_chatcommand to SSM and CSM (#7862)Elijah Duffy
Allows catching a chatcommand call just after the command and the parameters are parsed but before its existence is checked and before the corresponding function is run. Returning `true` from a callback function will prevent default handling of the command leaving mods to handle the command manually.
2020-10-03Chatcommand: Show help message if func returns false without messageHybridDog
#9440
2020-09-23Ability to remove minetest.after once set (#10103)tenplus1
2020-09-16lua_api.txt: author, release and title fields when downloading from ↵Zughy
ContentDB (#10129) Co-authored-by: Marco <4279489-marco_a@users.noreply.gitlab.com> Co-authored-by: rubenwardy <rw@rubenwardy.com>
2020-09-04Fix inventory swapping not calling all callbacks (#9923)Lars Müller
"Predicts" whether something will be swapped for allow callbacks, then calls callbacks a second time with swapped properties. Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2020-09-01Mark multiply and divide with two vectors as deprecated (Schur product and ↵DS
quotient) (#10329)
2020-08-30Fix dropped craftitems/tools not using light_source values (#9438)LoneWolfHT
2020-08-29Add compass HUD element (#9312)EvidenceB
Co-authored-by: Jean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com> Co-authored-by: Pierre-Yves Rollo <dev@pyrollo.com> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2020-08-29Document normalmap textures (#10096)HybridDog
2020-08-29Add vector.offset (#10321)DS
2020-08-27Improve set_texture_mod documentation (#10339)karamel59
Properly documents the select_x_by_camera values
2020-08-20Load media from subfolders (#9065)DS