Add concrete

This commit is contained in:
IamPyu 2024-10-17 19:24:34 -06:00
parent 6349d67489
commit db68565308
5 changed files with 37 additions and 4 deletions

View File

@ -22,6 +22,7 @@
- fire_spreads (Fire Spreads)
- acid_spreads (Contagious Acid Spreads)
- You can no longer jump over fence
- Added Concrete which is really just a blank colored block :|
## [Oct 6th - Oct 12th 2024] Update: Texture Update

View File

@ -20,6 +20,11 @@ PyuTest.OVERWORLD_OCEAN_MIN = -15
PyuTest.OVERWORLD_DEEP_OCEAN_MAX = PyuTest.OVERWORLD_OCEAN_MIN - 1
PyuTest.OVERWORLD_DEEP_OCEAN_MIN = -31
PyuTest.NODEBOX_DEFAULT = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
}
PyuTest.get_schem_path = function (name)
return minetest.get_modpath("pyutest") .. "/schematics/"..name..".mts"
end

View File

@ -141,6 +141,7 @@ PyuTest.make_building_blocks = function(name, desc, tex, colortint, cgroups, ext
type = "fixed",
fixed = { -0.25, -0.5, -0.25, 0.25, 0.9, 0.25 }
},
selection_box = PyuTest.NODEBOX_DEFAULT,
sounds = PyuTest.make_node_sounds(),
}, econf))

View File

@ -2,22 +2,31 @@ PyuTest.registered_colored_blocks = {}
PyuTest.make_colored_blocks = function(name, desc, color)
PyuTest.make_building_blocks(name.."_wool", desc.." Wool", {
"pyutest-wool.png"
}, color or "white", {
}, color, {
wooly = PyuTest.BLOCK_NORMAL,
colored = 1
})
PyuTest.make_building_blocks(name.."_terracotta", desc .. " Terracotta", {
"pyutest-terracotta.png"
}, color or "white", {
}, color, {
cracky = PyuTest.BLOCK_NORMAL,
colored = 1
})
PyuTest.make_item(name.."_dye", desc.." Dye", {}, "pyutest-dye.png", {
color = color or "white"
PyuTest.make_building_blocks(name.."_concrete", desc .. " Concrete", {
"pyutest-concrete.png"
}, color, {
cracky = PyuTest.BLOCK_NORMAL,
colored = 1
})
PyuTest.make_item(name.."_dye", desc.." Dye", {
colored = 1,
dye = 1
}, "pyutest-dye.png", {
color = color or "white"
})
minetest.register_craft({
output = name.."_wool_block",
@ -37,6 +46,15 @@ PyuTest.make_colored_blocks = function(name, desc, color)
}
})
minetest.register_craft({
output = name.."_concrete_block",
type = "shapeless",
recipe = {
"pyutest_wool:white_concrete_block",
name.."_dye"
}
})
PyuTest.registered_colored_blocks[name] = {
wool = name.."_wool",
terracotta = name.."_terracotta",
@ -59,6 +77,14 @@ minetest.register_craft({
recipe = "pyutest_blocks:clay_block"
})
minetest.register_craft({
output = "pyutest_wool:white_concrete_block 4",
recipe = {
"pyutest_blocks:clay_block"
},
type = "shapeless"
})
PyuTest.COLORS = {
white = {"White", nil},
black = {"Black", {r = 32, g = 32, b = 32}},

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 B