summaryrefslogtreecommitdiff
path: root/src/script/lua_api
Commit message (Collapse)AuthorAge
* ObjectRef: Re-add legacy code for set_physics_override (#10585)SmallJoker2020-11-10
| | | These arguments are used at least by MTG beds and homedecor_common. A deprecation warning is shown to safely remove it in a future release.
* Fix ObjectRef errors due to lua_isnil() (#10564)Zughy2020-11-04
| | | Treat 'none' values as 'nil'
* Fix incorrect deprecation hintsSmallJoker2020-11-01
| | | | "good" and "bad" were swapped in the process, resulting in wrong deprecation messages
* Fix segfault in deprecation logging due to tail call, log by default (#10174)rubenwardy2020-10-31
|
* Clean up l_object.cpp (#10512)Zughy2020-10-22
| | | Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
* Fix float argument check in minetest.set_timeofday() (#10483)Zughy2020-10-13
| | | Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
* Add ObjectRef:get_children() (#10480)Zughy2020-10-13
| | | Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
* Pass ContentFeatures as reference to read_content_features (#10464)JosiahWI2020-10-13
|
* Add missing type check to InvRef:set_lists() (#10476)Zughy2020-10-11
|
* Add a short_description to be used by mods (#8980)DS2020-10-09
|
* Add minetest.get_artificial_light and minetest.get_natural_light (#5680)HybridDog2020-10-06
| | | | | Add more detailed light detection functions, a function to get the artificial light (torches) and a function to get the sunlight as seen by the player (you can specify timeofday). Co-authored-by: rubenwardy <rw@rubenwardy.com>
* Remove unused functions reported by cppcheck (#10463)SmallJoker2020-10-05
| | | | | | | Run unused functions reported by cppcheck This change removes a few (but not all) unused functions. Some unused helper functions were not removed due to their complexity and potential of future use.
* Minimap as HUD element with API controlPierre-Yves Rollo2020-10-04
| | | | | | | Features: * Define Minimap available modes (surface/radar, scale) from Lua, using player:set_minimap_modes() * New HUD elements for displaying minimap with custom size and placing * New minimap mode for displaying a texture instead of the map
* Add First Person Attachments (#10360)Jordan Snelling2020-10-04
| | | | | | Fixes some other third person camera specific attachments. Implements a single new flag for entities to be forced visible in first person mode. Old mods do not need to be updated to use the new flag and are fully backwards compatible.
* Deprecate get_player_velocity and add_player_velocity (#10173)rubenwardy2020-10-04
|
* Clean up server-side translations, remove global variable (#10075)rubenwardy2020-09-16
|
* Lua API: Register missing get_texture_mod function (#10338)karamel592020-08-27
|
* Allow binding dig, place actions to keys; remove LMB/RMB hardcodingANAND2020-08-15
| | | | Co-authored-by: Sam Caulfield <sam@samcaulfield.com>
* Add PUT and DELETE request + specific method value to HTTP API (#9909)Lejo2020-07-29
|
* Sanitize world directory names on create. Keep original name separate (#9432)Hugues Ross2020-07-28
| | | Blacklisted characters are replaced by '_' in the path. The display name is stored in world.mt, and duplicate file names are resolved by adding an incrementing suffix (_1, _2, _3, etc).
* Revert "Auto delete MetaData when = 0 (#8770)" (#10183)Lars Müller2020-07-16
| | | This reverts commit 808eb4c5714da5ac36f4a70653d6b3805060828c.
* Implement grouped mode for find_nodes_in_area (#9888)sfan52020-07-14
| | | plus general improvements to find_node_* functions
* Fix HTTP API not being available in async mainmenu (#10086)rubenwardy2020-06-22
|
* Exposing the zoom key to Lua API (#9903)Lars Müller2020-06-13
| | | Co-authored-by: Raul Ferriz <raul.ferriz@gmail.com>
* Server pushing media at runtime (#9961)sfan52020-06-13
|
* LuaItemStack: Add __tostring metamethod (#8785)Paul Ouellette2020-06-09
| | | | | * LuaItemStack: Add __tostring metamethod * Clean up LuaItemStack::checkobject
* Add HTTP API to main menu (#9998)rubenwardy2020-06-06
|
* Implement spawning particles with node texture appearancesfan52020-05-23
|
* Modernize include guards and add missing ones (#9898)Awkor2020-05-23
|
* Check for valid base64 before decoding (#9904)Lejo12020-05-22
|
* Cleanup of particle & particlespawner structures and code (#9893)sfan52020-05-22
|
* Allow more than 255 biomes, document new maximum (#9855)Paramat2020-05-20
| | | | Change biomemap data type from u8 to u16. New technical (not practical) maximum is 65535 biomes.
* Rework functionality of leveled nodes (#9852)Wuzzy2020-05-19
| | | | Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
* Add core.open_url() to main menu API (#8592)rubenwardy2020-05-17
|
* CSM: Bugfixes to camera:get_pos() and camera:get_fov()sfan52020-05-14
| | | closes #9857
* Server class code cleanups (#9769)Loïc Blot2020-05-07
| | | | | | | | | | | | | | | | | | | * Server::overrideDayNightRatio doesn't require to return bool There is no sense to sending null player, the caller should send a valid object * Server::init: make private & cleanup This function is always called before start() and loads some variables which can be loaded in constructor directly. Make it private and call it directly in start * Split Server inventory responsibility to a dedicated object This splits permit to found various historical issues: * duplicate lookups on player connection * sending inventory to non related player when a player connects * non friendly lookups on detached inventories ownership This reduce the detached inventory complexity and also increased the lookup performance in a quite interesting way for servers with thousands of inventories.
* Fix remaining issues with mapgen scriptapisfan52020-05-05
|
* Give the Mapgen on each EmergeThread its own Biome/Ore/Deco/SchemManager copysfan52020-05-05
|
* Sky API: Rename *_tint to fog_*_tint for consistencySmallJoker2020-05-05
|
* Auto delete MetaData when = 0 (#8770)Lejo2020-05-02
| | | | * Auto delete MetaData when = 0
* set_fov: Add support for time-based transitions (#9705)ANAND2020-05-02
|
* Allow connection info to be missing from minetest.get_player_information() ↵sfan52020-05-01
| | | | | | (#9739) fixes #9352 This reverts commit 23c907befea02005e2c0c87fca0131b60aace18a.
* Give the online lua mainmenu also the client_list and mods (#8691)Lejo2020-05-01
|
* Forbid object:attach(obj, ...) (#9762)Loïc Blot2020-04-27
| | | Fixes #9761
* Script: Enforce type checks if not nil (#9748)SmallJoker2020-04-27
| | | | * Script: Enforce type checks if not nil
* script: Put getGuiEngine() inside a client-only #ifdefsfan52020-04-27
|
* script: Fix add_entity returning unusable ref if object deleted in on_activatesfan52020-04-27
|
* Add server side translations capability (#9733)EvidenceB Kidscode2020-04-25
| | | | * Add server side translations capability
* Fix configuration caching in log_deprecated (#9697)HybridDog2020-04-22
| | | | | | * Fix configuration caching in log_deprecated The configured variable was never set to true. I've set the variables to thread_local because the configuration should be reloaded after reentering the world from mainmenu.
* Fix alias handling of get_content_id (#9712)sfan52020-04-19
| | | fixes #9632