Add files via upload

This commit is contained in:
loosewheel
2022-08-09 19:50:22 +10:00
committed by GitHub
parent 156b47f8b9
commit fcf6b7b6ff
7 changed files with 1625 additions and 2 deletions

View File

@@ -180,3 +180,7 @@ v0.1.29
v0.1.30
* Added quantity field to droppers.
* Added 'Use player when placing' setting.
v0.1.31
* Added crafter.

1583
crafter.lua Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -60,6 +60,26 @@ minetest.register_craft( {
})
minetest.register_craft( {
output = "lwcomponents:crafter",
recipe = {
{ "default:steel_ingot", "group:wood", "default:steel_ingot" },
{ "group:wood", "", "group:wood" },
{ "default:copper_ingot", "group:wood", "default:chest" },
},
})
minetest.register_craft( {
output = "lwcomponents:crafter_locked",
recipe = {
{ "default:steel_ingot", "group:wood", "default:steel_ingot" },
{ "group:wood", "", "group:wood" },
{ "default:copper_ingot", "group:wood", "default:chest_locked" },
},
})
minetest.register_craft( {
output = "lwcomponents:force_field",
recipe = {

5
crafting_mods.lua Normal file
View File

@@ -0,0 +1,5 @@
return
{
-- ["mod:crafted_item"] = { add = { "mod:name n", "mod:name n" }, remove = { "mod:name n", "mod:name n" } },
["farming:pineapple_ring"] = { add = { "farming:pineapple_top" } }
}

View File

@@ -1,4 +1,4 @@
local version = "0.1.30"
local version = "0.1.31"
local mod_storage = minetest.get_mod_storage ()
@@ -40,6 +40,7 @@ loadfile (modpath.."/pistons.lua") (utils)
loadfile (modpath.."/through_wire.lua") (utils)
loadfile (modpath.."/camera.lua") (utils)
loadfile (modpath.."/storage.lua") (utils)
loadfile (modpath.."/crafter.lua") (utils)
loadfile (modpath.."/force_field.lua") (utils)
loadfile (modpath.."/destroyer.lua") (utils)
loadfile (modpath.."/extras.lua") (utils)

View File

@@ -13,7 +13,7 @@ CC BY-SA 3.0
Version
=======
0.1.30
0.1.31
Minetest Version
@@ -71,6 +71,7 @@ Various components for mesecons and digilines.
* Movefloor, similar to vertical mesecons movestone.
* Camera, takes a representative image.
* Storage, indexed storage units.
* Crafter, crafts by recipe or by item, and can pull from storage units.
* Hoppers, that are more compatible with this mod.
* Force Field Generator, repels players and mobs within a radius.
* Mesecons Through Wire, transmits through 1 to 2 solid blocks.

View File

@@ -439,4 +439,13 @@ end
local crafting_mods = dofile (minetest.get_modpath ("lwcomponents").."/crafting_mods.lua")
function utils.get_crafting_mods (item)
return crafting_mods[item]
end
--