mirror of
https://github.com/pyrollo/display_modpack.git
synced 2025-01-10 09:00:17 +01:00
clocks aren't ground content
also some minor whitespace indent fixes
This commit is contained in:
parent
864a760b6e
commit
76601aaeac
@ -36,6 +36,7 @@ minetest.register_node("ontime_clocks:green_digital", {
|
|||||||
},
|
},
|
||||||
tiles = {"ontime_clocks_digital.png"},
|
tiles = {"ontime_clocks_digital.png"},
|
||||||
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
|
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
|
||||||
|
is_ground_content = false,
|
||||||
display_entities = {
|
display_entities = {
|
||||||
["ontime_clocks:display"] = {
|
["ontime_clocks:display"] = {
|
||||||
depth = 13/32 - 0.01,
|
depth = 13/32 - 0.01,
|
||||||
@ -43,7 +44,8 @@ minetest.register_node("ontime_clocks:green_digital", {
|
|||||||
objref:set_properties(
|
objref:set_properties(
|
||||||
ontime_clocks.get_digital_properties(
|
ontime_clocks.get_digital_properties(
|
||||||
"#040", "#0F0", ontime_clocks.get_h24(), ontime_clocks.get_m12()))
|
"#040", "#0F0", ontime_clocks.get_h24(), ontime_clocks.get_m12()))
|
||||||
end },
|
end
|
||||||
|
},
|
||||||
},
|
},
|
||||||
on_place = display_api.on_place,
|
on_place = display_api.on_place,
|
||||||
on_construct = display_api.on_construct,
|
on_construct = display_api.on_construct,
|
||||||
@ -74,6 +76,7 @@ minetest.register_node("ontime_clocks:red_digital", {
|
|||||||
},
|
},
|
||||||
tiles = {"ontime_clocks_digital.png"},
|
tiles = {"ontime_clocks_digital.png"},
|
||||||
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
|
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
|
||||||
|
is_ground_content = false,
|
||||||
display_entities = {
|
display_entities = {
|
||||||
["ontime_clocks:display"] = {
|
["ontime_clocks:display"] = {
|
||||||
depth = 13/32 - 0.01,
|
depth = 13/32 - 0.01,
|
||||||
@ -81,7 +84,8 @@ minetest.register_node("ontime_clocks:red_digital", {
|
|||||||
objref:set_properties(
|
objref:set_properties(
|
||||||
ontime_clocks.get_digital_properties(
|
ontime_clocks.get_digital_properties(
|
||||||
"#400", "#F00", ontime_clocks.get_h24(), ontime_clocks.get_m12()))
|
"#400", "#F00", ontime_clocks.get_h24(), ontime_clocks.get_m12()))
|
||||||
end },
|
end
|
||||||
|
},
|
||||||
},
|
},
|
||||||
on_place = display_api.on_place,
|
on_place = display_api.on_place,
|
||||||
on_construct = display_api.on_construct,
|
on_construct = display_api.on_construct,
|
||||||
@ -112,6 +116,7 @@ minetest.register_node("ontime_clocks:white", {
|
|||||||
},
|
},
|
||||||
tiles = {"ontime_clocks_white.png"},
|
tiles = {"ontime_clocks_white.png"},
|
||||||
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
|
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
|
||||||
|
is_ground_content = false,
|
||||||
display_entities = {
|
display_entities = {
|
||||||
["ontime_clocks:display"] = {
|
["ontime_clocks:display"] = {
|
||||||
depth = 6/16 - 0.01,
|
depth = 6/16 - 0.01,
|
||||||
@ -119,7 +124,8 @@ minetest.register_node("ontime_clocks:white", {
|
|||||||
objref:set_properties(
|
objref:set_properties(
|
||||||
ontime_clocks.get_needles_properties(
|
ontime_clocks.get_needles_properties(
|
||||||
"#000", 36, ontime_clocks.get_h12(), ontime_clocks.get_m12()))
|
"#000", 36, ontime_clocks.get_h12(), ontime_clocks.get_m12()))
|
||||||
end },
|
end
|
||||||
|
},
|
||||||
},
|
},
|
||||||
on_place = display_api.on_place,
|
on_place = display_api.on_place,
|
||||||
on_construct = display_api.on_construct,
|
on_construct = display_api.on_construct,
|
||||||
@ -149,6 +155,7 @@ minetest.register_node("ontime_clocks:frameless_black", {
|
|||||||
},
|
},
|
||||||
tiles = {"ontime_clocks_frameless.png"},
|
tiles = {"ontime_clocks_frameless.png"},
|
||||||
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
|
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
|
||||||
|
is_ground_content = false,
|
||||||
display_entities = {
|
display_entities = {
|
||||||
["ontime_clocks:display"] = {
|
["ontime_clocks:display"] = {
|
||||||
depth = 7/16,
|
depth = 7/16,
|
||||||
@ -156,7 +163,8 @@ minetest.register_node("ontime_clocks:frameless_black", {
|
|||||||
objref:set_properties(
|
objref:set_properties(
|
||||||
ontime_clocks.get_needles_properties(
|
ontime_clocks.get_needles_properties(
|
||||||
"#000", 48, ontime_clocks.get_h12(), ontime_clocks.get_m12()))
|
"#000", 48, ontime_clocks.get_h12(), ontime_clocks.get_m12()))
|
||||||
end },
|
end
|
||||||
|
},
|
||||||
},
|
},
|
||||||
on_place = display_api.on_place,
|
on_place = display_api.on_place,
|
||||||
on_construct = display_api.on_construct,
|
on_construct = display_api.on_construct,
|
||||||
@ -186,6 +194,7 @@ minetest.register_node("ontime_clocks:frameless_gold", {
|
|||||||
},
|
},
|
||||||
tiles = {"ontime_clocks_frameless.png^[colorize:#FF0"},
|
tiles = {"ontime_clocks_frameless.png^[colorize:#FF0"},
|
||||||
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
|
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
|
||||||
|
is_ground_content = false,
|
||||||
display_entities = {
|
display_entities = {
|
||||||
["ontime_clocks:display"] = {
|
["ontime_clocks:display"] = {
|
||||||
depth = 7/16,
|
depth = 7/16,
|
||||||
@ -193,7 +202,8 @@ minetest.register_node("ontime_clocks:frameless_gold", {
|
|||||||
objref:set_properties(
|
objref:set_properties(
|
||||||
ontime_clocks.get_needles_properties(
|
ontime_clocks.get_needles_properties(
|
||||||
"#FF0", 48, ontime_clocks.get_h12(), ontime_clocks.get_m12()))
|
"#FF0", 48, ontime_clocks.get_h12(), ontime_clocks.get_m12()))
|
||||||
end },
|
end
|
||||||
|
},
|
||||||
},
|
},
|
||||||
on_place = display_api.on_place,
|
on_place = display_api.on_place,
|
||||||
on_construct = display_api.on_construct,
|
on_construct = display_api.on_construct,
|
||||||
@ -223,6 +233,7 @@ minetest.register_node("ontime_clocks:frameless_white", {
|
|||||||
},
|
},
|
||||||
tiles = {"ontime_clocks_frameless.png^[colorize:#FFF"},
|
tiles = {"ontime_clocks_frameless.png^[colorize:#FFF"},
|
||||||
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
|
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
|
||||||
|
is_ground_content = false,
|
||||||
display_entities = {
|
display_entities = {
|
||||||
["ontime_clocks:display"] = {
|
["ontime_clocks:display"] = {
|
||||||
depth = 7/16,
|
depth = 7/16,
|
||||||
@ -230,7 +241,8 @@ minetest.register_node("ontime_clocks:frameless_white", {
|
|||||||
objref:set_properties(
|
objref:set_properties(
|
||||||
ontime_clocks.get_needles_properties(
|
ontime_clocks.get_needles_properties(
|
||||||
"#FFF", 48, ontime_clocks.get_h12(), ontime_clocks.get_m12()))
|
"#FFF", 48, ontime_clocks.get_h12(), ontime_clocks.get_m12()))
|
||||||
end },
|
end
|
||||||
|
},
|
||||||
},
|
},
|
||||||
on_place = display_api.on_place,
|
on_place = display_api.on_place,
|
||||||
on_construct = display_api.on_construct,
|
on_construct = display_api.on_construct,
|
||||||
|
Loading…
Reference in New Issue
Block a user