mirror of
https://github.com/pyrollo/display_modpack.git
synced 2025-10-23 03:55:22 +02:00
feat: Add 3x3 and 5x5 frameless clocks
This commit is contained in:
@@ -18,9 +18,13 @@
|
||||
along with ontime_clocks. If not, see <http://www.gnu.org/licenses/>.
|
||||
--]]
|
||||
|
||||
-- Entity for time display
|
||||
-- Entity for time display of most of clocks
|
||||
display_api.register_display_entity("ontime_clocks:display")
|
||||
|
||||
-- Entities for two needles of large clocks
|
||||
display_api.register_display_entity("ontime_clocks:hours_needle")
|
||||
display_api.register_display_entity("ontime_clocks:minutes_needle")
|
||||
|
||||
function ontime_clocks.get_h24()
|
||||
return math.floor(minetest.get_timeofday()*24)%24
|
||||
end
|
||||
@@ -58,4 +62,3 @@ function ontime_clocks.get_needles_properties(color, size, hour, minute)
|
||||
visual_size = {x=size/64, y=size/64}
|
||||
}
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user