summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
AgeCommit message (Collapse)Author
2015-05-07NodeResolver: Remove NodeResolveMethodkwolekr
This simplifies NodeResolver logic and makes some interfaces cleaner.
2015-05-05Add core.find_nodes_with_meta() script APIkwolekr
2015-04-21Add minetest.global_exists()ShadowNinja
2015-04-20Ore: Add biomes parameterkwolekr
2015-04-16Schematics: Refactor NodeResolver and add NodeResolveMethodkwolekr
NodeResolver name lists now belong to the NodeResolver object instead of the associated NodeDefManager. In addition to minimizing unnecessary abstraction and overhead, this move permits NodeResolvers to look up nodes that they had previously set pending for resolution. So far, this functionality has been used in the case of schematics for serialization/deserialization.
2015-04-13Schematics: Reorganize (de)serialization and add Lua serialization APIkwolekr
2015-04-08Document for api functions that rely on current_modname, that it doesn't ↵est31
work when not loading mods
2015-04-08Schematics: Prepend mod path to relative schematic filepathskwolekr
2015-03-31ObjDefManager, Mapgen SAPI: Huge refactoringkwolekr
- General code cleanup - Unified object creation and loading - Specifying objects in APIs is now orthogonal (i.e. anything can take an ID, name string, or the raw table definition (and automatically registers if present
2015-03-31GenElementManager: Pass opaque handles to Lua and rename to ObjDefManagerkwolekr
Add core.clear_registered_schematics() and refactor schematics somewhat
2015-03-27Document nil player as being allowed for can_digShadowNinja
2015-03-24lua_api/l_mapgen: generate_ores/decorations: make p1, p2 optionalparamat
2015-03-22Revert "Add a Lua call to do damages / heals" ok @ShadowNinjaLoic Blot
This reverts commit 467fc0ddc912ae38c3bf9fcb99e0b66d7478eec0.
2015-03-22Add support for the PCG32 PRNG algo (and associated script APIs)kwolekr
2015-03-18Add a Lua call to do damages / healsLoic Blot
2015-03-11lua_api/l_mapgen: Fix overlapping areas of minetest.generate_ores/decorationsparamat
2015-03-06Biome API: Enable decorations placed on waterparamat
Add schematic decoration force placement flag
2015-03-05Improve group-based connection between raillike nodesBlockMen
2015-02-27Change find_surface_nodes_in_area to find_nodes_in_area_under_airCraig Robbins
2015-02-27Add find_surface_nodes_in_area LUA call which permit to only get the nodes ↵Loic Blot
which touch air. This permit to massively improve performance for mods like plantlife
2015-02-27Wrap lines longer than 80 characters in lua_api.txt ...and minor formating ↵rubenwardy
changes
2015-02-23Disallow object:remove() if the object is a playerKahrl
Rebased by Zeno- (conflict in lua_api.txt)
2015-02-18Bump version to 0.4.12Perttu Ahola
2015-02-16Fix minetest.item_eat's replace_with_item, fixes #2292rubenwardy
2015-01-20Added ratio argument to colorize, removed the weird alpha-based ratio.TriBlade9
2015-01-15Add ability to delete MapBlocks from mapkwolekr
Also add a Lua API and chatcommand for this
2015-01-13builtin: Unify register wrapper functions and wrap clear_registered_* ↵kwolekr
functions too
2015-01-11Lua-api.txt: Document that paramtype='light' results in light propagation ↵paramat
with attenuation and is essential for a light source to spread it's light
2015-01-05Add registered_ores and registered_decorationsShadowNinja
2015-01-04Add minetest.generate_ores() and minetest.generate_decorations()kwolekr
2015-01-04Remove freezemelt documentation from lua_api.txtCraig Robbins
2015-01-04Add warning about using deprecated fields in Mapgen API and update docskwolekr
2015-01-03Rewrite lua_api.txt into Markdown formatWuzzy
Just Markdown, no variant of it. File name intentionally not changed to “lua_api.md” because of fear to break references to that file. The file can still be renamed later.
2014-12-30Fix documentation for string functionsDiego Martínez
2014-12-29Expose mapgen parameters on scripting initkwolekr
Add minetest.get_mapgen_params() Deprecate minetest.register_on_mapgen_init()
2014-12-29LuaVoxelManip: Remove blank allocatorkwolekr
2014-12-28LuaItemStack: Fix and document behavior of set_name, set_count, set_wear, ↵kwolekr
set_metadata
2014-12-28Decoration: Add height_min and height_max parameterskwolekr
Also set default height_min/height_max to -31000 and 31000, respectively, for ore and biomes
2014-12-28Ore: Add Vein ore typekwolekr
2014-12-28Ore: Add Blob ore typekwolekr
2014-12-27LuaVoxelManip: Add option to allocate blank datakwolekr
2014-12-24Bump version to 0.4.110.4.11kwolekr
2014-12-20lua_api.txt: improve noise documentation. Remove previous eased 3D noise ↵paramat
format example
2014-12-15Fix typo in lua_api.txtCraig Robbins
2014-12-12Add support for NoiseParams in minetest.get_perlin() and add docs on ↵kwolekr
NoiseParams to lua_api.txt
2014-12-09Rename and repurpose minetest.set_noiseparam_defaults to set_noiseparamskwolekr
2014-12-06Rewrite generate notification mechanismkwolekr
Add support for notify-on-decoration Clean up mapgen constructors Clean up mapgen.cpp code style somewhat Remove trailing whitespace from some files
2014-12-06Add Lua helper functions vector.apply(v) math.sign(x, tolerance)SmallJoker
2014-11-28Improve Lua API documentationCiaran Gultnieks
Changes: * Add extra documentation for remove_item. This isn't as silly as it sounds: iterate a list containing items with unique metadata each, and remove_item the first one you find, placing into a different - fine, except the remove will invariably remove the wrong one, leading to items being duplicated and others destroyed. Arguably it's a bug, and Inventory::removeItem should actually remove the item you tell it to. (i.e. if the passed ItemStack has metadata, match it). But it seems reasonable to just document the behaviour more clearly. * Improve string_to_pos documentation. * Clarify dig_node documentation (return value). * Better on_step documentation. * get_nodemeta -> get_meta. * Other minor fixes.
2014-11-27Add minetest.copy_table(table) To get rid off the "table references"SmallJoker
Signed-off-by: Craig Robbins <kde.psych@gmail.com>