mirror of
https://github.com/pyrollo/display_modpack.git
synced 2025-10-15 00:35:20 +02:00
Make dp_modpack game agnostic using XCompat (#14)
* . * Add `material.sandstone` (not in upstream xcompat yet)
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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, ''},
|
||||
{'', '', ''},
|
||||
}
|
||||
})
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user