Trading Station
Specialized device for automatic item exchange, primarily designed for use in modpacks. It's important to note that this mod doesn't add its own crafting recipes - its functionality is fully customizable by pack creators.
Main Features
The mod offers several trading station variants:
- Basic version that doesn't require energy
- Enhanced model powered by RF energy
- Indestructible modifications of each station
- Mechanical version for Create integration (requires additional mod)
All station operation parameters are configurable: processing speed, energy consumption, and other characteristics.
Creating Trading Recipes
Trade operations are configured through JSON format with type "trading_station:trading". Each recipe includes:
result- obtained item (supports components)ingredients- required resourcesprocessingTime- processing time in ticksrequirements- additional conditions
Configuration Examples
Simple exchange:
{
"type": "trading_station:trading",
"result": {
"id": "minecraft:diamond",
"count": 5
},
"ingredients": [
{
"ingredient": {
"item": "minecraft:emerald"
},
"count": 5
}
]
}
Exchange with multiple ingredients:
{
"type": "trading_station:trading",
"result": {
"id": "minecraft:gold_block",
"count": 5
},
"ingredients": [
{
"ingredient": {
"item": "minecraft:oak_log"
},
"count": 5
},
{
"ingredient": {
"item": "minecraft:birch_log"
},
"count": 10
}
],
"processingTime": 250
}
Creating enchanted book:
{
"type": "trading_station:trading",
"result": {
"id": "minecraft:enchanted_book",
"count": 1,
"components": {
"minecraft:stored_enchantments": {
"levels": {
"minecraft:density": 3
}
}
}
},
"ingredients": [
{
"ingredient": {
"item": "minecraft:diamond"
},
"count": 5
}
],
"processingTime": 100
}
Station type requirements:
{
"type": "trading_station:trading",
"result": {
"id": "minecraft:emerald_block",
"count": 1
},
"ingredients": [
{
"ingredient": {
"item": "minecraft:diamond"
},
"count": 5
}
],
"processingTime": 100,
"requirements": [
{
"value": [
"powered",
"mechanical"
],
"type": "trading_station:machine_id"
}
]
}
KubeJS Integration
For creating recipes through KubeJS, the following methods are available:
Setting processing time:
event.recipes.trading_station.trading(Item.of('minecraft:gold_block', 5),[Item.of("5x minecraft:oak_log"),Item.of("10x minecraft:birch_log")]).processingTime(250);
Creating enchanted book:
event.recipes.trading_station.trading(Item.of('minecraft:enchanted_book[stored_enchantments={levels:{"minecraft:unbreaking":3}}]', 1),[Item.of("minecraft:diamond", 5)]).processingTime(100);
Specifying machine requirements:
event.recipes.trading_station.trading(Item.of('minecraft:emerald_block'),[Item.of("5x minecraft:diamond")]).processingTime(100).requirements(MachineId.of(["powered","mechanical"]));
Machine identifier:
MachineId.of(["powered","mechanical"])
Requirements
For versions 1.21.1 and above, Mechanicals Lib mod is required.