master
Thomas Rudin 2019-11-23 19:20:12 +01:00
parent fc9c314fb1
commit 026be6f20d
3 changed files with 11 additions and 9 deletions

View File

@ -7,6 +7,7 @@ local MP = minetest.get_modpath("soundblock")
dofile(MP.."/api.lua")
dofile(MP.."/form.lua")
dofile(MP.."/soundblock.lua")
dofile(MP.."/recipe.lua")
if minetest.get_modpath("default") then
dofile(MP.."/mods/default.lua")

10
recipe.lua Normal file
View File

@ -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"},
},
})

View File

@ -74,15 +74,6 @@ minetest.register_node("soundblock:block", {
meta:set_int("randomize_position", 0)
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)
local meta = minetest.get_meta(pos)
local state = meta:get_string("state")