Added Ores module
This commit is contained in:
parent
9cb4790f40
commit
169ea1ce76
|
@ -2,7 +2,7 @@
|
|||
Non-API portions of MicroExpansion are loaded as modules to allow them to be easily enabled or disabled. Modules can be manually loaded or required from the API or from another module. Specific modules can be disabled using `modules.conf`, as documented below.
|
||||
|
||||
## Managing Modules
|
||||
Modules listed in the configuration file are automatically loaded at startup unless specifically disabled. For the purpose of listing and/or disabling mods, we've introduced the `modules.conf` file.
|
||||
Modules listed in the configuration file are automatically loaded at startup unless specifically disabled. For the purpose of listing and/or disabling mods, we've introduced the `modules.conf` file.
|
||||
|
||||
Each module is listed on a new line, as if setting a variable. A module can be disabled or enabled by setting this variable to `true` or `false`. If a module is not listed here, or is set to `false` (disabled), it will not be automatically loaded.
|
||||
|
||||
|
@ -32,4 +32,4 @@ Attempts to load a module. If the module path is `nil`, `nil` is returned to ind
|
|||
#### `require_module(name)`
|
||||
__Usage:__ `microexpansion.require_module(<module name (string)>)`
|
||||
|
||||
Passes name to `load_module` if the mod was not disabled in `modules.conf`. For further documentation, see `load_module`.
|
||||
Passes name to `load_module` if the mod was not disabled in `modules.conf`. For further documentation, see `load_module`.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
shared = true
|
||||
power = true
|
||||
storage = true
|
||||
oregen = true
|
||||
|
|
32
modules/crafting/init.lua
Normal file
32
modules/crafting/init.lua
Normal file
|
@ -0,0 +1,32 @@
|
|||
--ME Steel Infused Obsidian Ingot
|
||||
minetest.register_craftitem("microexpansion:steel_infused_obsidian_ingot", {
|
||||
description = "Steel Infused Obsidian Ingot",
|
||||
inventory_image = "infused_obsidian_ingot.png"
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "microexpansion:steel_infused_obsidian_ingot",
|
||||
recipe = {"default:steel_ingot", "default:obsidian_shard", "default:steel_ingot"}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("microexpansion:machine_casing", {
|
||||
description = "ME Machine Casing",
|
||||
inventory_image = "machine_casing.png"
|
||||
})
|
||||
|
||||
|
||||
--ME Machine Casing
|
||||
minetest.register_craftitem("microexpansion:machine_casing", {
|
||||
description = "machine_casing",
|
||||
inventory_image = "machine_casing.png"
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "microexpansion:machine_casing",
|
||||
recipe = {
|
||||
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
|
||||
{"default:steel_ingot", "default:copper_ingot", "default:steel_ingot"},
|
||||
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}
|
||||
}
|
||||
})
|
0
modules/ores/init.lua
Normal file
0
modules/ores/init.lua
Normal file
|
@ -19,4 +19,12 @@ me.register_item("steel_infused_obsidian_ingot", {
|
|||
-- [register item] Machine Casing
|
||||
me.register_item("machine_casing", {
|
||||
description = "Machine Casing",
|
||||
recipe = {
|
||||
"single",
|
||||
{ 1,
|
||||
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
|
||||
{"default:steel_ingot", "default:copper_ingot", "default:steel_ingot"},
|
||||
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user