summaryrefslogtreecommitdiff
path: root/builtin/item.lua
AgeCommit message (Collapse)Author
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)
2013-04-02Return an ItemStack in minetest.item_place() if nodes' on rightclick doesnt ↵PilzAdam
return it
2013-03-29Fix node replacement in not-quite-loaded chunks0gb.us
When first entering an area, sometimes placing nodes replaces other nodes that are not buildable_to. This seems to be caused by the fact that nodes in unloaded map blocks are treated as ignore, a node that is buildable_to. This fixes that, by using get_node_or_nil() instead of the previously-used get_node(), then checking to see if the nodes were actually loaded before replacing.
2013-02-21Drop nodes as items when dugged and no room in inventory and dont remove ↵PilzAdam
dropped items when no room in inventory
2013-02-19Dont drop tools on rightclickPilzAdam
2013-02-13Fix minetest.item_place_node() and minetest.item_drop() to always return an ↵PilzAdam
ItemStack
2013-02-13Fix to on_rightclick not able to change wielded_itemRealBadAngel
2013-01-27Dont call on_rightclick() if sneak is pressedPilzAdam
2013-01-04Add on_rightclick(pos, node, clicker) callback for nodesPilzAdam
2012-12-17Add ability to change the itemstack in placenode callbacksPilzAdam
2012-12-02Fix minetest.get_node_drops(). It should always return list of item names, ↵Ilya Zhuravlev
not ItemStack(s).
2012-12-01Only check attachment for nodes with group attached_nodePilzAdam
2012-12-01Add the group attached_nodePilzAdam
Nodes in this group will be dropped as items if the node under them or the node in the wallmounted direction is not walkable.
2012-09-02Add overridable function for handling dropped items from nodesPerttu Ahola
2012-08-19Fix github issue #213: Dropping unknown items crashes the gamePerttu Ahola
The items will now just disappear when dropped.
2012-08-12Allow digging of unknown nodesMatthew I
This allows the removal of nodes with unknown types. get_item_callback() (C++) would fail if a node has an unknown type. Now it will try using the callback from minetest.nodedef_default in this case. Also, minetest.node_dig() (Lua) was altered to always allow digging when the node definition is empty (i.e. unknown node).
2012-07-25Remove special handling of creative modePerttu Ahola
2012-07-25Detached inventory callbacks and reworked node metadata callbacksPerttu Ahola
2012-07-24builtin/item.lua: callbacks with copies of positions and nodes rather than ↵Perttu Ahola
recycle the same ones, which callbacks can modify
2012-07-23Add oldnode parameter to minetest.register_on_placenode callbackPerttu Ahola
2012-07-23Fix building on top of (pointable && buildable_to) nodesPerttu Ahola
2012-07-21Actually fix facedir-rotated nodes placed using minetest.env:place_node()Perttu Ahola
2012-07-21Handle nil placer as it might occur when using minetest.env:place_node. (Uberi)darkrose
2012-06-16Remove tiles and special_tiles from node definition prototype because ↵Perttu Ahola
otherwise the old names can't be used
2012-06-16Update field names to non-deprecated ones in node definition prototypePerttu Ahola
2012-06-10Node placement client-side predictionPerttu Ahola
2012-06-05place_node, dig_node and punch_node; an in-game tester tool; remove old codePerttu Ahola
2012-06-03Add can_dig callbackdarkrose
2012-06-03Implement locked chest; add after_place_node and after_dig_node node callbacksPerttu Ahola
2012-06-03on_metadata_inventory_{move,offer,take}Perttu Ahola
2012-06-03Random node metadata thingsPerttu Ahola
2012-06-03Attempt to begin to implement chests and furnace in Lua (with problems)Perttu Ahola
2012-04-09Allow redefining minetest.item_place and the likePerttu Ahola
2012-04-01Implement dropped items as LuaEntities; leave the old ones as is for ↵Perttu Ahola
compatibility
2012-04-01Split builtin.lua to multiple filesPerttu Ahola