From acf57bf55e9964d1f5833e53b5e30e48644f1481 Mon Sep 17 00:00:00 2001 From: IamPyu Date: Wed, 10 Jul 2024 15:37:25 -0600 Subject: [PATCH] Minor Update: Fence Update --- CHANGELOG.md | 5 +++++ mods/pyutest_core/blocks.lua | 22 ++++++++++++++++++++++ mods/pyutest_core/mobs.lua | 5 +++-- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a76d507..577cd05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [Jun 10th 2024] Minor Update: Fence Update + +- Added Fences +- Humans no longer spawn below sea-level + ## [Jun 10th 2024] Update: Cave Update - Added andesite and granite diff --git a/mods/pyutest_core/blocks.lua b/mods/pyutest_core/blocks.lua index 3ea01f2..57d8846 100644 --- a/mods/pyutest_core/blocks.lua +++ b/mods/pyutest_core/blocks.lua @@ -62,6 +62,7 @@ PyuTestCore.make_building_blocks = function (name, desc, tex, colortint, cgroups local id_slab = name.."_slab" local id_pillar = name.."_pillar" local id_stairs = name.."_stairs" + local id_fence = name.."_fence" table.insert(PyuTestCore.building_blocks, { name = name, @@ -122,6 +123,19 @@ PyuTestCore.make_building_blocks = function (name, desc, tex, colortint, cgroups sounds = PyuTestCore.make_node_sounds(), }, econf)) + minetest.register_node(id_fence, PyuTestCore.util.tableconcat({ + description = Translate(desc.." Fence"), + tiles = tex, + groups = groups, + drawtype = "fencelike", + paramtype = "light", + collision_box = { + type = "fixed", + fixed = {-0.25, -0.5, -0.25, 0.25, 0.5, 0.25} + }, + sounds = PyuTestCore.make_node_sounds(), + }, econf)) + minetest.register_craft({ output = id_carpet .. " 2", recipe = { @@ -153,6 +167,14 @@ PyuTestCore.make_building_blocks = function (name, desc, tex, colortint, cgroups {id_block, id_block, id_block} } }) + + minetest.register_craft({ + output = id_fence .. " 4", + recipe = { + {id_block, "pyutest_core:stick", id_block}, + {id_block, "pyutest_core:stick", id_block} + } + }) end PyuTestCore.make_building_blocks("pyutest_core:grass", "Grass", {"grass.png"}, nil, { diff --git a/mods/pyutest_core/mobs.lua b/mods/pyutest_core/mobs.lua index 9fb311e..b3eb8da 100644 --- a/mods/pyutest_core/mobs.lua +++ b/mods/pyutest_core/mobs.lua @@ -116,7 +116,7 @@ if mapgen ~= "flat" and mapgen ~= "singlenode" then nodes = {"group:ground"}, interval = 2, chance = 2, - active_object_count = 6, + active_object_count = 3, min_light = 0, max_light = 9, }) @@ -126,9 +126,10 @@ if mapgen ~= "flat" and mapgen ~= "singlenode" then nodes = {"group:ground"}, interval = 3, chance = 4, - active_object_count = 5, + active_object_count = 3, min_light = 9, max_light = 15, + min_height = PyuTestCore_SurfaceBottom, day_toggle = true, })