3 Commits

Author SHA1 Message Date
d8b32ac60f remove optional depends 2022-08-14 09:51:48 +02:00
9dcaffc813 remove depends 2022-07-12 13:44:29 +02:00
OgelGames
93ce53458f update readme 2021-12-11 14:16:07 +11:00
4 changed files with 4 additions and 77 deletions

View File

@@ -54,7 +54,9 @@ The Limiter can also be right-clicked to set the rate at which messages can pass
## Installation
Download the [master branch](https://github.com/OgelGames/digicontrol/archive/master.zip) or the [latest release](https://github.com/OgelGames/digicontrol/releases), or clone the repository using Git or the [GitHub Desktop](https://desktop.github.com/) app, and follow [the usual installation steps](https://dev.minetest.net/Installing_Mods).
Download the [master branch](https://github.com/OgelGames/digicontrol/archive/master.zip) or the [latest release](https://github.com/OgelGames/digicontrol/releases), and follow [the usual installation steps](https://dev.minetest.net/Installing_Mods).
Alternatively, you can download and install the mod from [ContentDB](https://content.minetest.net/packages/OgelGames/digicontrol) or the online content tab in Minetest.
## License

View File

@@ -1,72 +0,0 @@
local function get_craftitem(items)
for _,item in ipairs(items) do
if minetest.registered_items[item] then
return item
end
end
return "???"
end
local digiwire = "digilines:wire_std_00000000"
local silicon = get_craftitem({
"basic_materials:silicon",
"mesecons_materials:silicon",
"default:flint"
})
local wire = get_craftitem({
"basic_materials:steel_wire",
"default:steel_ingot"
})
local ic = get_craftitem({
"basic_materials:ic",
"default:mese_crystal_fragment"
})
minetest.register_craft({
output = "digicontrol:diode",
recipe = {
{"", "", ""},
{digiwire, silicon, digiwire},
{"", "", ""},
},
})
minetest.register_craft({
output = "digicontrol:splitter",
recipe = {
{"", "", digiwire},
{digiwire, silicon, ""},
{"", "", digiwire},
},
})
minetest.register_craft({
output = "digicontrol:trisplitter",
recipe = {
{"", "", digiwire},
{digiwire, silicon, digiwire},
{"", "", digiwire},
},
})
minetest.register_craft({
output = "digicontrol:limiter",
recipe = {
{"", "", ""},
{digiwire, wire, digiwire},
{"", "", ""},
},
})
minetest.register_craft({
output = "digicontrol:filter",
recipe = {
{"", "", ""},
{digiwire, ic, digiwire},
{"", "", ""},
},
})

View File

@@ -58,5 +58,3 @@ dofile(MP.."/trisplitter.lua")
dofile(MP.."/filter.lua")
dofile(MP.."/limiter.lua")
-- Crafting recipes
dofile(MP.."/crafts.lua")

View File

@@ -1,5 +1,4 @@
name = digicontrol
description = Adds nodes to control the flow of digiline messages
depends = default, digilines
optional_depends = basic_materials, mesecons_materials
depends = digilines
min_minetest_version = 5.0