mirror of
https://github.com/Sokomine/replacer.git
synced 2024-11-15 06:10:21 +01:00
works again with latest mt
This commit is contained in:
parent
b58252e397
commit
81734a6320
2
init.lua
2
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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user