Skip to content
Prostochell-544Public

About

Core industrial mod API for the Horizon engine in Rust. Provides 64-bit Ferrite Energy (FE), fluid/gas properties, sided inventories, cable networks, and data-driven machine recipes

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ferrite

An industrial API for Horizon mods, the Rust Minecraft 26.3, written for NTM-Oxidized and open to any mod.

The engine's mod API (horizon-mod-api, lib mod_api) already owns items, fluids, energy, capabilities and transactions. Ferrite re-exports them and adds only what industrial mods need beyond them:

Crate Adds
ferrite-api registration tables, per-side IO (SideConfig), simulate (a transaction that always aborts)
ferrite-items slot roles, sided slots over the engine's ITEMS handlers, ejecting to neighbours
ferrite-energy FE in 64 bits (FE, ITEM_FE), bridged to the engine's ENERGY; voltage tiers; the cable network
ferrite-fluids fluid properties (temperature, gas, corrosion, radiation), containment, type-locked tanks
ferrite-recipes machine recipes as JSON or TOML: several item and fluid inputs, outputs with chances

The root crate ferrite is the mod: it re-exports the five as ferrite::{api, items, energy, fluids, recipes}.

Using it

In your mod's horizon-mod.toml:

[dependencies]
ferrite = "^0.1"

The launcher gives your crate a path to Ferrite under the alias ferrite. A machine answers Ferrite's energy and the engine's in one call:

ferrite::energy::provide_block_energy(r, &press, |host, at| Some(Box::new(PressEnergy(at))));

Building

Pinned to Horizon 514ecf9a966cdf2bc4f81f091827d81767756fd9 (horizon-mod.toml, [native]). The launcher supplies horizon-mod-api; generate the registry lock once with horizon-launcher native-lock ., then horizon-launcher native-build . --instance <instance> --trust-native-code.

About

Core industrial mod API for the Horizon engine in Rust. Provides 64-bit Ferrite Energy (FE), fluid/gas properties, sided inventories, cable networks, and data-driven machine recipes

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages