aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_item.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix item duplication if player dies during interact callback (alternative) ↵sfan52021-10-251-6/+15
| | | | (#11662)
* Clean up/improve some scriptapi error handling codesfan52021-09-101-6/+9
|
* Call on_secondary_use when object is right-clickedsfan52019-11-101-3/+2
|
* Raycast: export exact pointing location (#6304)Dániel Juhász2018-08-161-2/+2
| | | | | * Return intersection point in node coordinates. * Clarify 'intersection_point' documentation
* Fix builtin inventory list crash when size = 0 (#7297)SmallJoker2018-05-051-1/+1
|
* Unkown nodes: Provide position on interact (#6505)SmallJoker2017-10-071-4/+7
| | | | * Unkown nodes: Provide position on interact
* Set placer to nil instead of a non-functional one in item_OnPlace (#6449)DTA72017-09-211-1/+6
| | | | | | * Set placer to nil instead of a non-functional one This requires nil checks in core.rotate_node and core.rotate_and_place.
* Modernize source code: last part (#6285)Loïc Blot2017-08-201-4/+6
| | | | | | | | | | | * Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes
* [CSM] Add event on_place_node API lua (#5548)Vincent Glize2017-04-291-22/+1
| | | | * [CSM] Add event on_place_node API lua
* Add `get_wielded_item`red-0012017-03-131-6/+6
|
* Add on_secondary_use when right clicking an item in the airAlex Ford2015-12-021-0/+26
|
* Push error handler afresh each time lua_pcall is usedKahrl2015-08-271-10/+20
| | | | | Fixes "double fault" / "error in error handling" messages (issue #1423) and instead shows a complete backtrace.
* SAPI: Track last executed mod and include in error messageskwolekr2015-08-121-0/+3
|
* Improve Script CPP API diagnosticskwolekr2015-08-051-11/+6
|
* Fix object reference pushing functions when called from coroutinesShadowNinja2014-10-071-6/+6
|
* Use "core" namespace internallyShadowNinja2014-05-081-8/+8
|
* Only push the Lua error handler onceShadowNinja2014-04-271-36/+22
|
* Add more informative error messages for inventory and item method errorsShadowNinja2014-03-151-10/+35
|
* Pass a errfunc to lua_pcall to get a tracebackShadowNinja2013-11-151-29/+41
|
* Add a callback: minetest.register_on_craft(itemstack, player,Novatux2013-11-011-0/+51
| | | | | | old_craft_grid, craft_inv) and minetest.register_craft_predict(itemstack, player, old_craft_grid, craft_inv)
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-141-0/+3
|
* Move scriptapi to separate folder (by sapier)sapier2013-05-251-0/+164
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)