diff options
author | Maverick2797 <git.maverick2797@gmail.com> | 2021-02-24 20:16:55 +0800 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2021-03-06 21:00:35 +0100 |
commit | e38f215faa95ad7fc2fb8c473f830aa689c468d2 (patch) | |
tree | 75808b3e1b823119930e9965e7e2118e243714fd /advtrains_signals_ks | |
parent | 6135f8a23b4f507870dab481f4db466e6be0ac7d (diff) | |
download | advtrains-e38f215faa95ad7fc2fb8c473f830aa689c468d2.tar.gz advtrains-e38f215faa95ad7fc2fb8c473f830aa689c468d2.tar.bz2 advtrains-e38f215faa95ad7fc2fb8c473f830aa689c468d2.zip |
Added alternative recipes, falling back on the default: items as they seem to be in the rest of the mod.
May need rebalancing though.
Diffstat (limited to 'advtrains_signals_ks')
-rwxr-xr-x[-rw-r--r--] | advtrains_signals_ks/init.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/advtrains_signals_ks/init.lua b/advtrains_signals_ks/init.lua index 1c60a0e..aa1b1cb 100644..100755 --- a/advtrains_signals_ks/init.lua +++ b/advtrains_signals_ks/init.lua @@ -270,11 +270,18 @@ minetest.register_craft({ }, }) +local sign_material = "default:sign_wall_steel" --fallback +if minetest.get_modpath("basic_materials") then + sign_material = "basic_materials:plastic_sheet" +end +--print("Sign Material: "..sign_material) + minetest.register_craft({ output = "advtrains_signals_ks:sign_8_0 2", recipe = { - {'basic_materials:plastic_sheet', 'dye:black'}, + {sign_material, 'dye:black'}, {'default:stick', ''}, {'default:stick', ''}, }, }) +sign_material = nil |