Skip to content

Robustum/HT-Series

Repository files navigation

HT Materials: Robustum Edition

Requires Fabric API Requires Fabric Language Kotlin

This is a simple Minecraft mod for Fabric+1.16.5 that provides Material System and its usages

Material System

The Material System was invented to handle Items and Tags more generally by decomposing them into HTMaterial and HTShape.

HTMaterial

  • Represents the material of objects: Iron, Gold, Copper, Stone, Wood, ...
  • Retrieved from HTMaterialsAPI.INSTANCE.getMaterialRegistry().get(HTMaterialKey)
    • Call HTMaterial.empty(HTMaterialKey) then returns empty material, which only has empty parameters (Not Null !!)
  • Has several parameters
    • Composition: Provides its components, color, formula, and molar mass
    • Flags: Collection of flags
    • Properties: Be able to hold any objects, like Vanilla's Component
    • Type: Determines a model for material items and default shape of the material

Material Info

HTShape

  • Represents the shape of objects: Ingot, Nugget, Plate, Gear, Rod, ...
  • Retrieved from HTMaterialsAPI.INSTANCE.getShapeRegistry().get(String) or call new HTShape(String)
  • In contrast to HTMaterial, has only one parameter name
  • Provides Identifier or Tag<Item> based on its name and given HTMaterialKey

Material System

Material Contents

  • Material System is used not only grouping existing items/blocks/fluids but also generate them

Items

  • Material Items are non-functional, but useful for recipe ingredients

Material Contents

Blocks

  • There are two default types by default
    • Storage Block
      • Supports 2x2 and 3x3 format
    • Ore
      • No world generation
      • Drops Raw XX Chunk (Fortune and Silk Touch is valid)
        • 1x Metal Raw Chunk are smelt into 1x XX Ingot by Furnace
        • 1x Gem Raw Chunk are polished into 1x XX Gem by Grinding Stone
        • 1x Any Raw Chunk are pulverized into 2x XX Dust by mod compat

Grinding Recipe

Fluids

  • By default, Material Fluids are Virtual
    • Cannot place in world and has no buckets
    • Like Forge Fluid

Item Unification

Material Dictionary

  • Crafted from 1x Iron Ingot and 1x Book
  • Converts input item into others with the same HTMaterial and HTShape

Material Dictionary

Material Library

  • Crafted from 6x #minecraft:planks and 3x Material Dictionary
  • Converts inserted item by right-click or using Hopper/Pipes, then drops the result in front of bookshelf

Material Library

Experimental: Item Picking Conversion

  • Disabled by default; Enabled from config
  • Converts ALL items player picked

How to create Addon

  1. Add new entrypoint ht_materials in fabric.mod.json
  2. Implement HTMaterialsPlugin

Example

Credits

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published