aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_entity.cpp
AgeCommit message (Collapse)Author
2022-01-06Fix damage wraparound if very high damage (#11872)Wuzzy
2021-01-02Add on_deactivate callback for luaentities (#10723)hecks
2020-04-27Expose collision information to LuaEntity on_stepsfan5
2019-07-30Move the clamping of hp/breath when their maximums change to ↵Beha
read_object_properties(). (#8689) This prevents set_properties() calls that have nothing to do with hp_max or breath_max overriding the saved hp before another mod has the chance to set a player's intended hp_max (such as in on_joinplayer).
2019-02-10Consistent HP and damage types (#8167)SmallJoker
Remove deprecated HUDs and chat message handling. Remove unused m_damage variable (compat break). HP: s32 for setter/calculations, u16 for getter.
2018-06-30Modernize lua read (part 2 & 3): C++ templating assurance (#7410)Loïc Blot
* 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
2018-04-30Allow damage for attached objects, add attach/detach callbacks (#6786)SmallJoker
* Allow right-clicking on attached LuaEntities
2017-09-21on_death: Fix callback number of pushed arguments (Fixes #6451)SmallJoker
2017-07-27Add LuaEntity on_death callback (#6177)Loïc Blot
Add LuaEntity on_death callback This fixes #5474
2017-04-29[CSM] Add event on_place_node API lua (#5548)Vincent Glize
* [CSM] Add event on_place_node API lua
2017-04-08Hardware coloring for itemstacksDániel Juhász
Adds the possibility to colorize item stacks based on their metadata. In the item/node definition you can specify palette (an image file) and color (fallback color if the item has no palette or metadata). Then you can add palette_index to the metadata. Dropped itemstacks with different colors do not merge.
2017-02-01Tell on_punch to expect a return valueDuane Robertson
The return value should be interpreted as a boolean saying whether the lua on_punch function handled damage or the system needs to.
2017-01-28Make entity on_punch have same signature and behaviour as player on_punchsapier
2015-08-27Push error handler afresh each time lua_pcall is usedKahrl
Fixes "double fault" / "error in error handling" messages (issue #1423) and instead shows a complete backtrace.
2015-08-12SAPI: Track last executed mod and include in error messageskwolekr
2015-08-05Improve Script CPP API diagnosticskwolekr
2014-10-07Fix object reference pushing functions when called from coroutinesShadowNinja
2014-05-08Use "core" namespace internallyShadowNinja
2014-04-27Only push the Lua error handler onceShadowNinja
2013-11-15Pass a errfunc to lua_pcall to get a tracebackShadowNinja
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl
2013-07-20Add an option to disable object <-> object collision for Lua entitiesPilzAdam
2013-05-25Move scriptapi to separate folder (by sapier)sapier
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)