aboutsummaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
AgeCommit message (Collapse)Author
2017-03-28Add functions to strip color information. (#5472)Diego Martínez
2017-03-20Firelike drawtype: Add missing docs for visual_scale in lua_api.txt (#5434)Paramat
2017-03-15lua_api: Document minetest.features (#5311)SmallJoker
2017-03-11Light calculation: New bulk node lighting codeDániel Juhász
This commit introduces a new bulk node lighting algorithm to minimize lighting bugs during l-system tree generation, schematic placement and non-mapgen-object lua voxelmanip light calculation. If the block above the changed area is not loaded, it gets loaded to avoid lighting bugs. Light is updated as soon as write_to_map is called on a voxel manipulator, therefore update_map does nothing.
2017-03-04Add minetest.spawn_falling_node(pos) (#5339)zaoqi
* Add minetest.spawn_falling_node(pos) * lua_api.txt: Add minetest.spawn_falling_node(pos) * Update minetest.spawn_falling_node(pos)
2017-03-04FormSpec: Add position and anchor elements (#5284)adelcoding1
2017-02-20Fix the documentation for `minetest.is_yes` (#5276)red-001
2017-02-10Correct lua_api.txt docs related to meta (#5198)rubenwardy
2017-02-08Add ModMetadata API (#5131)Loïc Blot
* mod can create a ModMetadata object where store its values and retrieve it. * Modmetadata object can only be fetched at mod loading * Save when modified using same time as map interval or at server stop * add helper function to get mod storage path * ModMetadata has exactly same calls than all every other Metadata
2017-02-04Add per-stack descriptions using ItemStack Metadatarubenwardy
2017-02-04Add ItemStack key-value meta storagerubenwardy
2017-01-30Add multiply texture modifiersapier
Allows colorizing of textures using a color multiplication method.
2017-01-28from_table: Fix crash for missing inventory or fieldSmallJoker
2017-01-28Make entity on_punch have same signature and behaviour as player on_punchsapier
2017-01-27Implement player attribute backend (#4155)Loïc Blot
* This backend permit mods to store extra players attributes to a common interface. * Add the obj:set_attribute(attr, value) Lua call * Add the obj:get_attribute(attr) Lua call Examples: * player:set_attribute("home:home", "10,25,-78") * player:get_attribute("default:mana") Attributes are saved as a json in the player file in extended_attributes key They are saved only if a modification on the attributes occurs and loaded when emergePlayer is called (they are attached to PlayerSAO).
2017-01-23core: Add dir_to_yaw and yaw_to_dir helpersAuke Kok
These are needed to go from things like entity yaw to a vector and vice versa.
2017-01-23Vector: Add vector.sort(a, b): return box edgesAuke Kok
This function returns the box corners of the smallest box that includes the two given coordinates.
2017-01-23Add hardware node coloring. Includes:Dániel Juhász
- Increase ContentFeatures serialization version - Color property and palettes for nodes - paramtype2 = "color", "colored facedir" or "colored wallmounted"
2017-01-21Add Entity get_texture_mod() to Lua APIsapier
Send texture modifier to clients connecting later too
2017-01-20Add chatcommand unregister and override API (#5076)Elijah Duffy
Introduces two functions to unregister and override chatcommands. minetest.unregister_chatcommand("<name>") and minetest.override_chatcommand("<name>", {<redifinition>})
2017-01-18Add particle animation, glowsfan5
This is implemented by reusing and extending the TileAnimation code for the methods used by particles.
2017-01-18Add minetest.player_exists() (#5064)rubenwardy
2017-01-16Rename ObjectRef methods to be consistent and predictablerubenwardy
2017-01-09Add staticdata parameter to add_entity (#5009)Rui
* Add staticdata parameter to add_entity * Add add_entity_with_staticdata to core.features
2017-01-05lua_api.txt: Add registered_chatcommands to global tablesLNJ
2017-01-04Expose and document chatcommands as minetest.registered_chatcommandsrubenwardy
2017-01-02Add 2D sheet animation for nodessfan5
2017-01-02Added "[sheet" to the texture special commands.Luke Puchner-Hardman
"[sheet:WxH:X,Y" assumes the base image is a tilesheet with W*H tiles on it and crops to the tile at position X,Y. Basically it works like "[verticalframe" but in 2D. For testing, I combined the four default_chest images into one.
2016-12-26Various anticheat improvementssfan5
* Calculate maximum interact distance from wielded tool * New "interacted_while_dead" cheat_type for the Lua API * Disallow dropping items while dead * Move player to spawn before resurrecting them
2016-12-22Bump version to 0.4.150.4.15sfan5
2016-12-07Simple deco: Allow setting param2 value on placementAuke Kok
Schematics can already be placed with a param2 value, but not simple 1-node plant decorations of the simple type. This adds a `param2` field to the simple deco type that is checked to be between 0 and 255, and put to the placed node at mapgen. This can be used to put a degrotate value in, or e.g. a fill value for leveltype nodes, or a place_param2 value at mapgen placement, or vary the shape of meshoptions plantlike drawtype.
2016-12-02Fix incorrect docs about minetest.hud_replace_builtin (#4833)Amaz
Fixes https://github.com/minetest/minetest/issues/4832
2016-12-02Very small documentation fix. (#4830)Bluebird
2016-12-01Lua_api.txt: Clarify use of looping soundsparamat
2016-11-28Allow restricting detached inventories to one playersfan5
This combats the problem of sending the hundreds of "creative" / "armor" or whatever detached invs that exist on popular servers to each and every player on join or on change of said invs.
2016-11-26Wieldhand: Allow overriding the handTeTpaAka
2016-11-23Make supplying empty formspec strings close the formspec (#4737)orwell96
This will only happen if the formname matches or if formname is "".
2016-11-18Particles: Make attached particle spawners respect the parent's yaworwell96
Position, velocity and acceleration vectors of particles are rotated by the yaw of the parent object so that they are truly relative to it. Clarify new attached particle spawner behavior in lua_api.txt.
2016-11-18Builtin/../item: Enable tool breaking soundsAuke Kok
If a tool wears out and is destroyed, it's itemstack count goes to 0, and we can optionally play a breaking sound. This patch implements playing a breaking sound when this occurs. Sounds need to be added to the tool itemdef registration as the sound name string in the .sound.breaks member.
2016-11-15Lua_api.txt: Naming convention for custom item/entity fieldsWuzzy
Custom (non-engine) field names of items and entities are allowed. This is now documented in lua_api.txt. Field names beginning with an underscore are now reserved for mod use, the engine must not introduce any fields beginning with an underscore.
2016-11-14Revert "Adding particle blend, glow and animation (#4705)"sfan5
This reverts commit 93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.
2016-11-15Adding particle blend, glow and animation (#4705)Foghrye4
2016-11-14Rename nodeupdate and nodeupdate_single and make them part of the official APIest31
Now, the renamed forms of nodeupdate and nodeupdate_single are part of the official API. As nodeupdate has been used by Minetest Game and in mods despite of not being part of the official API, we ease the transition by still supporting it for the 0.4.15 release. After the release, the two functions can be removed. The removal will not violate the stability promise, as that promise only includes the official and documented API. Also, make some formerly global functions local. They most likely haven't been used by mods, therefore they won't get stubs with deprecation warnings, hard erroring directly.
2016-11-12Nodeupdate: Remove documentation in lua_api.txtparamat
In preparation for nodeupdate being renamed and made official API in future.
2016-11-02Add minetest.get_server_uptime() function to Lua API (#4702)Brandon
Add minetest.get_server_uptime() function to Lua API
2016-10-31Add version APIShadowNinja
2016-10-31Lua voxelmanip: Add optional buffer param for 'get param2 data'paramat
Update lua_api.txt.
2016-10-27Document item use callbacks (#4668)raymoo
2016-10-21Lua_api.txt: Clarify 'override_meta' bool in 'set mapgen setting'paramat
2016-10-17Builtin: Add vector.floor helper functionrubenwardy