Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move scriptapi to separate folder (by sapier) | sapier | 2013-05-25 | 1 | -11/+11 |
| | | | | | | | | | | | 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 ↵ | PilzAdam | 2013-04-02 | 1 | -1/+1 |
| | | | | return it | ||||
* | Fix node replacement in not-quite-loaded chunks | 0gb.us | 2013-03-29 | 1 | -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 ↵ | PilzAdam | 2013-02-21 | 1 | -1/+9 |
| | | | | dropped items when no room in inventory | ||||
* | Dont drop tools on rightclick | PilzAdam | 2013-02-19 | 1 | -2/+1 |
| | |||||
* | Fix minetest.item_place_node() and minetest.item_drop() to always return an ↵ | PilzAdam | 2013-02-13 | 1 | -3/+3 |
| | | | | ItemStack | ||||
* | Fix to on_rightclick not able to change wielded_item | RealBadAngel | 2013-02-13 | 1 | -2/+1 |
| | |||||
* | Dont call on_rightclick() if sneak is pressed | PilzAdam | 2013-01-27 | 1 | -1/+2 |
| | |||||
* | Add on_rightclick(pos, node, clicker) callback for nodes | PilzAdam | 2013-01-04 | 1 | -2/+13 |
| | |||||
* | Add ability to change the itemstack in placenode callbacks | PilzAdam | 2012-12-17 | 1 | -3/+11 |
| | |||||
* | Fix minetest.get_node_drops(). It should always return list of item names, ↵ | Ilya Zhuravlev | 2012-12-02 | 1 | -2/+2 |
| | | | | not ItemStack(s). | ||||
* | Only check attachment for nodes with group attached_node | PilzAdam | 2012-12-01 | 1 | -1/+2 |
| | |||||
* | Add the group attached_node | PilzAdam | 2012-12-01 | 1 | -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 nodes | Perttu Ahola | 2012-09-02 | 1 | -8/+13 |
| | |||||
* | Fix github issue #213: Dropping unknown items crashes the game | Perttu Ahola | 2012-08-19 | 1 | -4/+6 |
| | | | | The items will now just disappear when dropped. | ||||
* | Allow digging of unknown nodes | Matthew I | 2012-08-12 | 1 | -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 mode | Perttu Ahola | 2012-07-25 | 1 | -17/+15 |
| | |||||
* | Detached inventory callbacks and reworked node metadata callbacks | Perttu Ahola | 2012-07-25 | 1 | -35/+0 |
| | |||||
* | builtin/item.lua: callbacks with copies of positions and nodes rather than ↵ | Perttu Ahola | 2012-07-24 | 1 | -68/+82 |
| | | | | recycle the same ones, which callbacks can modify | ||||
* | Add oldnode parameter to minetest.register_on_placenode callback | Perttu Ahola | 2012-07-23 | 1 | -2/+3 |
| | |||||
* | Fix building on top of (pointable && buildable_to) nodes | Perttu Ahola | 2012-07-23 | 1 | -15/+35 |
| | |||||
* | Actually fix facedir-rotated nodes placed using minetest.env:place_node() | Perttu Ahola | 2012-07-21 | 1 | -5/+7 |
| | |||||
* | Handle nil placer as it might occur when using minetest.env:place_node. (Uberi) | darkrose | 2012-07-21 | 1 | -1/+1 |
| | |||||
* | Remove tiles and special_tiles from node definition prototype because ↵ | Perttu Ahola | 2012-06-16 | 1 | -5/+7 |
| | | | | otherwise the old names can't be used | ||||
* | Update field names to non-deprecated ones in node definition prototype | Perttu Ahola | 2012-06-16 | 1 | -4/+4 |
| | |||||
* | Node placement client-side prediction | Perttu Ahola | 2012-06-10 | 1 | -0/+1 |
| | |||||
* | place_node, dig_node and punch_node; an in-game tester tool; remove old code | Perttu Ahola | 2012-06-05 | 1 | -4/+6 |
| | |||||
* | Add can_dig callback | darkrose | 2012-06-03 | 1 | -1/+2 |
| | |||||
* | Implement locked chest; add after_place_node and after_dig_node node callbacks | Perttu Ahola | 2012-06-03 | 1 | -2/+21 |
| | |||||
* | on_metadata_inventory_{move,offer,take} | Perttu Ahola | 2012-06-03 | 1 | -0/+41 |
| | |||||
* | Random node metadata things | Perttu Ahola | 2012-06-03 | 1 | -6/+0 |
| | |||||
* | Attempt to begin to implement chests and furnace in Lua (with problems) | Perttu Ahola | 2012-06-03 | 1 | -9/+0 |
| | |||||
* | Allow redefining minetest.item_place and the like | Perttu Ahola | 2012-04-09 | 1 | -8/+15 |
| | |||||
* | Implement dropped items as LuaEntities; leave the old ones as is for ↵ | Perttu Ahola | 2012-04-01 | 1 | -2/+11 |
| | | | | compatibility | ||||
* | Split builtin.lua to multiple files | Perttu Ahola | 2012-04-01 | 1 | -0/+380 |