mirror of
https://github.com/cultom/hammermod.git
synced 2024-12-04 20:53:51 +01:00
rename and clean up
This commit is contained in:
parent
5aba97f817
commit
ec7b93a00e
11
init.lua
11
init.lua
@ -1,4 +1,4 @@
|
||||
minetest.register_tool("thomod:steel_hammer", {
|
||||
minetest.register_tool("hammermod:steel_hammer", {
|
||||
description = "Steel Hammer",
|
||||
short_description = "Steel Hammer",
|
||||
groups={hard=1, metal=1},
|
||||
@ -10,7 +10,6 @@ minetest.register_tool("thomod:steel_hammer", {
|
||||
full_punch_interval = 1.0,
|
||||
max_drop_level = 999,
|
||||
groupcaps = {
|
||||
-- For example:
|
||||
choppy = {times = {[1] = 2.50, [2] = 1.40, [3] = 1.00},uses = 20, maxlevel = 2},
|
||||
cracky={times={[1]=4.00, [2]=1.50, [3]=1.00}, uses=70, maxlevel=1},
|
||||
crumbly = {times={[2]=3.00, [3]=0.70}, uses=0, maxlevel=1},
|
||||
@ -23,12 +22,6 @@ minetest.register_tool("thomod:steel_hammer", {
|
||||
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("thomod:decowood", {
|
||||
tiles = {"decowood.png"},
|
||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
|
||||
})
|
||||
|
||||
thomas_dig_none = "tupeuxyaller"
|
||||
|
||||
function thom_dig(pos, digger)
|
||||
@ -40,7 +33,7 @@ minetest.register_on_dignode(
|
||||
function(pos, oldnode, digger)
|
||||
|
||||
--TODO thomas_dig_none per player
|
||||
if digger == nil or digger:get_wielded_item():get_name() ~= "thomod:steel_hammer" then
|
||||
if digger == nil or digger:get_wielded_item():get_name() ~= "hammermod:steel_hammer" then
|
||||
return
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user