aboutsummaryrefslogtreecommitdiff
path: root/builtin/item.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Return an ItemStack in minetest.item_place() if nodes' on rightclick doesnt ↵PilzAdam2013-04-021-1/+1
| | | | return it
* Fix node replacement in not-quite-loaded chunks0gb.us2013-03-291-3/+10
| | | | 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.
* Drop nodes as items when dugged and no room in inventory and dont remove ↵PilzAdam2013-02-211-1/+9
| | | | dropped items when no room in inventory
* Dont drop tools on rightclickPilzAdam2013-02-191-2/+1
|
* Fix minetest.item_place_node() and minetest.item_drop() to always return an ↵PilzAdam2013-02-131-3/+3
| | | | ItemStack
* Fix to on_rightclick not able to change wielded_itemRealBadAngel2013-02-131-2/+1
|
* Dont call on_rightclick() if sneak is pressedPilzAdam2013-01-271-1/+2
|
* Add on_rightclick(pos, node, clicker) callback for nodesPilzAdam2013-01-041-2/+13
|
* Add ability to change the itemstack in placenode callbacksPilzAdam2012-12-171-3/+11
|
* Fix minetest.get_node_drops(). It should always return list of item names, ↵Ilya Zhuravlev2012-12-021-2/+2
| | | | not ItemStack(s).
* Only check attachment for nodes with group attached_nodePilzAdam2012-12-011-1/+2
|
* Add the group attached_nodePilzAdam2012-12-011-0/+7
| | | | Nodes in this group will be dropped as items if the node under them or the node in the wallmounted direction is not walkable.
* Add overridable function for handling dropped items from nodesPerttu Ahola2012-09-021-8/+13
|
* Fix github issue #213: Dropping unknown items crashes the gamePerttu Ahola2012-08-191-4/+6
| | | | The items will now just disappear when dropped.
* Allow digging of unknown nodesMatthew I2012-08-121-1/+2
| | | | | | | | 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).
* Remove special handling of creative modePerttu Ahola2012-07-251-17/+15
|
* Detached inventory callbacks and reworked node metadata callbacksPerttu Ahola2012-07-251-35/+0
|
* builtin/item.lua: callbacks with copies of positions and nodes rather than ↵Perttu Ahola2012-07-241-68/+82
| | | | recycle the same ones, which callbacks can modify
* Add oldnode parameter to minetest.register_on_placenode callbackPerttu Ahola2012-07-231-2/+3
|
* Fix building on top of (pointable && buildable_to) nodesPerttu Ahola2012-07-231-15/+35
|
* Actually fix facedir-rotated nodes placed using minetest.env:place_node()Perttu Ahola2012-07-211-5/+7
|
* Handle nil placer as it might occur when using minetest.env:place_node. (Uberi)darkrose2012-07-211-1/+1
|
* Remove tiles and special_tiles from node definition prototype because ↵Perttu Ahola2012-06-161-5/+7
| | | | otherwise the old names can't be used
* Update field names to non-deprecated ones in node definition prototypePerttu Ahola2012-06-161-4/+4
|
* Node placement client-side predictionPerttu Ahola2012-06-101-0/+1
|
* place_node, dig_node and punch_node; an in-game tester tool; remove old codePerttu Ahola2012-06-051-4/+6
|
* Add can_dig callbackdarkrose2012-06-031-1/+2
|
* Implement locked chest; add after_place_node and after_dig_node node callbacksPerttu Ahola2012-06-031-2/+21
|
* on_metadata_inventory_{move,offer,take}Perttu Ahola2012-06-031-0/+41
|
* Random node metadata thingsPerttu Ahola2012-06-031-6/+0
|
* Attempt to begin to implement chests and furnace in Lua (with problems)Perttu Ahola2012-06-031-9/+0
|
* Allow redefining minetest.item_place and the likePerttu Ahola2012-04-091-8/+15
|
* Implement dropped items as LuaEntities; leave the old ones as is for ↵Perttu Ahola2012-04-011-2/+11
| | | | compatibility
* Split builtin.lua to multiple filesPerttu Ahola2012-04-011-0/+380