Error Codes
FA-SCH-003
Available since 0.1.0
An id is not written as namespace:name in lowercase.
| Severity | Error: the definition is not loaded |
|---|---|
| Category | schema |
| Message | Invalid identifier '{value}': expected 'namespace:path' using lowercase letters, digits, '_', '-', '.' and '/'. |
| Suggestion | Use an identifier such as 'mypack:my_machine'. |
| Since | 0.1.0 |
Why this happened
Ids must look like namespace:name, using only lowercase letters, digits, _, -, . and /. Capital letters and spaces are not allowed, because Minecraft itself does not allow them.
Wrong
An id with capital letters and a space:
"id": "MyPack:Iron Smelter"machines/iron_smelter.json:3:9 /id [FA-SCH-003] Invalid identifier 'MyPack:Iron Smelter': expected 'namespace:path' using lowercase letters, digits, '_', '-', '.' and '/'.Fixed
"id": "mypack:iron_smelter"How to fix
Write the id in lowercase and replace spaces with _. The name players see goes in display_name, which can use any text: "display_name": "Iron Smelter". Remember to update every file that points at the old id. See ids.