From 0190f9b077dcb2b8cb41c622dd91ffc1e04dacac Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 26 Jul 2012 22:06:45 +0300 Subject: Experimental-ish rollback functionality --- doc/lua_api.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index d47281b2d..46ea3a86e 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -889,6 +889,14 @@ minetest.get_craft_recipe(output) -> input stack 5, stack 6, stack 7, stack 8, stack 9 } ^ input.items = nil if no recipe found +Rollbacks: +minetest.rollback_get_last_node_actor(p, range, seconds) -> actor, p, seconds +^ Find who has done something to a node, or near a node +^ actor: "player:", also "liquid". +minetest.rollback_revert_actions_by(actor, seconds) -> bool, log messages +^ Revert latest actions of someone +^ actor: "player:", also "liquid". + Defaults for the on_* item definition functions: (These return the leftover itemstack) minetest.item_place_node(itemstack, placer, pointed_thing) -- cgit v1.2.3