Add new options to the game like Always Day.

This commit is contained in:
IamPyu 2024-10-17 16:08:05 -06:00
parent 3123cda4d7
commit 9767e97e91
6 changed files with 31 additions and 2 deletions

View File

@ -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

View File

@ -0,0 +1,5 @@
minetest.register_globalstep(function ()
if minetest.settings:get_bool("always_day", false) then
minetest.set_timeofday(0.5)
end
end)

View File

@ -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"
})

View File

@ -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)

View File

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 B

After

Width:  |  Height:  |  Size: 127 B