summaryrefslogtreecommitdiff
path: root/builtin/item.lua
Commit message (Collapse)AuthorAge
* Fix error when calling minetest.node_punch without a pointed_thingShadowNinja2014-03-11
|
* Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacksShadowNinja2014-01-23
|
* Add pointed_thing to minetest.register_on_placenodeShadowNinja2014-01-21
| | | | As suggested by qwrwed.
* Deepcopy pointed_thing for after_place_node, give it to on_rightclick too.Novatux2014-01-11
|
* Pass pointed_thing to after_place_nodeShadowNinja2014-01-06
|
* Revert "Fix minetest.facedir_to_dir when param2 is 5 or 7."Novatux2013-12-30
| | | | This reverts commit 4e5760a5416cbca6945b1b4484cbd96bea7b250c.
* Change default value of is_ground_content to truekwolekr2013-11-30
| | | | Most modders would otherwise forget to explicitly define this, and generated nodes aliased from mods would wall-off caves
* Add basic protection support to builtinShadowNinja2013-11-02
|
* Fixed ignoring of "diggable" property of nodes.0gb.us2013-11-01
|
* Add tool callbackNovatux2013-10-16
|
* Fix minetest.facedir_to_dir when param2 is 5 or 7.Novatux2013-10-16
|
* Allow to manually specify param2 in minetest.item_place() and return successPilzAdam2013-09-28
|
* Add support for different drowning damage and allow drowning in other nodetypesBlockMen2013-08-06
|
* added (optional) support for 6d facedir in dir_to_facedir and added ↵hdastwb2013-07-24
| | | | facedir_to_dir
* Remove unnecessary debug output in node_dig()PilzAdam2013-07-02
|
* Infinite tools in creative modeLord89James2013-07-02
|
* 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)
* Return an ItemStack in minetest.item_place() if nodes' on rightclick doesnt ↵PilzAdam2013-04-02
| | | | return it
* Fix node replacement in not-quite-loaded chunks0gb.us2013-03-29
| | | | 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-21
| | | | dropped items when no room in inventory
* Dont drop tools on rightclickPilzAdam2013-02-19
|
* Fix minetest.item_place_node() and minetest.item_drop() to always return an ↵PilzAdam2013-02-13
| | | | ItemStack
* Fix to on_rightclick not able to change wielded_itemRealBadAngel2013-02-13
|
* Dont call on_rightclick() if sneak is pressedPilzAdam2013-01-27
|
* Add on_rightclick(pos, node, clicker) callback for nodesPilzAdam2013-01-04
|
* Add ability to change the itemstack in placenode callbacksPilzAdam2012-12-17
|
* Fix minetest.get_node_drops(). It should always return list of item names, ↵Ilya Zhuravlev2012-12-02
| | | | not ItemStack(s).
* Only check attachment for nodes with group attached_nodePilzAdam2012-12-01
|
* Add the group attached_nodePilzAdam2012-12-01
| | | | 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-02
|
* Fix github issue #213: Dropping unknown items crashes the gamePerttu Ahola2012-08-19
| | | | The items will now just disappear when dropped.
* Allow digging of unknown nodesMatthew I2012-08-12
| | | | | | | | 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-25
|
* Detached inventory callbacks and reworked node metadata callbacksPerttu Ahola2012-07-25
|
* builtin/item.lua: callbacks with copies of positions and nodes rather than ↵Perttu Ahola2012-07-24
| | | | recycle the same ones, which callbacks can modify
* Add oldnode parameter to minetest.register_on_placenode callbackPerttu Ahola2012-07-23
|
* Fix building on top of (pointable && buildable_to) nodesPerttu Ahola2012-07-23
|
* Actually fix facedir-rotated nodes placed using minetest.env:place_node()Perttu Ahola2012-07-21
|
* Handle nil placer as it might occur when using minetest.env:place_node. (Uberi)darkrose2012-07-21
|
* Remove tiles and special_tiles from node definition prototype because ↵Perttu Ahola2012-06-16
| | | | otherwise the old names can't be used
* Update field names to non-deprecated ones in node definition prototypePerttu Ahola2012-06-16
|
* Node placement client-side predictionPerttu Ahola2012-06-10
|
* place_node, dig_node and punch_node; an in-game tester tool; remove old codePerttu Ahola2012-06-05
|
* Add can_dig callbackdarkrose2012-06-03
|
* Implement locked chest; add after_place_node and after_dig_node node callbacksPerttu Ahola2012-06-03
|
* on_metadata_inventory_{move,offer,take}Perttu Ahola2012-06-03
|
* Random node metadata thingsPerttu Ahola2012-06-03
|
* Attempt to begin to implement chests and furnace in Lua (with problems)Perttu Ahola2012-06-03
|
* Allow redefining minetest.item_place and the likePerttu Ahola2012-04-09
|
* Implement dropped items as LuaEntities; leave the old ones as is for ↵Perttu Ahola2012-04-01
| | | | compatibility