Add Time Device
This commit is contained in:
parent
c89d4625da
commit
6e5b98bb16
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
})
|
||||
|
||||
|
BIN
textures/pyutest-time-device.png
Normal file
BIN
textures/pyutest-time-device.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 139 B |
Loading…
x
Reference in New Issue
Block a user