diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a14971..41eca62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/mods/CORE/pyutest/init.lua b/mods/CORE/pyutest/init.lua index ec76501..0e1b297 100644 --- a/mods/CORE/pyutest/init.lua +++ b/mods/CORE/pyutest/init.lua @@ -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 diff --git a/mods/ITEMS/pyutest_blocks/api.lua b/mods/ITEMS/pyutest_blocks/api.lua index 6a24a0f..dd0d21a 100644 --- a/mods/ITEMS/pyutest_blocks/api.lua +++ b/mods/ITEMS/pyutest_blocks/api.lua @@ -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)) diff --git a/mods/ITEMS/pyutest_wool/init.lua b/mods/ITEMS/pyutest_wool/init.lua index f3bd06c..828c419 100644 --- a/mods/ITEMS/pyutest_wool/init.lua +++ b/mods/ITEMS/pyutest_wool/init.lua @@ -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}}, diff --git a/textures/pyutest-concrete.png b/textures/pyutest-concrete.png new file mode 100644 index 0000000..5a983c9 Binary files /dev/null and b/textures/pyutest-concrete.png differ