diff --git a/mods/default/init.lua b/mods/default/init.lua index d0e8029..38dca47 100644 --- a/mods/default/init.lua +++ b/mods/default/init.lua @@ -788,6 +788,25 @@ minetest.register_craftitem("default:cobble", { inventory_image = "default_cobble.png", }) +minetest.register_node("default:cobble_node", { + description = "Stone", + tiles = {"default_stone.png"}, + paramtype = "light", + sunlight_propagates = true, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = {-0.5+9/32, -0.5, -0.5+12/32, 0.5-9/32, -0.5+1/8, 0.5-12/32}, + }, + selection_box = { + type = "fixed", + fixed = {-0.5+9/32, -0.5, -0.5+12/32, 0.5-9/32, -0.5+1/8, 0.5-12/32}, + }, + drop = "default:cobble", + groups = {dig_immediate=2}, + sounds = default.node_sound_stone_defaults(), +}) + minetest.register_craft({ output = "default:cobbleblock", recipe = { diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index a5b8a26..646f757 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -120,7 +120,7 @@ minetest.register_on_generated(function(minp, maxp, seed) end end if ground_y and minetest.env:get_node({x=x,y=ground_y,z=z}).name == "default:dirt_with_grass" then - minetest.env:add_item({x=x,y=ground_y+1,z=z}, "default:cobble") + minetest.env:add_node({x=x,y=ground_y+1,z=z}, {name = "default:cobble_node"}) end end end