Add more blocks

This commit is contained in:
IamPyu
2024-10-19 14:32:23 -06:00
parent db68565308
commit 6df3b2ad20
9 changed files with 101 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ PyuTest.make_node = function(name, desc, groups, tiles, extra_conf)
minetest.register_node(name, conf)
end
PyuTest.node_boxes = {
PyuTest.NODE_BOXES = {
CARPET = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.45, 0.5 }
@@ -48,6 +48,12 @@ PyuTest.node_boxes = {
{ -0.5, 0, 0, 0.5, 0.5, 0.5 },
},
},
SLIGHTLY_SMALLER = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.45, 0.5},
}
}
}
PyuTest.building_blocks = {}
@@ -94,7 +100,7 @@ PyuTest.make_building_blocks = function(name, desc, tex, colortint, cgroups, ext
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = PyuTest.node_boxes.CARPET,
node_box = PyuTest.NODE_BOXES.CARPET,
sounds = PyuTest.make_node_sounds(),
buildable_to = true
}, econf))
@@ -106,7 +112,7 @@ PyuTest.make_building_blocks = function(name, desc, tex, colortint, cgroups, ext
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = PyuTest.node_boxes.SLAB,
node_box = PyuTest.NODE_BOXES.SLAB,
sounds = PyuTest.make_node_sounds(),
}, econf))
@@ -116,7 +122,7 @@ PyuTest.make_building_blocks = function(name, desc, tex, colortint, cgroups, ext
groups = groups,
drawtype = "nodebox",
paramtype = "light",
node_box = PyuTest.node_boxes.PILLAR,
node_box = PyuTest.NODE_BOXES.PILLAR,
sounds = PyuTest.make_node_sounds()
}, econf))
@@ -127,7 +133,7 @@ PyuTest.make_building_blocks = function(name, desc, tex, colortint, cgroups, ext
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = PyuTest.node_boxes.STAIRS,
node_box = PyuTest.NODE_BOXES.STAIRS,
sounds = PyuTest.make_node_sounds(),
}, econf))
@@ -206,7 +212,7 @@ PyuTest.make_liquid = function(name, desc, groups, texture, speed, extra_conf)
use_texture_alpha = "blend",
paramtype = "light",
drop = "",
drowning = 3,
drowning = 4,
liquidtype = liquidtype,
liquid_renewable = true,
liquid_viscosity = speed or 1,

View File

@@ -74,6 +74,18 @@ PyuTest.make_building_blocks("pyutest_blocks:andesite", "Andesite", {"pyutest-an
cracky = PyuTest.BLOCK_NORMAL,
})
PyuTest.make_building_blocks("pyutest_blocks:diorite", "Diorite", {"pyutest-diorite.png"}, nil, {
ground = 1,
stone = 1,
cracky = PyuTest.BLOCK_NORMAL,
})
PyuTest.make_building_blocks("pyutest_blocks:tuff", "Tuff", {"pyutest-tuff.png"}, nil, {
ground = 1,
stone = 1,
cracky = PyuTest.BLOCK_NORMAL,
})
PyuTest.make_building_blocks("pyutest_blocks:stone_bricks", "Stone Bricks", {
"pyutest-bricks2.png"
}, "#82807c", {
@@ -110,6 +122,25 @@ PyuTest.make_building_blocks("pyutest_blocks:andesite_bricks", "Andesite Bricks"
is_ground_content = false
})
PyuTest.make_building_blocks("pyutest_blocks:diorite_bricks", "Diorite Bricks", {
"pyutest-bricks2.png"
}, "#b4b3b1", {
bricks = 1,
cracky = PyuTest.BLOCK_NORMAL,
}, {
is_ground_content = false,
})
PyuTest.make_building_blocks("pyutest_blocks:tuff_bricks", "Tuff Bricks", {
"pyutest-bricks2.png"
}, "#e5b88c", {
bricks = 1,
cracky = PyuTest.BLOCK_NORMAL,
}, {
is_ground_content = false,
paramtype2 = "color",
})
PyuTest.make_building_blocks("pyutest_blocks:sandstone", "Sandstone", { "pyutest-sandstone.png" }, nil, {
ground = 1,
acid_vulnerable = 1,