aboutsummaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
Commit message (Collapse)AuthorAge
* lua_api.txt: Add link to Minetest Modding Book (#8826)ANAND2019-08-20
|
* Add function `minetest.read_schematic`upsilon2019-08-14
|
* Add player knockback on punch to builtinsfan52019-08-10
|
* Implement adding velocity to player from Luasfan52019-08-10
| | | | The intended usecase is knockback, but there's potential for more.
* Allow customizing chat message format (#8529)ANAND2019-08-08
|
* Add formspec testing to test mod in minimalrubenwardy2019-08-03
|
* Add styles to most elementsrubenwardy2019-08-03
|
* Add style[] tag with button supportrubenwardy2019-08-03
|
* Group "immortal" also protects players from damageWuzzy2019-08-01
| | | | | | | | | | Document new meaning of immortal=1 for players Disable breathing if player is immortal Hide builtin statbars if player immortal (delayed) Co-authored-by: ClobberXD <ClobberXD@gmail.com>
* lua_api.txt clarifications regarding mapgen object index IDs and handles. ↵Beha2019-07-29
| | | | (#8713)
* Document 'wield_item' entity property (#8694)Alex2019-07-26
|
* Improve documentation of mapgen aliases (#8693)Paramat2019-07-20
|
* Add vector.dot and vector.crossHybridDog2019-07-16
| | | | Mostly copied from MarkuBu's code
* Docs: Clarify where to check for 'protection_bypass' (#8675)SmallJoker2019-07-14
|
* Document ObjectRef:remove under Lua entity (#8659)ANAND2019-07-08
| | | | | This was previously documented under the general ObjectRef section with a note that this won't work on players. So I think this would fit better with Lua entity-only methods. This PR also changes the title of the Lua entity-only section from `LuaEntitySAO-only` to `Lua entity only`.
* Update biome definition dungeon node documentation (#8650)Paramat2019-07-01
|
* Dungeongen: Remove most hardcoded dungeon nodes (#8594)Paramat2019-06-30
| | | | | | | | | | | | | | | Biome-defined dungeon nodes was added as a feature to MT 5.0.0. So now remove most of the hardcoded dungeon node code that assumes a game has stone, sandstone, desert stone, and no other stone types. If biome-defined dungeon nodes are not found, dungeon nodes fall back to the 'cobble' mapgen alias if present, if not present they fall back to biome-defined 'stone'. Remove now-unnecessary mapgen aliases from MapgenBasic. Non-mgv6 games now only need to define 3 to 5 mapgen aliases. Document dungeon parameters. Make c_lava_source fallback to c_water_source as both are used as cave liquids.
* Add compatible, consistent coordinate system to FormSpecs. (#8524)v-rob2019-06-27
|
* Add support for 9-sliced backgrounds (#8600)rubenwardy2019-06-22
| | | | | 9-slice textures are commonly used in GUIs to allow scaling them to match any resolution without distortion. https://en.wikipedia.org/wiki/9-slice_scaling
* HTTP API: Allow binary downloads and headers (#8573)SmallJoker2019-06-06
| | | | Add minetest.features.httpfetch_binary_data
* Allow multiple cave liquids in a biome definition (#8481)Paramat2019-05-18
| | | | | | | | | | | | | This allows games to specify biome cave liquids and avoid the old hardcoded behaviour, but preserves the ability to have multiple cave liquids in one biome, such as lava and water. When multiple cave liquids are defined by the biome definition, make each entire cave use a randomly chosen liquid, instead of every small cave segment using a randomly chosen liquid. Plus an optimisation: Don't place nodes if cave liquid is defined as 'air'
* Better document behavior of on_punchplayerANAND2019-04-29
| | | | Esp. the fact that it's invoked even if the punched player is dead
* Force send a mapblock to a player (#8140)sofar2019-04-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Force send a mapblock to a player. Send a single mapblock to a specific remote player. This is badly needed for mods and games where players are teleported into terrain which may be not generated, loaded, or modified significantly since the last player visit. In all these cases, the player currently ends up in void, air, or inside blocks which not only looks bad, but has the effect that the player might end up falling and then the server needs to correct for the player position again later, which is a hack. The best solution is to send at least the single mapblock that the player will be teleported to. I've tested this with ITB which does this all the time, and I can see it functioning as expected (it even shows a half loaded entry hallway, as the further blocks aren't loaded yet). The parameter is a blockpos (table of x, y, z), not a regular pos. The function may return false if the call failed. This is most likely due to the target position not being generated or emerged yet, or another internal failure, such as the player not being initialized. * Always send mapblock on teleport or respawn. This avoids the need for mods to send a mapblock on teleport or respawn, since any call to `player:set_pos()` will pass this code.
* Attend to review, re-arrange blank lines, update lua_api.txtparamat2019-04-14
|
* Add Mkdocs API site (#8133)Paul Ouellette2019-04-12
| | | | * Add MkDocs API site
* Add node field to PlayerHPChangeReason table (#8368)Paul Ouellette2019-04-11
|
* Nodedef 'drop' documentation: Improve, add tool filtering (#8458)Paramat2019-04-09
|
* Require 'waving = 3' in a nodedef to apply the liquid waving shader (#8418)Paramat2019-03-27
| | | | | | | | Makes the liquid waving shader per-nodedef like waving leaves/plants, instead of being applied to all liquids. Like the waving leaves/plants shaders, the liquid waving shader can also be applied to meshes and nodeboxes. Derived from a PR by t0ny2.
* Dungeons: Do not remove nodes that have 'is_ground_content = false' (#8423)Paramat2019-03-26
| | | | | | | Like randomwalk caves, preserve nodes that have 'is_ground_content = false', to avoid dungeons that generate out beyond the edge of a mapchunk destroying nodes added by mods in 'register_on_generated()'. Issue discovered by, and original PR by, argyle77.
* Builtin: Add vector.angle(). Returns the angle between 2 vectors (#7738)ANAND2019-03-17
|
* Lua_api.txt: Document blockpos, coordinate conversion, map terminology (#8376)Paramat2019-03-16
| | | Also fix and improve LVM 'calc_lighting()' warning.
* Document the `float` special group (#8306)DS2019-03-10
|
* Add math.factorial (#8298)HybridDog2019-03-05
|
* Add sounds for falling and attached nodes (#7719)DS2019-03-05
| | | | | | | | | * Add sounds for falling and attached nodes The sound specified in `node_definition.sounds.fall` is used. When a falling node is spawned at a position or an attached node drops, the sound is played at this position. * allow all sorts of soundspecs
* lua_api.txt, settingtypes.txt: Various improvements (#8252)Paramat2019-02-18
|
* Update many things in Lua API docs (#8236)Wuzzy2019-02-17
| | | | | | | | | - minetest.get_hit_params - minetest.get_dig_params - table.indexof - Scope of minetest.register_alias - Vector function parameters - More explanation of when `minetest.on_player_receive_fields` is called - Syntax/semantics of the fields in `minetest.on_player_receive_fields`
* lua_api.txt: Various additions and improvements (#8245)Paramat2019-02-17
|
* Use true pitch/yaw/roll rotations without loss of precision by pgimeno (#8019)Paul Ouellette2019-02-07
| | | | | Store the rotation in the node as a 4x4 transformation matrix internally (through IDummyTransformationSceneNode), which allows more manipulations without losing precision or having gimbal lock issues. Network rotation is still transmitted as Eulers, though, not as matrix. But it will stay this way in 5.0.
* Remove incorrect feature flag (#8086)Paul Ouellette2019-01-19
| | | And document the versions that introduced the features.
* Deprecate modpack.txt and use modpack.conf instead (#7892)rubenwardy2019-01-06
| | | | * Deprecate modpack.txt and use modpack.conf instead
* Proselytize the network. Use IEEE F32 (#8030)SmallJoker2019-01-03
| | | | | * Proselytize the network. Use IEEE F32 * Remove unused V2F1000 functions
* Add minetest.load_area (#8023)HybridDog2018-12-31
|
* Lua_api.txt: Add documentation of missing field to 'on_punch' (#8008)ClobberXD2018-12-22
|
* Lua_api.txt: Document inventory sending behaviour (#7720)zeuner2018-12-18
|
* (client_)lua_api.txt: Rename func -> function (#7960)ClobberXD2018-12-12
|
* lua_api.txt: Various fixes and improvements (#7945)Paul Ouellette2018-12-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add missing tables of registered things * Eliminate some duplication Registration functions in 'Registered definitions' section merged into 'Registration functions' section. * Misc. fixes * Add privilege definition table * Remove not-special soil group from special groups * Merge two registration functions sections * Move 'added to' information to tables section Also fix some capitalization and missing periods * Minor fixes * Split Registration functions into two subsections And update Registered definition tables to match order * Fixes
* Add object visual type 'item' (#7870)Alex2018-12-11
|
* Fix wrong parameter order for inventory callbacks (#7952)Paul Ouellette2018-12-10
|
* Add eat sound (#7956)Wuzzy2018-12-10
|
* Raise hotbar limit to 32 slots, add associated keybinding options (#7916)Vanessa Dannenberg2018-12-02
| | | | add associated keybinding options update docs and settingtypes