diff options
author | Maverick2797 <git.maverick2797@gmail.com> | 2025-03-28 22:28:11 +0800 |
---|---|---|
committer | orwell <orwell@bleipb.de> | 2025-04-09 00:32:04 +0200 |
commit | 867eb387c5893b004996d6e68efddd9ca2fca36a (patch) | |
tree | d129137667964b11ff783ea2461345313472a7c0 /advtrains_luaautomation | |
parent | 87b566cb6f63d47c8cb093cfd452bfa8c39b480c (diff) | |
download | advtrains-867eb387c5893b004996d6e68efddd9ca2fca36a.tar.gz advtrains-867eb387c5893b004996d6e68efddd9ca2fca36a.tar.bz2 advtrains-867eb387c5893b004996d6e68efddd9ca2fca36a.zip |
Add craft recipes for LuaATC components
Diffstat (limited to 'advtrains_luaautomation')
-rw-r--r-- | advtrains_luaautomation/init.lua | 3 | ||||
-rw-r--r-- | advtrains_luaautomation/recipes.lua | 27 | ||||
-rw-r--r-- | advtrains_luaautomation/settingtypes.txt | 2 |
3 files changed, 32 insertions, 0 deletions
diff --git a/advtrains_luaautomation/init.lua b/advtrains_luaautomation/init.lua index b359142..a2f4eb9 100644 --- a/advtrains_luaautomation/init.lua +++ b/advtrains_luaautomation/init.lua @@ -40,6 +40,9 @@ dofile(mp.."/pcnaming.lua") dofile(mp.."/chatcmds.lua") +if minetest.settings:get_bool("advtrains_luaautomation_enable_atlac_recipes",false) == true then + dofile(mp.."/recipes.lua") +end local filename=minetest.get_worldpath().."/advtrains_luaautomation" diff --git a/advtrains_luaautomation/recipes.lua b/advtrains_luaautomation/recipes.lua new file mode 100644 index 0000000..16121a8 --- /dev/null +++ b/advtrains_luaautomation/recipes.lua @@ -0,0 +1,27 @@ +-- depends on default, digilines and mesecons for crafting recipes +minetest.register_craft({ + output = "advtrains_luaautomation:dtrack_placer", + recipe = { + {"","mesecons_luacontroller:luacontroller0000",""}, + {"","advtrains:dtrack_atc_placer",""}, + {"","digilines:wire_std_00000000",""}, + } +}) + +minetest.register_craft({ + output = "advtrains_luaautomation:mesecon_controller0000", + recipe = { + {"","mesecons:wire_00000000_off",""}, + {"mesecons:wire_00000000_off","advtrains_luaautomation:dtrack_placer","mesecons:wire_00000000_off"}, + {"","mesecons:wire_00000000_off",""}, + } +}) + +minetest.register_craft({ + output = "advtrains_luaautomation:oppanel", + recipe = { + {"","mesecons_button:button_off",""}, + {"","advtrains_luaautomation:mesecon_controller0000",""}, + {"","default:stone",""}, + } +})
\ No newline at end of file diff --git a/advtrains_luaautomation/settingtypes.txt b/advtrains_luaautomation/settingtypes.txt new file mode 100644 index 0000000..20ed52e --- /dev/null +++ b/advtrains_luaautomation/settingtypes.txt @@ -0,0 +1,2 @@ +# Enable or disable craft recipes for LuaATC components +advtrains_luaautomation_enable_atlac_recipes (Enable LuaATC component craft recipes) bool true
\ No newline at end of file |