Immersive Crafting
Immersive Crafting is a library mod that implements a system for creating items directly in the game world, managed through data. All crafting recipes are fully customizable through datapacks and are located in the data/${your_datapack}/ic_recipes folder. There is also the possibility of automatic recipe generation using the fabric-datagen API.
The mod includes several built-in recipe types, for example, creating items by clicking with a specific item on a block. The entire system is designed with maximum flexibility and customizability to meet user needs.
Documentation
Up-to-date documentation can be found here.
Example
The following example demonstrates the creation of a Nether Star from five diamonds when the player uses a stack of diamonds on a quartz block at night.
{
"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 and Dependencies
- Immersive Crafting for Fabric requires installation of Fabric API.
- For convenient viewing of recipes, it is recommended to use EMI. Support for REI and JEI will be added in future versions.