aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
AgeCommit message (Collapse)Author
2021-03-23Fix broken `BiomeGen` abstraction (#11107)sfan5
2021-03-20Schematic: Properly deal with before/after node resolving and document (#11011)SmallJoker
This fixes an out-of-bounds index access when the node resolver was already applied to the schematic (i.e. biome decoration). Also improves the handling of the two cases: prior node resolving (m_nodenames), and after node resolving (manual lookup)
2021-03-04Protect mg_name and mg_flags from being set by Lua (#11010)sfan5
2021-03-01Settings: Push groups in to_table as wellSmallJoker
2021-02-17Add nametag background setting and object property (#10937)rubenwardy
2021-02-07Use consistent temp folder path (#10892)rubenwardy
2021-02-06Reduce ore noise_parms error to deprecation warning (#10921)rubenwardy
Fixes #10914
2021-02-02Drop wide/narrow conversion functionssfan5
The only valid usecase for these is interfacing with OS APIs that want a locale/OS-specific multibyte encoding. But they weren't used for that anywhere, instead UTF-8 is pretty much assumed when it comes to that. Since these are only a potential source of bugs and do not fulfil their purpose at all, drop them entirely.
2021-02-01Revise dynamic_add_media API to better accomodate future changessfan5
2021-01-31Preserve immortal group for players when damage is disabledsfan5
2021-01-31Cache client IP in RemoteClient so it can always be retrieved (#10887)sfan5
specifically: after the peer has already disappeared
2021-01-29Settings: Proper priority hierarchySmallJoker
Remove old defaults system Introduce priority-based fallback list Use new functions for map_meta special functions Change groups to use end tags Unittest changes: * Adapt unittest to the new code * Compare Settings objects
2021-01-22Use JSON for favorites, move server list code to Lua (#10085)rubenwardy
Co-authored-by: sfan5 <sfan5@live.de>
2021-01-21MgOre: Fix invalid field polymorphism (#10846)rubenwardy
2021-01-21Removed some obsolete code (#10562)Zughy
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2021-01-21ObjectRef: fix some v3f checks (#10602)Zughy
2021-01-04ContentDB: Add overwrite dialog when content is already installed (#10768)rubenwardy
2021-01-02Add on_deactivate callback for luaentities (#10723)hecks
2020-12-29Add minetest.get_objects_in_area (#10668)Elias Fleckenstein
2020-12-24Fix minetest.is_nanLars Mueller
2020-12-23Fix unsafe cast in l_objectrubenwardy
2020-12-19Add open user data button to main menu (#10579)rubenwardy
2020-11-10ObjectRef: Re-add legacy code for set_physics_override (#10585)SmallJoker
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.
2020-11-04Fix ObjectRef errors due to lua_isnil() (#10564)Zughy
Treat 'none' values as 'nil'
2020-11-01Fix incorrect deprecation hintsSmallJoker
"good" and "bad" were swapped in the process, resulting in wrong deprecation messages
2020-10-31Fix segfault in deprecation logging due to tail call, log by default (#10174)rubenwardy
2020-10-22Clean up l_object.cpp (#10512)Zughy
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2020-10-13Fix float argument check in minetest.set_timeofday() (#10483)Zughy
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2020-10-13Add ObjectRef:get_children() (#10480)Zughy
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2020-10-13Pass ContentFeatures as reference to read_content_features (#10464)JosiahWI
2020-10-11Add missing type check to InvRef:set_lists() (#10476)Zughy
2020-10-09Add a short_description to be used by mods (#8980)DS
2020-10-06Add minetest.get_artificial_light and minetest.get_natural_light (#5680)HybridDog
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>
2020-10-05Remove unused functions reported by cppcheck (#10463)SmallJoker
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.
2020-10-04Minimap as HUD element with API controlPierre-Yves Rollo
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
2020-10-04Add First Person Attachments (#10360)Jordan Snelling
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.
2020-10-04Deprecate get_player_velocity and add_player_velocity (#10173)rubenwardy
2020-09-16Clean up server-side translations, remove global variable (#10075)rubenwardy
2020-08-27Lua API: Register missing get_texture_mod function (#10338)karamel59
2020-08-15Allow binding dig, place actions to keys; remove LMB/RMB hardcodingANAND
Co-authored-by: Sam Caulfield <sam@samcaulfield.com>
2020-07-29Add PUT and DELETE request + specific method value to HTTP API (#9909)Lejo
2020-07-28Sanitize world directory names on create. Keep original name separate (#9432)Hugues Ross
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).
2020-07-16Revert "Auto delete MetaData when = 0 (#8770)" (#10183)Lars Müller
This reverts commit 808eb4c5714da5ac36f4a70653d6b3805060828c.
2020-07-14Implement grouped mode for find_nodes_in_area (#9888)sfan5
plus general improvements to find_node_* functions
2020-06-22Fix HTTP API not being available in async mainmenu (#10086)rubenwardy
2020-06-13Exposing the zoom key to Lua API (#9903)Lars Müller
Co-authored-by: Raul Ferriz <raul.ferriz@gmail.com>
2020-06-13Server pushing media at runtime (#9961)sfan5
2020-06-09LuaItemStack: Add __tostring metamethod (#8785)Paul Ouellette
* LuaItemStack: Add __tostring metamethod * Clean up LuaItemStack::checkobject
2020-06-06Add HTTP API to main menu (#9998)rubenwardy
2020-05-23Implement spawning particles with node texture appearancesfan5