works again with latest mt

This commit is contained in:
Sokomine 2017-07-03 22:03:59 +02:00
parent b58252e397
commit 81734a6320
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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)