aboutsummaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
AgeCommit message (Collapse)Author
2018-03-03Gennotify: Add 'minetest.get_decoration_id' APIparamat
Returns the decoration ID for the provided decoration name string. For use with gennotify, to know the decoration IDs for use in 'minetest.set_gen_notify'.
2018-02-27Place schematic (on vmanip): Enable use of 'place center' flagsparamat
For 'place schematic' and 'place schematic on vmanip' APIs. Fix 'place center' code to properly centre schematics. Fix some comments.
2018-02-25is_area_protected: Rename from intersects_protection (#7073)SmallJoker
* is_area_protected: Rename from intersects_protection Return first protected position Clarify docs: Mods may overwrite the function
2018-02-21Find nodes in area (under air): Raise volume limit and document itparamat
2018-02-18Lua API documentation: Fix spelling (#7046)pauloue
2018-02-15Add `on_auth_fail` callback (#7039)red-001
Called when a client fails to supply the correct password for the account it's attempting to login as.
2018-02-05Add minetest.is_player (#7013)you
* Add minetest.is_player * First use for is_player
2018-02-05Lua_api.txt: Document 'wielditem' visual in object propertiesparamat
2018-01-30Add minetest.bulk_set_node call + optimize Environment::set_node call (#6958)Loïc Blot
* Add minetest.bulk_set_node call + experimental mod unittest * Optimize set_node function to prevent triple lookup on contentfeatures Do only one lookup for old, and try to merge old and new lookup if node is same than previous node * Add benchmark function + optimize vector population to have real results
2018-01-23Intersects_protection(): Move from Minetest Game to builtin (#6952)Paramat
A useful function that applies 'core.is_protected()' to a 3D lattice of points evenly spaced throughout a defined volume, with a parameter for the maximum spacing of points.
2018-01-16Biomes: Add 'get heat', 'get humidity', 'get biome data' APIsparamat
'get biome data' returns biome id, heat and humidity. Clean up nearby lines in lua_api.txt.
2018-01-16Load a texturepack from the 'textures' subfolder of a gamered-001
2018-01-15Lua_api.txt: Various improvementsparamat
Improve documentation for formspec 'position' and 'anchor' elements. Add missing documentation of 'animation' and 'glow' for particle spawners.
2018-01-13Lua_api.txt: Improve bullet point indentation consistencyezhh
2018-01-13Lua_api.txt: Add chat command params infoezhh
2018-01-12Lua_api.txt: Fix, improve and add to Object Properties documentationparamat
Correct 'automatic rotate' to be a number instead of a bool.
2018-01-12Lua_api.txt: Improve and complete ABM documentationparamat
Document 'active object count (wider)'.
2018-01-07Lua API docs: Add warning that schematic placing is cachedSokomine
2018-01-07Fix naming conventions of noise userdatarubenwardy
2018-01-05Biomes: Add vertical biome blend (#6853)Paramat
Add 'vertical blend' parameter to biome registration that defines how many nodes above the biome's 'y max' limit the blend will extend.
2018-01-03Connected Nodeboxes: Add `disconnected` boxesThomas--S
The `disconnected_*` boxes are the opposites of the `connect_*` ones, i.e. when a node has no suitable neighbours on the respective side, the according disconnected box is drawn. * disconnected_top * disconnected_bottom * disconnected_front * disconnected_left * disconnected_back * disconnected_right * disconnected (when there is *no* neighbour) * disconnected_sides (when there are *no* neighbours to the sides)
2017-12-26Line_of_sight: Improve using VoxelLineIteratorDániel Juhász
This commit rewrites line_of_sight with VoxelLineIterator. Stepsize is no longer needed, the results will be always accurate.
2017-12-21Vector functions: Fix vector.direction() function, improve documentation (#6801)Paramat
vector.direction() now returns a normalised vector with direction p1 to p2.
2017-12-17Allow 'default' parameter in 'settings:get_bool' functionJordan Irwin
Default value is used when the setting key is not found in the config file. If default value is not set, 'nil' is returned. #6188
2017-12-16Give subgames the ability to disallow specific mapgens (#6792)Ezhh
2017-12-14Add callback to preserve node metadata as item metadataashtrayoz
2017-12-10Lua_api.txt: Fix a spelling errorashtrayoz
2017-12-06Auth handler: Player deletion & Iterator (#6741)sfan5
* Add player deletion method to auth handler (fixes #6653) * Support iterating over the auth database There was no way to do this previously and a recent commit broke doing this the "hacky" way by accessing `core.auth_table`.
2017-12-04Zoom: Set zoom FOV per-player using a player object propertyparamat
Remove player object property 'can zoom'. Add player object property 'zoom fov'. Remove clientside setting for 'zoom fov'. Object property default is 15 degrees in creative mode, zoom disabled in survival mode. Needed due to zoom now loading and/or generating distant world according to zoom FOV. Update object properties serialisation version to 3.
2017-12-01Update 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.
2017-12-01Lua_api.txt: Remove MT version, fix spelling and clean upezhh
Removes references to MT version in intro section. Update bump_version.sh to no longer manage version information.
2017-11-28Fix lua_api.txt indentation issuesezhh
2017-11-28Fix documentation formatting for on_death callbackEzhh
2017-11-25Improve documentation for player:set_attribute()Ezhh
2017-11-24Fix misspellingsgituser2194
"diffferent" to "different" "occuring" to "occurring" "determin" to "determine" "ommited" to "omitted" "authetification" to "authentication" "conponent" to "component" "ommitted" to "omitted" "celcius" to "Celsius" "succesful" to "successful" Misspellings found using GNU Spell version 1.0
2017-11-19Stratum ore: Add option for a constant thickness stratumparamat
Add a 'stratum thickness' integer parameter, as an alternative to providing a 2nd noise parameter for thickness variation.
2017-11-17Ore API documentation: Update and improveparamat
2017-11-13Lua_api.txt: Add documentation of required mapgen aliasesparamat
2017-11-08Add minetest.safe_write_file() to script APIsfan5
2017-11-06Lua_api.txt: Add documentation for 'eye_height' player object propertyparamat
2017-10-30Add sha1 to lua utils. (#6563)Rob Blanckaert
2017-10-29Biome API: Add decoration flags for underground decorationsparamat
Add "all_floors" and "all_ceilings" flags for simple and schematic decorations. Decorations are placed on all floor and/or ceiling surfaces. Decorations are placed before dungeon generation so placement in dungeons is not possible. Add 'getSurfaces()' function to mapgen.cpp that returns 2 arrays of y coordinates for all floor and ceiling surfaces in a specified node column. Move 'getHeight()' checks into DecoSimple and DecoSchematic. Delete 'getHeight()' functions.
2017-10-29Allow overriding tool capabilities through itemstack metadataraymoo
This makes it possible to modify the tool capabilities of individual itemstacks by calling a method on itemstack metadata references.
2017-10-28Fix 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`
2017-10-23Lua_api.txt: Revert changes to NoiseParams format exampleMuhammad Rifqi Priyo Susanto
2017-10-23Improvements/fixes for noise parameter input in advanced settingsMuhammad Rifqi Priyo Susanto
Formspec input for each individual noise parameter and flag. Allow noise flags to be set in advanced settings, previously only settable in minetest.conf. Standardise 'group format' for noise parameters set in minetest.conf, as only these support noise flags. However the older 'single line' format is still accepted to support existing minetest.conf files. Therefore auto-generate minetest.conf.example with noise parameters in 'group format'. Setting 'type' in settingtypes.txt is now either 'noise_params_2D' or 'noise_params_3D', the dimension number is displayed in the advanced settings edit page.
2017-10-19Correct `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.
2017-10-15Real global textures (#6105)Vitaliy
* Real global textures * Add world-aligned textures * Update minimal to support world-aligned tiles * Update minimal
2017-10-10Simple decorations: Make 'place_offset_y' usable with simple decorationsparamat
Necessary for placing the base cube of 'plantlike_rooted' drawtype in the seabed instead of on it. Useful for placing decorations sunk into, or buried in, the ground.
2017-10-09Simple decorations: Add 'param2_max' parameter for random param2paramat
If 'param2_max' is not used, parameter 'param2' works as before for compatibility. If 'param2_max' is used, 'param2' and 'param2_max' become the lower and upper bounds of a per-decoration random param2.