From 6a0388bb4bedc1b1c6318d7bfebaf1ec67ccf94e Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 10 Jun 2012 12:46:48 +0300 Subject: Node placement client-side prediction --- doc/lua_api.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 61bc8e1c2..c1ac13773 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1100,6 +1100,13 @@ Item definition (register_node, register_craftitem, register_tool) choppy={times={[3]=0.90}, maxwear=0.05, maxlevel=0} } } + node_placement_prediction = nil, + ^ If nil and item is node, prediction is made automatically + ^ If nil and item is not a node, no prediction is made + ^ If "" and item is anything, no prediction is made + ^ Otherwise should be name of node which the client immediately places + on ground when the player places the item. Server will always update + actual result to client in a short moment. on_place = func(itemstack, placer, pointed_thing), ^ default: minetest.item_place -- cgit v1.2.3