Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/Siphalor/push-to-craft

A minecraft mod to enable expanding items/tags in recipes
https://github.com/Siphalor/push-to-craft

minecraft minecraft-fabric minecraft-fabric-mod minecraft-mod

Last synced: about 1 month ago
JSON representation

A minecraft mod to enable expanding items/tags in recipes

Lists

README

        


Logo

# Push To Craft

![supported Minecraft versions: 1.15 | 1.16 | 1.17 | 1.18 | 1.19](https://img.shields.io/badge/support%20for%20MC-1.15%20%7C%201.16%20%7C%201.17%20%7C%201.18%20%7C%201.19-%2356AD56?style=for-the-badge)

[![curseforge downloads](http://cf.way2muchnoise.eu/full_push-to-craft_downloads.svg?badge_style=flat)](https://curseforge.com/minecraft/mc-mods/push-to-craft)
[![modrinth downloads](https://img.shields.io/modrinth/dt/push-to-craft?color=30b27b&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAAAAAAAAQCEeRdzAAAFjElEQVR4nO2aaYhWVRjH3WpcinS0tHIMW0gM7CmXsLQFCnOBFq0PmS2klpZmSraYYFNEC7SZBYqipfWhSAyKVo0RTC1JCwn6kJW0ueWSWuOo%2Ff%2Bc5zLnPe%2B595773vvOfKgXfjBw733Oc855tvOcadPm%2F1%2F8T96b05a0th6pPyjZEZwDrgXTwDNgEXgDLAWvgLlgAhgCeoB2ra10B9AfPADeBz%2BDv8HxBI6CvWAzeBWMAbWtofhQXeFfwLEUpZM4DNaBKeC0llD%2BbPAS2Jmg1BGwD%2FwGtuskd6fsDr%2F5AowFNdVQvD24AXzjGZw78Af4EMxTJWjn5%2BuEzwUCRoDpYDn4XpV2ZR0AC8CZRSrfCTwE%2FvTY87dgDhhAR86wGHXgNvAROORZkDXgwiKU7yImorjbT9N4NO9K4fuTwM1gvS6IPQZ3e2ge4TXgSdDorA5XbbAUGN8h6wzwPPjLmQR3%2BOJKhU51tpc2u7Ba0QJyTwR3ewJEA%2BiTVdjl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efrhfmdMNgyytd2lvLV4XO16ctGK63jMMeyCuzmmoaJoJfHNXW7p1UXugJj7tSVSnmMYUC7KI5hF2NMewexdspvcL09UUX%2BbLKZQc001X3vdGoQRZbaUZuloN37UkDkcnCIBNbqYk1h%2Fdcz14i%2FJmXckt%2FLWoLxVYS2%2FJcax96ky83VFeZ3EayZ2OgaKSYa3gCfABxogfFmd9wO8vSzuismZCHufrF%2BSktsxNTlOipd7LNgOxigc0aQLME6qccnnTKLoa1beTrbMNatnIheIKcNpFts9zu6rm7gjbHixBGn5i%2B6YydAxeZ06SkyGflZK%2F9WAvvGYmATIViGjT%2Bv%2Bq0HILyQq%2Fed%2F%2FwIQ1cNLieDSBgAAAABJRU5ErkJggg%3D%3D&style=flat-square)](https://modrinth.com/mod/push-to-craft)
[![latest maven release](https://img.shields.io/maven-metadata/v?color=0f9fbc&metadataUrl=https%3A%2F%2Fmaven.siphalor.de%2Fde%2Fsiphalor%2Fpushtocraft-1.15%2Fmaven-metadata.xml&style=flat-square)](https://maven.siphalor.de/de/siphalor/pushtocraft-1.15/)

A Minecraft Fabric library mod that allows to make items equivalent to existing items in crafting recipes.
This is useful if existing recipes don't already use tags.

## Usage
This mod adds a new data type called `push to craft`. Put the files into a `push to craft` directory in your datapack or `data` folder of your mod (beneath the `recipes` or `tags` directories).

A valid json file is built like this:
- `additions`: _Array_ - Defines all items or tags that you want to add to the targets
- Entries are item ids as _Strings_. You can use tags by prepending a `#`.
- `targets`: _Array_ or _String_ - Defines which items and tags to target in the recipes
- Entries are item ids or tags as _Strings_.
- `recipes`: _Object_ - Gives conditions for which items to choose
- `types`: _Array_ - __optional__ - Defines which recipe serializers to target
- Entries are recipe serializer ids as _Strings_
- `ids`: _Array_ - __optional__ - Defines which recipes to target
- Entries are _Strings_ that are either of these:
- Exact recipe ids à la `minecraft:anvil`
- Namespace specific regular expression that only mark the last part of the id as regex à la `minecraft:.*`
- A complete regular expression beginning and ending with a forward slash à la `/.*craft:.*/`

## Example
This allows you to use blackstone in favor of cobblestone everywhere:
```json
{
"additions": [
"minecraft:blackstone"
],
"targets": [
"minecraft:cobblestone"
],
"recipes": {}
}
```

This allows you to use emeralds and all kinds of planks as alternatives to diamonds and iron ores in crafting and smelting recipes:
```json
{
"additions": [
"minecraft:emerald",
"#minecraft:planks"
],
"targets": [
"minecraft:diamond",
"minecraft:iron_ore"
],
"recipes": {
"types": [
"crafting_shaped",
"crafting_shapeless",
"blasting"
],
"ids": [
"minecraft:/.*/"
]
}
}
```

## Modders
If you're a modder and like to use this in your projects you can do so using my maven:

```groovy
repositories {
maven {
name "Siphalor's Maven"
url "https://maven.siphalor.de"
}
}

dependencies {
modCompile "de.siphalor:pushtocraft-1.15:1+" // use the latest version from the top of the readme
// Optionally you can include this mod into your jar
include "de.siphalor:pushtocraft-1.15:1+"
}
```