Modular Machinery

Modular Machinery

12M Downloads

Too many options for variable?

wizard1399 opened this issue ยท 7 comments

commented

I tried to make a primitive kiln machine that takes furnace fuel. When I added variables to the machine definition, the machine broke and no longer shows up in game. Machine, variable, and recipes to follow. Did I do something wrong in how I defined the machine?

primitive_kiln.json
kiln.var.json
Primitive_Kiln.zs

commented

What do the startup logs contain?

commented

Here are the relevant parts

latest log

commented

Two errors I see in that log:
Ore-cobblestone isn't a registered block, and so can't be used to define the structure.
And variant 10 on cobblestone1 isn't allowed, apparently.

commented

Ore-cobblestone is the name of the variable, not a specific block. Not sure about the 10 thing.

commented

[21:57:49] [Client thread/WARN] [modularmachinery]: Encountered 1 problems while loading machinery!
[21:57:49] [Client thread/WARN] [modularmachinery]: Couldn't load machinery /Users/matthewharter/Library/Application Support/minecraft/modpacks/Wizard's Gambit 1.12.2/config/modularmachinery/machinery/primitive_kiln.json
[21:57:49] [Client thread/INFO] [STDERR]: [hellfirepvp.modularmachinery.common.machine.MachineRegistry:loadMachines:97]: com.google.gson.JsonParseException: Couldn't find block with registryName 'minecraft:ore_cobblestone' !

commented

This was suppose to use the variable option that was introduced in the past updates. Json format seems correct based on the example shipped with the mod. What I can not seem to figure out is why the mod is not referencing the variable file.

commented

https://jsonformatter.curiousconcept.com/

Dump the contents of kiln.var.json into a json validator.