aboutsummaryrefslogtreecommitdiff
path: root/doc
AgeCommit message (Collapse)Author
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
2016-10-15Make documentation about ItemStack:set_{name,count,wear} clearersfan5
These methods do not actually fail but instead clear the item stack and return false if a value like e.g. "" is passed.
2016-10-13Attached particle spawnersraymoo
2016-10-08Fix backwards compatibility issue introduced by close_on_enterrubenwardy
2016-10-08Lua_api.txt: Add biome and nodeupdate documentationparamat
Add missing documentation for 'register_biome' and 'clear_registered_biomes'. Add documentation for 'nodeupdate_single'. 'nodeupdate' is not yet documented due to a bug it causes.
2016-10-03Forceloading: Transient forceloadsraymoo
Adds a flag to forceload_block which lets you turn off persistence for that forceload.
2016-10-03Formspec: Add container[] and container_end[] elementsrubenwardy
2016-09-17Register.lua: Throw error if node 'light_source' > core.LIGHT_MAXparamat
Add 'core.LIGHT_MAX = 14' to builtin/game/constants.lua with the intention to replace misplaced 'default.LIGHT_MAX = 14' in Minetest Game. Add comment in light.h requiring the constant be changed in both places. Add lighting bug warning to note in lua_api.txt. There are hundreds of mod uses of 15 which causes a lighting bug.
2016-09-15Lua_api.txt: Add note of maximum value for node 'light_source'paramat
Maximum is 14. A value of 15 (reserved for direct sunlight) causes a lighting bug.
2016-09-15Add an [invert:<mode> texture modifierThomas--S
Inverts the given channels of the base image. Mode may contain the characters "r", "g", "b", "a". Only the channels that are mentioned in the mode string will be inverted.
2016-09-14Decorations: Generalise 'spawn by' to be used by all decoration typesparamat
In lua_api.txt, make clear that 'place on' and 'spawn by' can be lists.
2016-09-14Allow escaping of texture names when passed as an argument to a modifiersfan5
2016-09-12fix missing parameters in some mentions of entity callbacksraymoo
2016-09-10Return nil on empty get_area() (#4508)James Stevenson
2016-09-08Add minetest.unregister_item and minetest.register_alias_forcepaly2