aboutsummaryrefslogtreecommitdiff
path: root/ontime_clocks
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-12-03 23:17:35 +0100
committerorwell96 <orwell@bleipb.de>2018-12-03 23:17:35 +0100
commit8928f78ee6305e29ed8d3b9395fcb6564c984fdf (patch)
treecd250c2b98d7131158e3744efe238780cec73fec /ontime_clocks
parenteccdad46ef2b38cd061aab7ae6bcb252a67c2218 (diff)
parenta3e0d36a68247cac40349d9089fe3c71546d75e8 (diff)
downloaddisplay_modpack-master.tar.gz
display_modpack-master.tar.bz2
display_modpack-master.zip
Merge remote-tracking branch 'upstream/master'HEADmaster
Resolved conflicts by reordering of files
Diffstat (limited to 'ontime_clocks')
-rw-r--r--ontime_clocks/README.md4
-rw-r--r--ontime_clocks/common.lua2
-rw-r--r--ontime_clocks/copyright.txt8
-rw-r--r--ontime_clocks/depends.txt2
-rw-r--r--ontime_clocks/nodes.lua72
5 files changed, 46 insertions, 42 deletions
diff --git a/ontime_clocks/README.md b/ontime_clocks/README.md
index 72c94db..d9db998 100644
--- a/ontime_clocks/README.md
+++ b/ontime_clocks/README.md
@@ -2,9 +2,9 @@
This mod provides clocks that display real ingame time.
-For more information, see the [forum topic](https://forum.minetest.net/viewtopic.php?f=11&t=13563) at the Minetest forums.
+For more information, see the [forum topic](https://forum.minetest.net/viewtopic.php?t=19365) at the Minetest forums.
-**Dependancies**: display_lib, default
+**Dependancies**: display_api, default
**License**: Code under LGPL, textures under CC-BY-SA
diff --git a/ontime_clocks/common.lua b/ontime_clocks/common.lua
index 39462d3..cced299 100644
--- a/ontime_clocks/common.lua
+++ b/ontime_clocks/common.lua
@@ -19,7 +19,7 @@
--]]
-- Entity for time display
-display_lib.register_display_entity("ontime_clocks:display")
+display_api.register_display_entity("ontime_clocks:display")
function ontime_clocks.get_h24()
return math.floor(minetest.get_timeofday()*24)%24
diff --git a/ontime_clocks/copyright.txt b/ontime_clocks/copyright.txt
index b752dff..a2afd94 100644
--- a/ontime_clocks/copyright.txt
+++ b/ontime_clocks/copyright.txt
@@ -1,4 +1,8 @@
Code, Textures and Models by Pierre-Yves Rollo (pyrollo)
-intllib support (i18n) by fat115
+intllib support (i18n) by (fat115)
intllib fallback code and tools by Diego Martínez (kaeza)
-
+Extra contibutors:
+(Thomas--S)
+Translations:
+Muhammad Nur Hidayat Yasuyoshi (MuhdNurHidayat)
+(fat115)
diff --git a/ontime_clocks/depends.txt b/ontime_clocks/depends.txt
index bdefee1..07a2ec1 100644
--- a/ontime_clocks/depends.txt
+++ b/ontime_clocks/depends.txt
@@ -1,5 +1,5 @@
default
dye
-display_lib
+display_api
intllib?
diff --git a/ontime_clocks/nodes.lua b/ontime_clocks/nodes.lua
index 70bbfd1..aa3583d 100644
--- a/ontime_clocks/nodes.lua
+++ b/ontime_clocks/nodes.lua
@@ -35,7 +35,7 @@ minetest.register_node("ontime_clocks:green_digital", {
wall_top = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
},
tiles = {"ontime_clocks_digital.png"},
- groups = {oddly_breakable_by_hand=1,not_blocking_trains=1},
+ groups = {oddly_breakable_by_hand = 1, not_blocking_trains = 1, display_modpack_node = 1},
display_entities = {
["ontime_clocks:display"] = {
depth = 13/32 - 0.01,
@@ -45,17 +45,17 @@ minetest.register_node("ontime_clocks:green_digital", {
"#040", "#0F0", ontime_clocks.get_h24(), ontime_clocks.get_m12()))
end },
},
- on_place = display_lib.on_place,
- on_construct = display_lib.on_construct,
- on_destruct = display_lib.on_destruct,
- on_rotate = display_lib.on_rotate,
+ on_place = display_api.on_place,
+ on_construct = display_api.on_construct,
+ on_destruct = display_api.on_destruct,
+ on_rotate = display_api.on_rotate,
})
minetest.register_abm({
nodenames = {"ontime_clocks:green_digital"},
interval = 5,
chance = 1,
- action = display_lib.update_entities,
+ action = display_api.update_entities,
})
-- Red digital clock
@@ -73,7 +73,7 @@ minetest.register_node("ontime_clocks:red_digital", {
wall_top = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
},
tiles = {"ontime_clocks_digital.png"},
- groups = {oddly_breakable_by_hand=1,not_blocking_trains=1},
+ groups = {oddly_breakable_by_hand = 1, not_blocking_trains = 1, display_modpack_node = 1},
display_entities = {
["ontime_clocks:display"] = {
depth = 13/32 - 0.01,
@@ -83,17 +83,17 @@ minetest.register_node("ontime_clocks:red_digital", {
"#400", "#F00", ontime_clocks.get_h24(), ontime_clocks.get_m12()))
end },
},
- on_place = display_lib.on_place,
- on_construct = display_lib.on_construct,
- on_destruct = display_lib.on_destruct,
- on_rotate = display_lib.on_rotate,
+ on_place = display_api.on_place,
+ on_construct = display_api.on_construct,
+ on_destruct = display_api.on_destruct,
+ on_rotate = display_api.on_rotate,
})
minetest.register_abm({
nodenames = {"ontime_clocks:red_digital"},
interval = 5,
chance = 1,
- action = display_lib.update_entities,
+ action = display_api.update_entities,
})
@@ -111,7 +111,7 @@ minetest.register_node("ontime_clocks:white", {
wall_top = { -7/16, 0.5, -7/16, 7/16, 7/16, 7/16},
},
tiles = {"ontime_clocks_white.png"},
- groups = {choppy=1,oddly_breakable_by_hand=1,not_blocking_trains=1},
+ groups = {choppy = 1, oddly_breakable_by_hand = 1, not_blocking_trains = 1, display_modpack_node = 1},
display_entities = {
["ontime_clocks:display"] = {
depth = 6/16 - 0.01,
@@ -121,17 +121,17 @@ minetest.register_node("ontime_clocks:white", {
"#000", 36, ontime_clocks.get_h12(), ontime_clocks.get_m12()))
end },
},
- on_place = display_lib.on_place,
- on_construct = display_lib.on_construct,
- on_destruct = display_lib.on_destruct,
- on_rotate = display_lib.on_rotate,
+ on_place = display_api.on_place,
+ on_construct = display_api.on_construct,
+ on_destruct = display_api.on_destruct,
+ on_rotate = display_api.on_rotate,
})
minetest.register_abm({
nodenames = {"ontime_clocks:white"},
interval = 5,
chance = 1,
- action = display_lib.update_entities,
+ action = display_api.update_entities,
})
minetest.register_node("ontime_clocks:frameless_black", {
@@ -148,7 +148,7 @@ minetest.register_node("ontime_clocks:frameless_black", {
wall_top = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
},
tiles = {"ontime_clocks_frameless.png"},
- groups = {choppy=1,oddly_breakable_by_hand=1,not_blocking_trains=1},
+ groups = {choppy = 1, oddly_breakable_by_hand = 1, not_blocking_trains = 1, display_modpack_node = 1},
display_entities = {
["ontime_clocks:display"] = {
depth = 7/16,
@@ -158,17 +158,17 @@ minetest.register_node("ontime_clocks:frameless_black", {
"#000", 48, ontime_clocks.get_h12(), ontime_clocks.get_m12()))
end },
},
- on_place = display_lib.on_place,
- on_construct = display_lib.on_construct,
- on_destruct = display_lib.on_destruct,
- on_rotate = display_lib.on_rotate,
+ on_place = display_api.on_place,
+ on_construct = display_api.on_construct,
+ on_destruct = display_api.on_destruct,
+ on_rotate = display_api.on_rotate,
})
minetest.register_abm({
nodenames = {"ontime_clocks:frameless_black"},
interval = 5,
chance = 1,
- action = display_lib.update_entities,
+ action = display_api.update_entities,
})
minetest.register_node("ontime_clocks:frameless_gold", {
@@ -185,7 +185,7 @@ minetest.register_node("ontime_clocks:frameless_gold", {
wall_top = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
},
tiles = {"ontime_clocks_frameless.png^[colorize:#FF0"},
- groups = {choppy=1,oddly_breakable_by_hand=1,not_blocking_trains=1},
+ groups = {choppy = 1, oddly_breakable_by_hand = 1, not_blocking_trains = 1, display_modpack_node = 1},
display_entities = {
["ontime_clocks:display"] = {
depth = 7/16,
@@ -195,17 +195,17 @@ minetest.register_node("ontime_clocks:frameless_gold", {
"#FF0", 48, ontime_clocks.get_h12(), ontime_clocks.get_m12()))
end },
},
- on_place = display_lib.on_place,
- on_construct = display_lib.on_construct,
- on_destruct = display_lib.on_destruct,
- on_rotate = display_lib.on_rotate,
+ on_place = display_api.on_place,
+ on_construct = display_api.on_construct,
+ on_destruct = display_api.on_destruct,
+ on_rotate = display_api.on_rotate,
})
minetest.register_abm({
nodenames = {"ontime_clocks:frameless_gold"},
interval = 5,
chance = 1,
- action = display_lib.update_entities,
+ action = display_api.update_entities,
})
minetest.register_node("ontime_clocks:frameless_white", {
@@ -222,7 +222,7 @@ minetest.register_node("ontime_clocks:frameless_white", {
wall_top = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
},
tiles = {"ontime_clocks_frameless.png^[colorize:#FFF"},
- groups = {choppy=1,oddly_breakable_by_hand=1,not_blocking_trains=1},
+ groups = {choppy = 1, oddly_breakable_by_hand = 1, not_blocking_trains = 1, display_modpack_node = 1},
display_entities = {
["ontime_clocks:display"] = {
depth = 7/16,
@@ -232,15 +232,15 @@ minetest.register_node("ontime_clocks:frameless_white", {
"#FFF", 48, ontime_clocks.get_h12(), ontime_clocks.get_m12()))
end },
},
- on_place = display_lib.on_place,
- on_construct = display_lib.on_construct,
- on_destruct = display_lib.on_destruct,
- on_rotate = display_lib.on_rotate,
+ on_place = display_api.on_place,
+ on_construct = display_api.on_construct,
+ on_destruct = display_api.on_destruct,
+ on_rotate = display_api.on_rotate,
})
minetest.register_abm({
nodenames = {"ontime_clocks:frameless_white"},
interval = 5,
chance = 1,
- action = display_lib.update_entities,
+ action = display_api.update_entities,
})