cleanup
parent
fc9c314fb1
commit
026be6f20d
1
init.lua
1
init.lua
|
@ -7,6 +7,7 @@ local MP = minetest.get_modpath("soundblock")
|
||||||
dofile(MP.."/api.lua")
|
dofile(MP.."/api.lua")
|
||||||
dofile(MP.."/form.lua")
|
dofile(MP.."/form.lua")
|
||||||
dofile(MP.."/soundblock.lua")
|
dofile(MP.."/soundblock.lua")
|
||||||
|
dofile(MP.."/recipe.lua")
|
||||||
|
|
||||||
if minetest.get_modpath("default") then
|
if minetest.get_modpath("default") then
|
||||||
dofile(MP.."/mods/default.lua")
|
dofile(MP.."/mods/default.lua")
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "soundblock:block",
|
||||||
|
recipe = {
|
||||||
|
{"default:steel_ingot", "default:steelblock", "default:steel_ingot"},
|
||||||
|
{"default:steel_ingot", "default:glass", "default:steel_ingot"},
|
||||||
|
{"default:steel_ingot", "default:steelblock", "default:steel_ingot"},
|
||||||
|
},
|
||||||
|
})
|
|
@ -74,15 +74,6 @@ minetest.register_node("soundblock:block", {
|
||||||
meta:set_int("randomize_position", 0)
|
meta:set_int("randomize_position", 0)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
can_dig = function(pos,player)
|
|
||||||
if player and player:is_player() and minetest.is_protected(pos, player:get_player_name()) then
|
|
||||||
-- protected
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
return true
|
|
||||||
end,
|
|
||||||
|
|
||||||
on_timer = function(pos)
|
on_timer = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local state = meta:get_string("state")
|
local state = meta:get_string("state")
|
||||||
|
|
Loading…
Reference in New Issue