Error Codes
FA-PF-003
Available since 0.1.0
A machine has no recipes and no rules, so it can never do anything.
| Severity | Warning: loaded, but something is probably wrong |
|---|---|
| Category | preflight |
| Message | Machine '{machine}' has neither recipes nor rules, so it can never do anything. |
| Suggestion | Add a recipe targeting '{machine}' or a logic rule. |
| Since | 0.1.0 |
Why this happened
The machine loads fine, but no recipe lists it in machines and it has no rules, so it will sit in the world doing nothing. Most of the time a recipe is missing, or a recipe points at the machine with a slightly different id.
Wrong
A machine with no recipe pointing at it:
machines/iron_smelter.json:1:1 /id [FA-PF-003] Machine 'mypack:iron_smelter' has neither recipes nor rules, so it can never do anything.Fixed
Add a recipe that lists the machine:
{
"schema_version": 1,
"id": "mypack:smelt_iron",
"type": "foundry_apparatus:machine_recipe",
"machines": [
"mypack:iron_smelter"
],
"duration": 100,
"inputs": [
{
"type": "item",
"id": "minecraft:raw_iron",
"amount": 1
}
],
"outputs": [
{
"type": "item",
"id": "minecraft:iron_ingot",
"amount": 1
}
]
}How to fix
Write a recipe for the machine, or check that the machines list of your recipe uses exactly the machine's id. This is a warning: the machine still loads, so you can ignore it while you are still building.