aboutsummaryrefslogtreecommitdiff
path: root/signs_road
diff options
context:
space:
mode:
authorNiklp <nik@niklp.net>2024-03-11 09:04:12 +0100
committerGitHub <noreply@github.com>2024-03-11 09:04:12 +0100
commitc315900c24df6ee958a92e013463e36dfbeb5225 (patch)
tree5b17ee5363924550a0c3e7de78438a4ab55a1859 /signs_road
parent394166ca5623d9c5b9d7f17ebb2c5b85b1c8d9d2 (diff)
downloaddisplay_modpack_no_craft-c315900c24df6ee958a92e013463e36dfbeb5225.tar.gz
display_modpack_no_craft-c315900c24df6ee958a92e013463e36dfbeb5225.zip
Make dp_modpack game agnostic using XCompat (#14)
* . * Add `material.sandstone` (not in upstream xcompat yet)
Diffstat (limited to 'signs_road')
-rw-r--r--signs_road/README.md2
-rw-r--r--signs_road/crafts.lua56
-rw-r--r--signs_road/mod.conf2
3 files changed, 31 insertions, 29 deletions
diff --git a/signs_road/README.md b/signs_road/README.md
index 0a2f685..e2229ef 100644
--- a/signs_road/README.md
+++ b/signs_road/README.md
@@ -4,7 +4,7 @@ This mod provides road signs with text display. Text is locked if area is protec
For more information, see the [forum topic](https://forum.minetest.net/viewtopic.php?t=19365) at the Minetest forums.
-**Dependancies**: default, display\_lib, font\_lib, signs
+**Dependencies**: xcompat, display\_lib, font\_lib, signs
**License**: Code under LGPL, texture under CC-BY-SA
diff --git a/signs_road/crafts.lua b/signs_road/crafts.lua
index e20f3a2..f888916 100644
--- a/signs_road/crafts.lua
+++ b/signs_road/crafts.lua
@@ -19,13 +19,15 @@
along with signs_road. If not, see <http://www.gnu.org/licenses/>.
--]]
+local mat = xcompat.materials
+
-- Standard rectangle signs
minetest.register_craft({
output = 'signs_road:white_sign 2',
recipe = {
- {'dye:white', 'dye:black', ''},
- {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
+ {mat.dye_white, mat.dye_black, ''},
+ {mat.steel_ingot, mat.steel_ingot, mat.steel_ingot},
{'', '', ''},
}
})
@@ -33,8 +35,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'signs_road:blue_sign 2',
recipe = {
- {'dye:blue', 'dye:white', ''},
- {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
+ {mat.dye_blue, mat.dye_white, ''},
+ {mat.steel_ingot, mat.steel_ingot, mat.steel_ingot},
{'', '', ''},
}
})
@@ -42,8 +44,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'signs_road:green_sign 2',
recipe = {
- {'dye:green', 'dye:white', ''},
- {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
+ {mat.dye_green, mat.dye_white, ''},
+ {mat.steel_ingot, mat.steel_ingot, mat.steel_ingot},
{'', '', ''},
}
})
@@ -51,8 +53,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'signs_road:yellow_sign 2',
recipe = {
- {'dye:yellow', 'dye:black', ''},
- {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
+ {mat.dye_yellow, mat.dye_black, ''},
+ {mat.steel_ingot, mat.steel_ingot, mat.steel_ingot},
{'', '', ''},
}
})
@@ -60,8 +62,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'signs_road:red_sign 2',
recipe = {
- {'dye:red', 'dye:white', ''},
- {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
+ {mat.dye_red, mat.dye_white, ''},
+ {mat.steel_ingot, mat.steel_ingot, mat.steel_ingot},
{'', '', ''},
}
})
@@ -71,8 +73,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'signs_road:black_right_sign 2',
recipe = {
- {'dye:black', 'dye:white', 'default:steel_ingot'},
- {'default:steel_ingot', 'default:steel_ingot', ''},
+ {mat.dye_black, mat.dye_white, mat.steel_ingot},
+ {mat.steel_ingot, mat.steel_ingot, ''},
{'', '', ''},
}
})
@@ -80,8 +82,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'signs_road:white_right_sign 2',
recipe = {
- {'dye:white', 'dye:black', 'default:steel_ingot'},
- {'default:steel_ingot', 'default:steel_ingot', ''},
+ {mat.dye_white, mat.dye_black, mat.steel_ingot},
+ {mat.steel_ingot, mat.steel_ingot, ''},
{'', '', ''},
}
})
@@ -89,8 +91,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'signs_road:blue_right_sign 2',
recipe = {
- {'dye:blue', 'dye:white', 'default:steel_ingot'},
- {'default:steel_ingot', 'default:steel_ingot', ''},
+ {mat.dye_blue, mat.dye_white, mat.steel_ingot},
+ {mat.steel_ingot, mat.steel_ingot, ''},
{'', '', ''},
}
})
@@ -98,8 +100,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'signs_road:green_right_sign 2',
recipe = {
- {'dye:green', 'dye:white', 'default:steel_ingot'},
- {'default:steel_ingot', 'default:steel_ingot', ''},
+ {mat.dye_green, mat.dye_white, mat.steel_ingot},
+ {mat.steel_ingot, mat.steel_ingot, ''},
{'', '', ''},
}
})
@@ -107,8 +109,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'signs_road:yellow_right_sign 2',
recipe = {
- {'dye:yellow', 'dye:black', 'default:steel_ingot'},
- {'default:steel_ingot', 'default:steel_ingot', ''},
+ {mat.dye_yellow, mat.dye_black, mat.steel_ingot},
+ {mat.steel_ingot, mat.steel_ingot, ''},
{'', '', ''},
}
})
@@ -116,8 +118,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'signs_road:red_right_sign 2',
recipe = {
- {'dye:red', 'dye:white', 'default:steel_ingot'},
- {'default:steel_ingot', 'default:steel_ingot', ''},
+ {mat.dye_red, mat.dye_white, mat.steel_ingot},
+ {mat.steel_ingot, mat.steel_ingot, ''},
{'', '', ''},
}
})
@@ -179,17 +181,17 @@ minetest.register_craft({
minetest.register_craft({
output = 'signs_road:blue_street_sign 4',
recipe = {
- {'dye:blue', 'dye:white', 'dye:blue'},
- {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
- {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
+ {mat.dye_blue, mat.dye_white, mat.dye_blue},
+ {mat.steel_ingot, mat.steel_ingot, mat.steel_ingot},
+ {mat.steel_ingot, mat.steel_ingot, mat.steel_ingot},
}
})
minetest.register_craft({
output = 'signs_road:red_street_sign 2',
recipe = {
- {'dye:white', 'dye:red', 'dye:black'},
- {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
+ {mat.dye_white, mat.dye_red, mat.dye_black},
+ {mat.steel_ingot, mat.steel_ingot, mat.steel_ingot},
{'', '', ''},
}
})
diff --git a/signs_road/mod.conf b/signs_road/mod.conf
index 6db7bcf..920a3f4 100644
--- a/signs_road/mod.conf
+++ b/signs_road/mod.conf
@@ -1,4 +1,4 @@
name = signs_road
title = Signs Road
description = Various road signs with text display using signs_api
-depends = default,dye,signs_api
+depends = signs_api, xcompat