Noriel_Sylvire's Minerals Core
Minerals Core, aka nsmc, is an API that automatically registers all the crafting recipes, craftitems, ores, nodes, tools... of the minerals you want to add, so that you can type less, and do more in less time!This API even generates colorized textures for your minerals, just give each mineral a color and watch the magic happen!
These are examples of what you can do with this API:
Code: Select all
nsam = {} --stands for [REDACTED]
nsam.modname = "ns_[REDACTED]"
nsam.minerals = {
{ name = "mythril",
color = "#b5f9ff",
mineral_type = "metal",
.
.
.
},
.
.
.
}
nsmc.register_minerals(nsam.modname, nsam.minerals)
Code: Select all
nsmc.register_minerals("iamgroot", {{}}) -- this is the entire init.lua
-- And below is the entire mod.conf
name = iamgroot
title = I am Groot
description = An nsmc test.
author = Noriel_Sylvire
depends = ns_minerals_core
Every value you don't set gets a default value by the API, so you can forget about sounds, textures, where does the ore spawn in, registering nodes, registering tens of different recipes per new mineral...
With Minerals Core you only ever need to worry about those things if you want to.
The API comes with premade grayscale textures, that can then be given a color of your choice, and used as the item and node texture of everything a mineral ever needed to have, so you don't even need to worry about making textures for your cool new minerals, there's a selection of textures in Minerals Core waiting for you!
However, of course, should you want to actually use your own textures, you can!!
Read the API documentation to learn more!
Compatibilities
The API is compatible with:- farming mod; auto-registration of hoes and scythes!
- 3d_armor mod; auto-registration of armors and shields.
- technic mod; auto-reg of furnace, grinder, dusts, and alloys. Possibly automation of new nuclear fuel sources.
- techage mod; smelters and other machines, possible automation of new liquids and chemicals.
- terumet mod; terumet machines recipes.
- Anything you suggest and catches my eye! If there is a mod that adds machines, types of tools or types of equipment, such as bracelets, rings, etcetera, and you want me to add them to this API, just tell me! If many people ask for it I'll probably add it at some point.
How to download and install
- Download the source code from GitHub or ContentDB
- Extract the .zip file into the game's \mods folder. Make sure the modpack's folder is called ns_minerals_core and has no -master or anything else at the end, and that inside the modpack's folder you can see the mod.conf file
- Play the game
If you want to uninstall this modpack, simply delete the modpack's folder.