aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_env.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Spacing fixesShadowNinja2022-04-081-2/+2
|
* Clean up/improve some scriptapi error handling codesfan52021-09-101-18/+5
|
* Add API for mods to hook liquid transformation events (#11405)Warr10242021-07-091-0/+34
| | | | | | | | | Add API for mods to hook liquid transformation events Without this API, there is no reliable way for mods to be notified when liquid transform modifies nodes and mods are forced to poll for changes. This allows mods to detect changes to flowing liquid nodes and liquid renewal using event-driven logic.
* Add min_y and max_y checks for Active Block Modifiers (ABM) (#11333)sfence2021-06-201-1/+7
| | | This check can be used by ABM to reduce CPU usage.
* Overall improvements to log messages (#9598)sfan52020-04-081-1/+1
| | | | Hide some unnecessarily verbose ones behind --trace or disable them entirely. Remove duplicate ones. Improve their contents in some places.
* Check for 'action' field in ABMs & LBMsSmallJoker2019-07-271-0/+8
|
* Modernize lua read (part 2 & 3): C++ templating assurance (#7410)Loïc Blot2018-06-301-6/+6
| | | | | | | | | * Modernize lua read (part 2 & 3): C++ templating assurance Implement the boolean reader Implement the string reader Also remove unused & unimplemented script_error_handler Add a reader with default value
* LINT: add clang-tidy step (#6295)Loïc Blot2018-04-011-4/+4
| | | | | | | | | * Implement new travis clang-tidy build step * This step enable some rules and enforce one rule as error * This permits to have some C++ quality rules based on clang & clang contributor guidelines * Fix clang-tidy reported problems on push_back -> emplace_back
* Move files to subdirectories (#6599)Vitaliy2017-11-081-1/+1
| | | | * Move files around
* Make INodeDefManager::getIds return a vector, not a setKahrl2017-09-121-6/+6
|
* Added lua tracebacks to some errors where you have been blind to what… (#5043)sapier2017-01-151-3/+9
| | | | * Added lua tracebacks to some errors where you have been blind to what actually went wrong
* Emergeblocks: Fix occasional crashRogier2016-10-161-1/+3
| | | | | | | Modification of the emergeblocks internal state was not protected by a lock, causing a race condition. This can be reproduced by repeatedly running emergeblocks for an already-generated section of the map (with multiple emerge threads).
* s_env.{cpp, h} cleanupsest312016-03-071-55/+53
| | | | | | * Replace string by-val passing with const reference * Fix code style * Remove redundant `int table` definition and indentation level
* Add minetest.register_lbm() to run code on block load onlyest312016-03-071-2/+53
|
* Add callback parameter for core.emerge_area()kwolekr2015-11-021-0/+39
|
* ABMs: Make catch-up behaviour optionalparamat2015-10-181-2/+5
| | | | | Default is true for backwards compatibility Update lua_api.txt
* SAPI: Track last executed mod and include in error messageskwolekr2015-08-121-3/+3
|
* Expose mapgen parameters on scripting initkwolekr2014-12-291-31/+0
| | | | | Add minetest.get_mapgen_params() Deprecate minetest.register_on_mapgen_init()
* Expose mapgen chunksize in on_mapgen_init callbackskwolekr2014-12-141-7/+10
|
* Fix object reference pushing functions when called from coroutinesShadowNinja2014-10-071-1/+1
|
* Don't call a player event without having player to do a event forsapier2014-08-211-0/+3
|
* Use "core" namespace internallyShadowNinja2014-05-081-8/+8
|
* Fix heart + bubble bar size on different texture packssapier2014-05-071-0/+18
| | | | | | | Add DPI support for statbar Move heart+bubble bar to Lua HUD Add statbar size (based upon an idea by blue42u) Add support for customizing breath and statbar
* Make flag strings clear specified flag with 'no' prefixkwolekr2014-02-081-1/+2
| | | | | Remove flagmask field from set_mapgen_params table Add small bits of needed documentation
* Fix crash when a error occurs in a globalstep callbackShadowNinja2014-02-031-1/+6
|
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-141-7/+4
|
* Add Lua on_mapgen_init callback, and minetest.set_mapgen_params APIkwolekr2013-06-271-0/+28
|
* Move scriptapi to separate folder (by sapier)sapier2013-05-251-0/+132
On the lua side, notably minetest.env:<function>(<args>) should now be replaced by minetest.<function>(<args>). The old way is and will stay supported for a long time. Also: Update and clean up lua_api.txt (by celeron55) Move EnvRef to lua and remove add_rat and add_firefly (by kahrl) Add separate src/util/CMakeLists.txt, other minor fixes (by kahrl)