aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_item.cpp
Commit message (Collapse)AuthorAge
* Async environment for mods to do concurrent tasks (#11131)sfan52022-05-02
|
* Refactor some Lua API functions in preparation for async envsfan52022-05-02
|
* script: Replace calls to depreated luaL_openlibsfan52021-05-30
|
* Pass ContentFeatures as reference to read_content_features (#10464)JosiahWI2020-10-13
|
* Add a short_description to be used by mods (#8980)DS2020-10-09
|
* LuaItemStack: Add __tostring metamethod (#8785)Paul Ouellette2020-06-09
| | | | | * LuaItemStack: Add __tostring metamethod * Clean up LuaItemStack::checkobject
* Fix alias handling of get_content_id (#9712)sfan52020-04-19
| | | fixes #9632
* Drop content_sao.{cpp,h}Loic Blot2020-04-11
| | | | | | | 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
* Overall improvements to log messages (#9598)sfan52020-04-08
| | | | Hide some unnecessarily verbose ones behind --trace or disable them entirely. Remove duplicate ones. Improve their contents in some places.
* minetest.get_content_id: error if the node does not exist (#9458)HybridDog2020-03-11
| | | If a mod creator makes a typing mistake, this function now causes an error instead of returning the id of "ignore".
* Allow calling ItemStack with no arguments (#8783)Paul Ouellette2019-10-23
|
* Add ItemStack:get_description() to get tooltip (#8847)Paul Ouellette2019-08-24
|
* Modernize lua read (part 2 & 3): C++ templating assurance (#7410)Loïc Blot2018-06-30
| | | | | | | | | * 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
* Fix missing ignore textures (#7326)you2018-05-20
|
* Node definition manager refactor (#7016)Dániel Juhász2018-02-10
| | | | | | | | | * Rename IWritableNodeDefManager to NodeDefManager * Make INodeDefManager functions const * Use "const *NodeDefManager" instead of "*INodeDefManager" * Remove unused INodeDefManager class * Merge NodeDefManager and CNodeDefManager * Document NodeDefManager
* Code modernization: subfolders (#6283)Loïc Blot2017-08-19
| | | | | | | | | | | | | * Code modernization: subfolders Modernize various code on subfolders client, network, script, threading, unittests, util * empty function * default constructor/destructor * for range-based loops * use emplace_back instead of push_back * C++ STL header style * Make connection.cpp readable in a pointed place + typo
* Fix various copy instead of const ref reported by cppcheck (#5615)Loïc Blot2017-04-19
| | | | * Also remove InventoryList::peekItem unused function * Fix some post increment to preincrement reported by cppcheck
* Fix inability to change metadata using stack:to_table() (#5547)numberZero2017-04-12
|
* Replace luaL_reg with luaL_Reg as recent LuaJIT dropped the Lua 5.0 compat ↵Loïc Blot2017-04-08
| | | | | (#5541) We are bundling Lua5.1 which has same macro
* Add `get_wielded_item`red-0012017-03-13
|
* Fix incompatibility of ItemStack.to_table() introduced by stack metarubenwardy2017-02-07
|
* Add ItemStack key-value meta storagerubenwardy2017-02-04
|
* Add minetest.unregister_item and minetest.register_alias_forcepaly22016-09-08
|
* Make ItemStack:set_count(0) clear the item stacksfan52016-01-15
| | | | fixes minetest/minetest_game#786
* LuaItemStack: Fix and document behavior of set_name, set_count, set_wear, ↵kwolekr2014-12-28
| | | | set_metadata
* Use "core" namespace internallyShadowNinja2014-05-08
|
* Remove lua_State parameter from LuaError::LuaErrorShadowNinja2014-03-15
|
* Handle LuaErrors in Lua -> C++ calls on LuaJITShadowNinja2013-12-18
|
* Add set_name(), set_count(), set_wear() and set_metadata() to Lua ItemStackPilzAdam2013-09-28
|
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
|
* Change ContentFeatures array to a vectorKahrl2013-07-14
|
* Add minetest.get_mapgen_object to APIkwolekr2013-06-27
|
* Add LuaVoxelManipkwolekr2013-06-27
|
* Fix itemstack:add item not working correctsapier2013-05-25
|
* Move scriptapi to separate folder (by sapier)sapier2013-05-25
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)