Cobbles have nodebox
This commit is contained in:
parent
69579f6bf7
commit
f705ec425d
@ -788,6 +788,25 @@ minetest.register_craftitem("default:cobble", {
|
|||||||
inventory_image = "default_cobble.png",
|
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({
|
minetest.register_craft({
|
||||||
output = "default:cobbleblock",
|
output = "default:cobbleblock",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -120,7 +120,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
if ground_y and minetest.env:get_node({x=x,y=ground_y,z=z}).name == "default:dirt_with_grass" then
|
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
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user