Описание
# Immersive Crafting
Immersive Crafting is a library mod adding support for data-driven in-world crafting.
Crafting recipes are completely data-driven and reside in the `data/${your_datapack}/ic_recipes`
folder. Recipes can also be generated using the fabric-datagen API.
Immersive Crafting provides several built-in recipe types, such as crafting items
when clicking with an item on a block. Everything is designed to be highly customizable.
## Documentation
Up-to-date documentation can be found [here](https://github.com/cschierig/immersive-crafting/blob/dev/1.20.2/docs).
## Example
The following example crafts a nether star from five diamonds when the player right-clicks
on a quartz block with a stack of diamonds at night.
```json
{
"type": "immersive_crafting:use_item_on",
"ingredient": {
"type": "immersive_crafting:item",
"stack": {
"count": 5,
"id": "minecraft:diamond"
}
},
"predicate": {
"conditions": [
{
"type": "immersive_crafting:invert",
"condition": {
"type": "immersive_crafting:day_time",
"end_time": 12999,
"start_time": 0
}
},
{
"type": "immersive_crafting:block",
"block": {
"id": "minecraft:quartz_block"
}
}
]
},
"result": [
{
"type": "immersive_crafting:item",
"stack": {
"count": 1,
"id": "minecraft:nether_star"
}
}
]
}
```
## Usage & Dependencies
- Immersive Crafting for Fabric depends on [Fabric API](https://modrinth.com/mod/fabric-api).
- It is recommended to use JEI to view the recipes.