Add Time Device

This commit is contained in:
IamPyu 2024-10-21 18:38:19 -06:00
parent c89d4625da
commit 6e5b98bb16
4 changed files with 14 additions and 1 deletions

View File

@ -10,6 +10,7 @@
- Lava
- Water freezes in cold biomes if not neighbouring heat emiting nodes
- New lily pad texture
- Add Time Device, it is not craftable in Survival mode and is only for Creative mode.
## [Oct 19th 2024] Bugfix Update

View File

@ -50,3 +50,15 @@ PyuTest.make_electricity_device("pyutest_electricity:lamp_device_on", "Lamp Devi
}, function (pos, node, sender_pos)
minetest.set_node(pos, {name = "pyutest_electricity:lamp_device"})
end)
PyuTest.make_electricity_device("pyutest_electricity:time_device", "Time Device", {
cracky = PyuTest.BLOCK_FAST
}, {"pyutest-time-device.png"}, nil, nil, function (pos, node)
local time = minetest.get_timeofday()
if math.round(time) ~= 1 then
minetest.set_timeofday(0.5)
else
minetest.set_timeofday(1)
end
end)

View File

@ -8,7 +8,7 @@ PyuTest.IceWorld:create_token("pyutest_worlds:ice_world_token", "Ice World", "#c
local icy_cavern = PyuTest.IceWorld:register_biome({
name = "icy_cavern",
node_stone = "pyutest_blocks:ice_block",
heat_point = 0,
heat_point = 1,
humidity_point = 0
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 B