44 lines
1.0 KiB
Lua
44 lines
1.0 KiB
Lua
|
buildtest.pipes.types.sandstone = {
|
||
|
base = "default:sandstone",
|
||
|
}
|
||
|
|
||
|
buildtest.pipes.makepipe(function(set, nodes, count, name, id, clas)
|
||
|
local def = {
|
||
|
sunlight_propagates = true,
|
||
|
paramtype = 'light',
|
||
|
walkable = true,
|
||
|
climbable = false,
|
||
|
diggable = true,
|
||
|
drawtype = "nodebox",
|
||
|
node_box = {
|
||
|
type = "fixed",
|
||
|
fixed = nodes
|
||
|
},
|
||
|
--------------------------
|
||
|
description = clas.."Buildtest Sandstone Pipe",
|
||
|
tiles = {"buildtest_pipe_sandstone.png"},
|
||
|
groups = {choppy=1,oddly_breakable_by_hand=3},
|
||
|
buildtest = {
|
||
|
slowdown=1.1,
|
||
|
pipe=1,
|
||
|
connects={
|
||
|
buildtest.pipes.defaultPipes,
|
||
|
{
|
||
|
"buildtest:pipe_stone",
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
drop = {
|
||
|
max_items = 1,
|
||
|
items = {
|
||
|
{ items = {'buildtest:pipe_sandstone_000000_'..id} }
|
||
|
}
|
||
|
},
|
||
|
on_place = buildtest.pipes.onp_funct,
|
||
|
on_dig = buildtest.pipes.ond_funct,
|
||
|
}
|
||
|
if count~=1 then
|
||
|
def.groups.not_in_creative_inventory=1
|
||
|
end
|
||
|
minetest.register_node("buildtest:pipe_sandstone_"..name, def)
|
||
|
end)
|