mirror of
https://github.com/cultom/hammermod.git
synced 2024-08-19 12:34:09 +02:00
make it work with mineclone2
This commit is contained in:
parent
ec7b93a00e
commit
07b9a5e68b
23
init.lua
23
init.lua
@ -1,20 +1,24 @@
|
|||||||
minetest.register_tool("hammermod:steel_hammer", {
|
minetest.register_tool("hammermod:steel_hammer", {
|
||||||
description = "Steel Hammer",
|
description = "Steel Hammer",
|
||||||
short_description = "Steel Hammer",
|
short_description = "Steel Hammer",
|
||||||
groups={hard=1, metal=1},
|
groups={hard=1, metal=1, tool=1, pickaxe=1, dig_speed_class=4, enchantability=14 },
|
||||||
inventory_image="steel_hammer.png",
|
inventory_image="steel_hammer.png",
|
||||||
range=8,
|
range=8,
|
||||||
liquids_pointable = false,
|
liquids_pointable = false,
|
||||||
light_source = 3,
|
light_source = 3,
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 1.0,
|
full_punch_interval = 1.0,
|
||||||
max_drop_level = 999,
|
max_drop_level = 4,
|
||||||
groupcaps = {
|
groupcaps = {
|
||||||
choppy = {times = {[1] = 2.50, [2] = 1.40, [3] = 1.00},uses = 20, maxlevel = 2},
|
choppy = {times = {[1] = 2.50, [2] = 1.40, [3] = 1.00},uses = 250, maxlevel = 2},
|
||||||
cracky={times={[1]=4.00, [2]=1.50, [3]=1.00}, uses=70, maxlevel=1},
|
cracky={times = {[1] = 2.50, [2] = 1.40, [3] = 1.00},uses = 250, maxlevel = 2},
|
||||||
crumbly = {times={[2]=3.00, [3]=0.70}, uses=0, maxlevel=1},
|
crumbly = {times = {[1] = 2.50, [2] = 1.40, [3] = 1.00},uses = 250, maxlevel = 2},
|
||||||
snappy = {times={[3]=0.40}, uses=0, maxlevel=1},
|
snappy = {times = {[1] = 2.50, [2] = 1.40, [3] = 1.00},uses = 250, maxlevel = 2},
|
||||||
oddly_breakable_by_hand = {times={[1]=3.50,[2]=2.00,[3]=0.70}, uses=0}
|
oddly_breakable_by_hand = {times = {[1] = 2.50, [2] = 1.40, [3] = 1.00},uses = 250, maxlevel = 2},
|
||||||
|
pickaxey = {times = {[1] = 2.50, [2] = 1.40, [3] = 1.00},uses = 250, maxlevel = 2},
|
||||||
|
axey={times = {[1] = 2.50, [2] = 1.40, [3] = 1.00},uses = 250, maxlevel = 2},
|
||||||
|
shovely={times = {[1] = 2.50, [2] = 1.40, [3] = 1.00},uses = 250, maxlevel = 2},
|
||||||
|
pickaxey_dig_iron = {times={[1] = 2.50, [2] = 1.40, [3] = 1.00},uses = 250, maxlevel=2}
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=1},
|
damage_groups = {fleshy=1},
|
||||||
|
|
||||||
@ -25,8 +29,9 @@ minetest.register_tool("hammermod:steel_hammer", {
|
|||||||
thomas_dig_none = "tupeuxyaller"
|
thomas_dig_none = "tupeuxyaller"
|
||||||
|
|
||||||
function thom_dig(pos, digger)
|
function thom_dig(pos, digger)
|
||||||
minetest.dig_node(pos)
|
--minetest.dig_node(pos)
|
||||||
--minetest.node_dig(pos, minetest.get_node(pos), digger)
|
minetest.node_dig(pos, minetest.get_node(pos), digger)
|
||||||
|
--minetest.spawn_falling_node(pos)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_on_dignode(
|
minetest.register_on_dignode(
|
||||||
|
Loading…
Reference in New Issue
Block a user