Custom Log Stripping (FABRIC)

Custom Log Stripping (FABRIC)

523 Downloads

Custre - Custom Stripping Recipes


Information

API mod for allowing users to define custom axe stripping recipes. Mod works by replacing Minecraft inbuilt static code with dynamic data driven approach, which allows users to enable/disable minecraft stripping recipes and to create custom stripping recipes. There is just one rule - the input and output block must extend PillarBlock.

Usage

Mod

This mod can be downloaded on CurseForge, dropped in mods folder of minecraft directory and loaded by fabric mod loader.

API

Mod is published on custom maven repository. You can fetch it and include it in your mod in following way:

repositories {
    maven {
        url = "https://prod-cebbys-repomanager.herokuapp.com"
    }
}

Only versions above 2.0.0 are available

dependencies {
    // Example include with version template
    include "lv.cebbys.mcmods:custre:${version}"
    
    // Example include of version 2.0.0
    include "lv.cebbys.mcmods:custre:2.0.0"
}

Datapack

Custom stripping recipes can be created in following way:
In the following datapack directory data/${namespace}/recipes/custre/ adding the following {recipe_name}.json files

{
  "ingredient": "${namespace}:${block_extends_pillar}",
  "result": "${namespace}:${block_extends_pillar}"
}

Example:

{
  "ingredient": "minecraft:oak_log",
  "result": "minecraft:stripped_oak_log"
}