← Назад к ресурсам

HT Materials

A simple Minecraft mod for Fabric/Quilt that provides Material System and Tag Sync

Modrinth library optimization utility

Описание

# HT Materials ![Requires Fabric API](https://i.imgur.com/Ol1Tcf8.png) ![Requires Fabric Language Kotlin](https://i.imgur.com/c1DH9VL.png) This is a simple Minecraft mod for **Fabric+1.16.5** that provides _**Material System**_ and _**Part Tag Format**_ ## Material System The Material System was invented to handle Tags more generally by decomposing them into `HTMaterial` and `HTShape`. `HTMaterial` represents the material of objects: _Iron_, _Gold_, _Copper_, _Stone_, _Wood_, ... `HTShape` represents the shape of objects: _Ingot_, _Nugget_, _Plate_, _Gear_, _Rod_, ... ![Material System](https://raw.githubusercontent.com/Robustum/HT-Materials/main/image/material_system.png) ## Part Tag Many Fabric mods follows `Conventional Tag` format such as `c:copper_ingots`. This mod **automatically** replaces these tags into _Part Tag Format_ by _Material System_. For example, `c:copper_ingots` will be converted into `part:ingot/copper`. You don't need to replace existing tags in json files or internal codes! ![Part Tag](https://raw.githubusercontent.com/Robustum/HT-Materials/main/image/part_tag.png) ## Fluid Unification HT Materials can sync not only tags but also fluids! After the flattening, fluid became vanilla feature and has been managed with Identifier: namespace and path. This destructive change divided fluid with same name and different namespace. Based on the Material System, there fluids are linked to Conventional Tags. ![Fluid Unification](https://raw.githubusercontent.com/Robustum/HT-Materials/main/image/fluid_unification.png) ## How to create Addon 1. Add new entrypoint `ht_materials` in `fabric.mod.json` 2. Implement [io.github.hiiragi283.api.HTMaterialsAddon](https://github.com/Robustum/HT-Materials/blob/main/src/api/kotlin/io/github/hiiragi283/api/HTMaterialsAddon.kt) ### Example - [fabric.mod.json](https://github.com/Robustum/HT-Materials/blob/main/src/main/resources/fabric.mod.json) - [HTTestAddon](https://github.com/Robustum/HT-Materials/blob/main/src/main/java/io/github/hiiragi283/material/HTTestAddon.java) ## API - Accessible HT-Materials' API via [HTMaterialsAPI.INSTANCE](https://github.com/Robustum/HT-Materials/blob/main/src/api/kotlin/io/github/hiiragi283/api/HTMaterialsAPI.kt)