aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api
AgeCommit message (Collapse)Author
2022-12-24Add callback on_mapblocks_changedJude Melton-Houghton
2022-12-15Use a Lua error handler that calls tostring (#11913)Jude Melton-Houghton
2022-11-28Add `minetest.get_game_info` and allow reading `game.conf` (#12989)Jude Melton-Houghton
Co-authored-by: sfan5 <sfan5@live.de>
2022-10-18Check for falling `float` nodes in liquid transform (#12862)Jude Melton-Houghton
2022-10-18Implement vector and node conversion in Lua (#12609)Jude Melton-Houghton
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-26Modify PUC Lua to wrap C++ exceptions (#12445)Jude Melton-Houghton
2022-09-18Allow getmetatable in CSM (#12776)Jude Melton-Houghton
2022-09-16Add paramtype2s for 4 horizontal rotations and 64 colors (#11431)Wuzzy
4dir is like facedir, but only for 4 horizontal directions: NESW. It is identical in behavior to facedir otherwise. The reason why game makers would want to use this over facedir is 1) simplicity and 2) you get 6 free bits. It can be used for things like chests and furnaces and you don't need or want them to "flip them on the side" (like you could with facedir). color4dir is like colorfacedir, but you get 64 colors instead of only 8.
2022-09-06Code optimizations / refactor (#12704)Herman Semenov
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com> Co-authored-by: sfan5 <sfan5@live.de>
2022-08-02Add `minetest.settings` to CSM API and allow CSMs to provide ↵AFCMS
`settingtypes.txt` (#12131) Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2022-06-15Fix entity related bugssfan5
* Make minetest.add_entity() binary-safe * Fix on_death pushing dummy ObjectRef instead of nil
2022-06-11on_deactivate: distinguish removal and unloading (#11931)Lars Müller
Sometimes you need to be able to do removal-related cleanup, such as removing files from disk, or entries from a database. staticdata obviously isn't suitable for large data. The data shouldn't be removed if the entity is unloaded, only if it is removed.
2022-05-29Remove debug.get/setmetatable from security whiteliststefan
fixes #12216
2022-05-02Async environment for mods to do concurrent tasks (#11131)sfan5
2022-04-08Spacing fixesShadowNinja
2022-03-29Store vector metatable in registryJude Melton-Houghton
2022-03-29Fix the documentation of InvRef:get_lists() and clean up code (#12150)DS
2022-01-15Minor improvements to Lua sandboxsfan5
2022-01-06Fix damage wraparound if very high damage (#11872)Wuzzy
2021-12-18Refactor trusted mod checking codesfan5
2021-12-18Remove setlocal and setupvalue from `debug` table whitelistsfan5
It's likely that these could be used trick mods into revealing the insecure environment even if they do everything right (which is already hard enough).
2021-12-18Restructure devtest's unittests and run them in CI (#11859)sfan5
2021-11-26Add Lua bitop library (#9847)Lejo
2021-10-25Fix item duplication if player dies during interact callback (alternative) ↵sfan5
(#11662)
2021-10-01Split liquid_viscosity to liquid_viscosity and move_resistance (#10810)Wuzzy
2021-09-19Fix trivial typossfan5
2021-09-10Clean up/improve some scriptapi error handling codesfan5
2021-09-09Dynamic_Add_Media v2 (#11550)sfan5
2021-08-28Async-related script cleanupssfan5
2021-07-09Add API for mods to hook liquid transformation events (#11405)Warr1024
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.
2021-06-20Add min_y and max_y checks for Active Block Modifiers (ABM) (#11333)sfence
This check can be used by ABM to reduce CPU usage.
2021-04-18Isolate library tables between sandbox and insecure envsfan5
2021-03-30Degrotate support for mesh nodes (#7840)Vitaliy
2021-01-31Fix minetest.dig_node returning true when node isn't diggable (#10890)rubenwardy
2021-01-29Rework use_texture_alpha to provide three opaque/clip/blend modessfan5
The change that turns nodeboxes and meshes opaque when possible is kept, as is the compatibility code that warns modders to adjust their nodedefs.
2021-01-22Remove dead code (#10845)rubenwardy
2021-01-11Implement on_rightclickplayer callback (#10775)JDiaz
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-01-02Add on_deactivate callback for luaentities (#10723)hecks
2020-12-24Fix some minor code issues all over the placesfan5
2020-10-25Fix CSMs on arm64 (#10553)luk3yx
2020-06-07Fix Lua panic when error() message is not a stringPaul Ouellette
2020-05-27Value copy / allocation optimizations mostly in server, SAO and serialize codesfan5
2020-05-23Add on_authplayer callback and 'last_login' to on_joinplayer (#9574)sorcerykid
Replace on_auth_fail callback with more versatile on_authplayer Better clarify account login process in Lua API documentation Change initial timestamp for newly registered accounts to -1
2020-04-27Expose collision information to LuaEntity on_stepsfan5
2020-04-27script: Put getGuiEngine() inside a client-only #ifdefsfan5
2020-04-11Drop content_sao.{cpp,h}Loic Blot
Move LuaEntitySAO to a new dedicated file Drop TestSAO (useless object) Drop the old static startup initialized SAO factory, which was pretty useless. This factory was using a std::map for 2 elements, now just use a simple condition owned by ServerEnvironment, which will be lightweight, that will also drop a one time useful test on each LuaEntitySAO creation. This should reduce server load on massive SAO creation
2020-04-11Move PlayerSAO to dedicated filesLoic Blot
2020-04-11Move serveractiveobject & unitsaoLoic Blot
Move serverobject.{cpp,h} to server/serveractiveobject.{cpp,h} Move UnitSAO class to dedicated files
2020-04-08Work around LuaJIT issues on aarch64 (#9614)sfan5
- Move the text segment below the 47-bit limit, needed for script_exception_wrapper which must be lightuserdata - Replace CUSTOM_RIDX_SCRIPTAPI with full userdata
2020-04-08Overall improvements to log messages (#9598)sfan5
Hide some unnecessarily verbose ones behind --trace or disable them entirely. Remove duplicate ones. Improve their contents in some places.