SmallJoker
ba91624d8c
Allow damage for attached objects, add attach/detach callbacks ( #6786 )
...
* Allow right-clicking on attached LuaEntities
2018-04-30 18:43:49 +02:00
SmallJoker
67f97f8d32
on_death: Fix callback number of pushed arguments ( Fixes #6451 )
2017-09-21 19:56:24 +02:00
Loïc Blot
550c0404a8
Add LuaEntity on_death callback ( #6177 )
...
Add LuaEntity on_death callback
This fixes #5474
2017-07-27 11:32:35 +02:00
Vincent Glize
dc5bc6cac7
[CSM] Add event on_place_node API lua ( #5548 )
...
* [CSM] Add event on_place_node API lua
2017-04-29 12:08:16 +02:00
Dániel Juhász
58d83a7bb2
Hardware coloring for itemstacks
...
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-04-08 18:39:15 -07:00
Duane Robertson
3b9ae409c7
Tell on_punch to expect a return value
...
The return value should be interpreted as a boolean saying whether
the lua on_punch function handled damage or the system needs to.
2017-02-01 22:13:49 +01:00
sapier
814ee971f7
Make entity on_punch have same signature and behaviour as player on_punch
2017-01-28 15:57:54 +01:00
Kahrl
3304e1e517
Push error handler afresh each time lua_pcall is used
...
Fixes "double fault" / "error in error handling" messages
(issue #1423 ) and instead shows a complete backtrace.
2015-08-27 01:56:06 +02:00
kwolekr
2b04ab874d
SAPI: Track last executed mod and include in error messages
2015-08-12 23:56:12 -04:00
kwolekr
bcf47bc67c
Improve Script CPP API diagnostics
2015-08-05 21:13:03 -04:00
ShadowNinja
741df993ff
Fix object reference pushing functions when called from coroutines
2014-10-07 16:37:45 -04:00
ShadowNinja
c4359ff65c
Use "core" namespace internally
2014-05-08 13:02:04 -04:00
ShadowNinja
db4ea4658c
Only push the Lua error handler once
2014-04-27 16:15:53 -04:00
ShadowNinja
371b39a09a
Pass a errfunc to lua_pcall to get a traceback
2013-11-15 14:13:31 -05:00
Kahrl
4e1f50035e
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu
2013-08-14 21:03:33 +02:00
PilzAdam
8cae659786
Add an option to disable object <-> object collision for Lua entities
2013-07-20 20:43:11 +02:00
sapier
ab43377577
Move scriptapi to separate folder (by 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)
2013-05-25 00:51:02 +02:00