diff --git a/CHANGELOG.md b/CHANGELOG.md index 33723f9..63fc2e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,6 @@ ## [Oct 12th - **STILL UNDER DEVELOPMENT** 2024] Update: Building and Farming Update -- Added Stained Glass - Start working on a new entity API to replace mobs_redo - Added many new foods - Added Carrots @@ -15,8 +14,13 @@ - Added Carrot Crops - Added Potato Crops - Added Frying Pans with a new cooking system +- Added Stained Glass - Added Stone/Darkstone/Granite/Andesite Bricks - Glass should be connected with connected glass setting now +- Added the first settings to the game including: + - always_day (Always Day) + - fire_spreads (Fire Spreads) + - acid_spreads (Contagious Acid Spreads) ## [Oct 6th - Oct 12th 2024] Update: Texture Update diff --git a/mods/CORE/pyutest_basicsettings/init.lua b/mods/CORE/pyutest_basicsettings/init.lua new file mode 100644 index 0000000..ef51066 --- /dev/null +++ b/mods/CORE/pyutest_basicsettings/init.lua @@ -0,0 +1,5 @@ +minetest.register_globalstep(function () + if minetest.settings:get_bool("always_day", false) then + minetest.set_timeofday(0.5) + end +end) diff --git a/mods/ITEMS/pyutest_blocks/special.lua b/mods/ITEMS/pyutest_blocks/special.lua index d66b8eb..f5ac742 100644 --- a/mods/ITEMS/pyutest_blocks/special.lua +++ b/mods/ITEMS/pyutest_blocks/special.lua @@ -223,6 +223,10 @@ minetest.register_abm({ chance = 2.2, catchup = true, action = function(pos) + if not minetest.settings:get_bool("acid_spreads", true) then + return + end + minetest.set_node(pos, { name = "pyutest_blocks:contagious_acid" }) @@ -236,6 +240,10 @@ minetest.register_abm({ interval = 1, chance = 4, action = function(pos) + if not minetest.settings:get_bool("fire_spreads", true) then + return + end + minetest.set_node(pos, { name = "pyutest_blocks:fire" }) diff --git a/mods/ITEMS/pyutest_tools/food.lua b/mods/ITEMS/pyutest_tools/food.lua index 68797fe..16bb81c 100644 --- a/mods/ITEMS/pyutest_tools/food.lua +++ b/mods/ITEMS/pyutest_tools/food.lua @@ -6,4 +6,6 @@ PyuTest.make_food("pyutest_tools:water_bottle", "Water Bottle", "pyutest-water-b PyuTest.make_food("pyutest_tools:potato", "Potato", "pyutest-potato.png", 3, "pyutest_tools:cooked_potato") PyuTest.make_food("pyutest_tools:cooked_potato", "Cooked Potato", "pyutest-cooked-potato.png", 7) -PyuTest.make_food("pyutest_tools:sliced_potato", "Sliced Potato", "pyutest-sliced-potato.png", 0.5, "pyutest_tools:french_fries")PyuTest.make_food("pyutest_tools:french_fries", "French Fries", "pyutest-french-fries.png", 6.5) +PyuTest.make_food("pyutest_tools:sliced_potato", "Sliced Potato", "pyutest-sliced-potato.png", 0.5, "pyutest_tools:french_fries") + +PyuTest.make_food("pyutest_tools:french_fries", "French Fries", "pyutest-french-fries.png", 6.5) diff --git a/settingtypes.txt b/settingtypes.txt index e69de29..1e9d747 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -0,0 +1,10 @@ +[Gameplay] + +# If enabled, the time is always set to noon. +always_day (Always Day) bool false + +# If enabled, fire can spread. +fire_spreads (Fire Spreads) bool true + +# If enabled, contagious acid can spread. +acid_spreads (Acid Spreads) bool true diff --git a/textures/pyutest-ore-overlay.png b/textures/pyutest-ore-overlay.png index da3c11c..f4db882 100644 Binary files a/textures/pyutest-ore-overlay.png and b/textures/pyutest-ore-overlay.png differ