From 81734a63200302bfe0f4721f6c3df12066a97205 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Mon, 3 Jul 2017 22:03:59 +0200 Subject: [PATCH] works again with latest mt --- init.lua | 2 ++ inspect.lua | 2 ++ 2 files changed, 4 insertions(+) diff --git a/init.lua b/init.lua index 83cb463..9100710 100644 --- a/init.lua +++ b/init.lua @@ -50,6 +50,7 @@ minetest.register_tool( "replacer:replacer", wield_scale = {x=1,y=1,z=1}, stack_max = 1, -- it has to store information - thus only one can be stacked liquids_pointable = true, -- it is ok to painit in/with water +--[[ -- the tool_capabilities are of nearly no intrest here tool_capabilities = { full_punch_interval = 1.0, @@ -61,6 +62,7 @@ minetest.register_tool( "replacer:replacer", choppy={times={[3]=0.90}, maxwear=0.05, maxlevel=0} } }, +--]] node_placement_prediction = nil, metadata = "default:dirt", -- default replacement: common dirt diff --git a/inspect.lua b/inspect.lua index bdd54e4..7759610 100644 --- a/inspect.lua +++ b/inspect.lua @@ -25,6 +25,7 @@ minetest.register_tool( "replacer:inspect", wield_image = "", wield_scale = {x=1,y=1,z=1}, liquids_pointable = true, -- it is ok to request information about liquids +--[[ -- the tool_capabilities are of no intrest here; it is not for digging tool_capabilities = { full_punch_interval = 1.0, @@ -35,6 +36,7 @@ minetest.register_tool( "replacer:inspect", choppy={times={[3]=0.90}, maxwear=0.05, maxlevel=0} } }, +--]] node_placement_prediction = nil, on_use = function(itemstack, user, pointed_thing)