ShadowNinja
1850e0ecb7
Add basic protection support to builtin
2013-11-02 14:01:10 -04:00
0gb.us
7077f986cf
Fixed ignoring of "diggable" property of nodes.
2013-11-01 10:58:41 -04:00
Novatux
64da618bed
Add tool callback
2013-10-16 21:58:29 +04:00
Novatux
43726519dc
Fix minetest.facedir_to_dir when param2 is 5 or 7.
2013-10-16 21:55:01 +04:00
PilzAdam
80a7f12664
Allow to manually specify param2 in minetest.item_place() and return success
2013-09-28 23:46:48 +02:00
BlockMen
b131a282ba
Add support for different drowning damage and allow drowning in other nodetypes
2013-08-06 17:49:39 +02:00
hdastwb
f482d200df
added (optional) support for 6d facedir in dir_to_facedir and added facedir_to_dir
2013-07-24 00:31:32 +02:00
PilzAdam
327d6e8c4f
Remove unnecessary debug output in node_dig()
2013-07-02 00:34:59 +00:00
Lord89James
3a1bbbb873
Infinite tools in creative mode
2013-07-02 00:33:31 +00:00
sapier
2dceda8890
Move scriptapi to separate folder (by 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-05-25 00:51:02 +02:00
PilzAdam
0815dfb691
Return an ItemStack in minetest.item_place() if nodes' on rightclick doesnt return it
2013-04-02 15:19:02 +02:00
0gb.us
205dd250e0
Fix node replacement in not-quite-loaded chunks
...
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-03-29 14:18:51 -04:00
PilzAdam
04e83d5584
Drop nodes as items when dugged and no room in inventory and dont remove dropped items when no room in inventory
2013-02-21 16:58:50 +01:00
PilzAdam
61d9e641f6
Dont drop tools on rightclick
2013-02-19 20:16:55 +01:00
PilzAdam
2c6cfb193b
Fix minetest.item_place_node() and minetest.item_drop() to always return an ItemStack
2013-02-13 18:06:25 +01:00
RealBadAngel
8fcf2eab4b
Fix to on_rightclick not able to change wielded_item
2013-02-13 02:06:36 +04:00
PilzAdam
fc0668c989
Dont call on_rightclick() if sneak is pressed
2013-01-27 21:58:46 +01:00
PilzAdam
3e55ffee33
Add on_rightclick(pos, node, clicker) callback for nodes
2013-01-04 17:15:16 +01:00
PilzAdam
eb6b2a03c0
Add ability to change the itemstack in placenode callbacks
2012-12-17 19:49:18 +01:00
Ilya Zhuravlev
1e681d240d
Fix minetest.get_node_drops(). It should always return list of item names, not ItemStack(s).
2012-12-02 21:09:30 +04:00
PilzAdam
087d074126
Only check attachment for nodes with group attached_node
2012-12-01 15:20:53 +01:00
PilzAdam
964fb6a85a
Add the group attached_node
...
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-12-01 13:32:32 +01:00
Perttu Ahola
debbe86ac9
Add overridable function for handling dropped items from nodes
2012-09-02 19:38:44 +03:00
Perttu Ahola
70f1f66652
Fix github issue #213 : Dropping unknown items crashes the game
...
The items will now just disappear when dropped.
2012-08-19 10:55:04 +03:00
Matthew I
32b064eb21
Allow digging of unknown nodes
...
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-08-12 16:04:18 +03:00
Perttu Ahola
4183fdbe70
Remove special handling of creative mode
2012-07-25 14:07:45 +03:00
Perttu Ahola
1b2ae34ed4
Detached inventory callbacks and reworked node metadata callbacks
2012-07-25 02:36:54 +03:00
Perttu Ahola
305a52fdda
builtin/item.lua: callbacks with copies of positions and nodes rather than recycle the same ones, which callbacks can modify
2012-07-24 17:46:17 +03:00
Perttu Ahola
f7b06f5427
Add oldnode parameter to minetest.register_on_placenode callback
2012-07-23 20:44:56 +03:00
Perttu Ahola
277f9f9709
Fix building on top of (pointable && buildable_to) nodes
2012-07-23 20:42:08 +03:00
Perttu Ahola
75b4322729
Actually fix facedir-rotated nodes placed using minetest.env:place_node()
2012-07-21 21:23:15 +03:00
darkrose
70eb75cb29
Handle nil placer as it might occur when using minetest.env:place_node. (Uberi)
2012-07-21 02:27:46 +03:00
Perttu Ahola
1bf95a078a
Remove tiles and special_tiles from node definition prototype because otherwise the old names can't be used
2012-06-16 18:02:26 +03:00
Perttu Ahola
fc3ebc5509
Update field names to non-deprecated ones in node definition prototype
2012-06-16 17:05:21 +03:00
Perttu Ahola
3946557a18
Node placement client-side prediction
2012-06-10 12:46:48 +03:00
Perttu Ahola
d27ed7becb
place_node, dig_node and punch_node; an in-game tester tool; remove old code
2012-06-05 23:10:07 +03:00
darkrose
c68300df20
Add can_dig callback
2012-06-03 22:31:02 +03:00
Perttu Ahola
55ae48ff63
Implement locked chest; add after_place_node and after_dig_node node callbacks
2012-06-03 22:31:01 +03:00
Perttu Ahola
242091e336
on_metadata_inventory_{move,offer,take}
2012-06-03 22:31:01 +03:00
Perttu Ahola
09c48e831d
Random node metadata things
2012-06-03 22:31:00 +03:00
Perttu Ahola
bb6ee5d0b2
Attempt to begin to implement chests and furnace in Lua (with problems)
2012-06-03 22:31:00 +03:00
Perttu Ahola
eeb87ed9a2
Allow redefining minetest.item_place and the like
2012-04-09 21:14:16 +03:00
Perttu Ahola
2fd0828881
Implement dropped items as LuaEntities; leave the old ones as is for compatibility
2012-04-01 16:06:01 +03:00
Perttu Ahola
c258746b4e
Split builtin.lua to multiple files
2012-04-01 12:38:19 +03:00