aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_item.h
AgeCommit message (Collapse)Author
2021-10-25Fix item duplication if player dies during interact callback (alternative) ↵sfan5
(#11662)
2019-11-11[CSM] Expose more env functionssfan5
2019-11-10Call on_secondary_use when object is right-clickedsfan5
2018-08-16Raycast: export exact pointing location (#6304)Dániel Juhász
* Return intersection point in node coordinates. * Clarify 'intersection_point' documentation
2017-10-07Unkown nodes: Provide position on interact (#6505)SmallJoker
* Unkown nodes: Provide position on interact
2017-08-17C++ modernize: Pragma once (#6264)Loïc Blot
* Migrate cpp headers to pragma once
2017-07-07Expose getPointedThing to LuaDániel Juhász
This commit introduces Raycast, a Lua user object, which can be used to perform a raycast on the map. The ray is continuable, so one can also get hidden nodes (for example to see trough glass).
2015-12-02Add on_secondary_use when right clicking an item in the airAlex Ford
2014-04-15Fix all warnings reported by clangSfan5
2014-01-23Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacksShadowNinja
2013-11-01Add a callback: minetest.register_on_craft(itemstack, player,Novatux
old_craft_grid, craft_inv) and minetest.register_craft_predict(itemstack, player, old_craft_grid, craft_inv)
2013-06-06Fix class/struct forward declaration inconsistencies (good on ya, MSVC)0.4.7-MSVCKahrl
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)