Skip to content

Commit

Permalink
readme+icon
Browse files Browse the repository at this point in the history
  • Loading branch information
JieningYu committed Dec 9, 2022
1 parent cf63bfd commit 7724b6f
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 1 deletion.
79 changes: 78 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,78 @@
# Modid
# Conveniented Forge Tags

This is a simple Minecraft mod for **Fabric/Quilt 1.18.2** that makes [ForgeTags](https://github.com/AlphaMode/ForgeTags) and [Conventional Tags](https://github.com/FabricMC/fabric/tree/1.18.2) sync with each other.

## Why?

If you're playing Create Fabric (or other mods that use [ForgeTags](https://github.com/AlphaMode/ForgeTags)) with other 'big' native Fabric mods, you may find that they are using two different tags systems and they are not compatible with each other so you can't use a mod's item in another mod's recipe. This mod is designed to solve this problem.

## Builtin Merge Rules

```
Ingots
Plates
Dusts
Small Dusts
Tiny Dusts
Nuggets
Rods
Dyes
Seeds
Ores
Storage Blocks
Raw Ores
```

## Example

For example, zinc ingots. In [ForgeTags](https://github.com/AlphaMode/ForgeTags) it's `#c:ingots/zinc` and in conventional tags it's `#c:zinc_ingots`.

### Before

```json5
// #c:zinc_ingots
{
"techreborn:zinc_ingot",
"another_tech_mod:zinc_ingot"
}
```

```json5
// #c:ingots/zinc
{
"create:zinc_ingot",
"alphamode:zinc_ingot"
}
```

### After

```json5
// #c:zinc_ingots
{
"techreborn:zinc_ingot",
"another_tech_mod:zinc_ingot",
"create:zinc_ingot",
"alphamode:zinc_ingot"
}
```

```json5
// #c:ingots/zinc
{
"techreborn:zinc_ingot",
"another_tech_mod:zinc_ingot",
"create:zinc_ingot",
"alphamode:zinc_ingot"
}
```

## Api Usage

### Register a `TagMergeRule`

You can use static method `register` in the `TagMergeRule` class to register your custom `TagMergeRule`.

```java
TagMergeRule.register(new TagMergeRule.Simple("double_ingots"));
```
Binary file modified src/main/resources/assets/cftags/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7724b6f

Please sign in to comment.