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_train_track | |
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_train_track')
-rwxr-xr-x[-rw-r--r--] | advtrains_train_track/init.lua | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/advtrains_train_track/init.lua b/advtrains_train_track/init.lua index 78d1392..744d86b 100644..100755 --- a/advtrains_train_track/init.lua +++ b/advtrains_train_track/init.lua @@ -298,15 +298,27 @@ advtrains.register_tracks("default", { end }, advtrains.trackpresets.t_30deg_straightonly) +-- mod-dependent crafts +local loader_core = "default:mese_crystal" --fallback +if minetest.get_modpath("basic_materials") then + loader_core = "basic_materials:ic" +elseif minetest.get_modpath("technic") then + loader_core = "technic:control_logic_unit" +end +--print("Loader Core: "..loader_core) + minetest.register_craft({ type="shapeless", output = 'advtrains:dtrack_load_placer', recipe = { "advtrains:dtrack_placer", - "basic_materials:ic", + loader_core, "default:chest" }, }) +loader_core = nil --nil the crafting variable + +--craft between load/unload tracks minetest.register_craft({ type="shapeless", output = 'advtrains:dtrack_unload_placer', |