aboutsummaryrefslogtreecommitdiff
path: root/ontime_clocks
diff options
context:
space:
mode:
Diffstat (limited to 'ontime_clocks')
-rw-r--r--ontime_clocks/README.md2
-rw-r--r--ontime_clocks/crafts.lua26
-rw-r--r--ontime_clocks/mod.conf2
3 files changed, 16 insertions, 14 deletions
diff --git a/ontime_clocks/README.md b/ontime_clocks/README.md
index d9db998..edd2c07 100644
--- a/ontime_clocks/README.md
+++ b/ontime_clocks/README.md
@@ -4,7 +4,7 @@ This mod provides clocks that display real ingame time.
For more information, see the [forum topic](https://forum.minetest.net/viewtopic.php?t=19365) at the Minetest forums.
-**Dependancies**: display_api, default
+**Dependencies**: display_api, xcompat
**License**: Code under LGPL, textures under CC-BY-SA
diff --git a/ontime_clocks/crafts.lua b/ontime_clocks/crafts.lua
index 9eab3a9..fa218a2 100644
--- a/ontime_clocks/crafts.lua
+++ b/ontime_clocks/crafts.lua
@@ -18,11 +18,13 @@
along with ontime_clocks. If not, see <http://www.gnu.org/licenses/>.
--]]
+local mat = xcompat.materials
+
minetest.register_craft({
output = 'ontime_clocks:green_digital',
recipe = {
- {'', 'dye:green', ''},
- {'default:glass', 'default:mese_crystal', 'default:glass'},
+ {'', mat.dye_green, ''},
+ {mat.glass, mat.mese_crystal, mat.glass},
{'', '', ''},
}
})
@@ -30,8 +32,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'ontime_clocks:red_digital',
recipe = {
- {'', 'dye:red', ''},
- {'default:glass', 'default:mese_crystal', 'default:glass'},
+ {'', mat.dye_red, ''},
+ {mat.glass, mat.mese_crystal, mat.glass},
{'', '', ''},
}
})
@@ -39,8 +41,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'ontime_clocks:white',
recipe = {
- {'default:steel_ingot', 'default:paper', 'default:steel_ingot'},
- {'', 'default:mese_crystal', ''},
+ {mat.steel_ingot, mat.paper, mat.steel_ingot},
+ {'', mat.mese_crystal, ''},
{'', '', ''},
}
})
@@ -48,8 +50,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'ontime_clocks:frameless_black',
recipe = {
- {'default:steel_ingot', 'dye:black', 'default:steel_ingot'},
- {'', 'default:mese_crystal', ''},
+ {mat.steel_ingot, mat.dye_black, mat.steel_ingot},
+ {'', mat.mese_crystal, ''},
{'', '', ''},
}
})
@@ -57,8 +59,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'ontime_clocks:frameless_gold',
recipe = {
- {'default:gold_ingot', '', 'default:gold_ingot'},
- {'', 'default:mese_crystal', ''},
+ {mat.gold_ingot, '', mat.gold_ingot},
+ {'', mat.mese_crystal, ''},
{'', '', ''},
}
})
@@ -66,8 +68,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'ontime_clocks:frameless_white',
recipe = {
- {'default:steel_ingot', 'dye:white', 'default:steel_ingot'},
- {'', 'default:mese_crystal', ''},
+ {mat.steel_ingot, mat.dye_white, mat.steel_ingot},
+ {'', mat.mese_crystal, ''},
{'', '', ''},
}
})
diff --git a/ontime_clocks/mod.conf b/ontime_clocks/mod.conf
index 144b266..94fcfc4 100644
--- a/ontime_clocks/mod.conf
+++ b/ontime_clocks/mod.conf
@@ -1,4 +1,4 @@
name = ontime_clocks
title = Ontime Clocks
description = Clocks displaing real ingame time
-depends = default,dye,display_api
+depends = display_api, xcompat