Browse Source

Add screenshot, more items, craftin recipes

master
migdyn 4 years ago
parent
commit
c6fc12e651
  1. 5
      craftitems.lua
  2. 58
      crafts.lua
  3. 3
      depends.lua
  4. 1
      init.lua
  5. BIN
      screenshot.png
  6. BIN
      textures/electronics_circuitboard_multimeter_digital.png

5
craftitems.lua

@ -64,3 +64,8 @@ minetest.register_craftitem("electronics:transformer", {
description = "Transformer",
inventory_image = "electronics_transformer.png",
})
minetest.register_craftitem("electronics:circuitboard_multimeter_digital", {
description = "Digital Multimeter Circuit Board",
inventory_image = "electronics_circuitboard_multimeter_digital.png",
})

58
crafts.lua

@ -0,0 +1,58 @@
minetest.register_craft({
output = "electronics:fuse_glass 32",
recipe = {
{"", "", ""},
{"default:steel_ingot", "default:glass", "default:steel_ingot"},
{"", "", ""},
},
})
minetest.register_craft({
output = "electronics:wire_copper 16",
recipe = {
{"", "default:copper_ingot", ""},
{"", "default:copper_ingot", ""},
{"", "", ""},
},
})
minetest.register_craft({
output = "electronics:wire_copper_insulated",
recipe = {
{"", "farming:cotton", ""},
{"", "electronics:wire_copper", ""},
{"", "", ""},
},
})
minetest.register_craft({
output = "electronics:light_bulb_incandescent_white 4",
recipe = {
{"", "default:glass", ""},
{"default:glass", "", "default:glass"},
{"", "default:steel_ingot", ""},
},
})
minetest.register_craft({
output = "electronics:battery_li_ion_aa",
recipe = {
{"", "", ""},
{"default:coal_lump", "default:steel_ingot", "default:steel_ingot"},
{"", "", ""},
},
})
minetest.register_craft({
output = "electronics:coil_copper 2",
recipe = {
{"electronics:wire_copper", "electronics:wire_copper", "electronics:wire_copper"},
{"electronics:wire_copper", "", "electronics:wire_copper"},
{"", "", ""},
}
})

3
depends.lua

@ -0,0 +1,3 @@
default
farming

1
init.lua

@ -2,3 +2,4 @@ local modpath = minetest.get_modpath("electronics")
dofile(modpath .. "/craftitems.lua")
dofile(modpath .. "/tools.lua")
dofile(modpath .. "/crafts.lua")

BIN
screenshot.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
textures/electronics_circuitboard_multimeter_digital.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Loading…
Cancel
Save