Fronsi Posted March 4, 2022 Report Share Posted March 4, 2022 Hi, i have a problem with custom barrel recipes for my blocks. This is my recipe for block, and looks ok for me Quote { "code": "paintedplanks", "sealHours": 2, "ingredients": [ { "type": "block", "code": "game:planks-*-hor", "quantity": 1 }, { "type": "item", "code": "game:dye-*", "name": "color", "allowedVariants": ["blue", "red", "yellow", "green", "purple", "orange", "brown", "white"], "litres": 1, "consumeLitres": 1 } ], "output": { "type": "block", "code": "paintedplanks-plain-{color}-hor", "stackSize": 1 } } , but game, throw exception like this: 4.3.2022 13:15:41 [Error] Exception thrown during handling event OnSaveGameLoaded: System.ArgumentNullException: Wartość nie może być zerowa. Nazwa parametru: key w System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) w System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) w Vintagestory.GameContent.BarrelRecipe.GetNameToCodeMapping(IWorldAccessor world) w Vintagestory.ServerMods.RecipeLoader.LoadGenericRecipe[T](String className, AssetLocation path, T recipe, Action`1 RegisterMethod, Int32& quantityRegistered, Int32& quantityIgnored) w Vintagestory.ServerMods.RecipeLoader.LoadRecipes[T](String name, String path, Action`1 RegisterMethod) w Vintagestory.ServerMods.RecipeLoader.OnSaveGameLoaded() w System.Action.Invoke() w Vintagestory.Server.ServerEventManager.TriggerSaveGameLoaded() I have installed only my own mod, others block and recipes works normally, so I no have idea what to do now. Link to comment Share on other sites More sharing options...
l33tmaan Posted March 4, 2022 Report Share Posted March 4, 2022 I can't say I understand the root problem here, but try writing out your dyes like "game:dye-blue" and "paintedplanks-plain-blue-hor". That may or may not fix it. Link to comment Share on other sites More sharing options...
Fronsi Posted March 5, 2022 Author Report Share Posted March 5, 2022 Ok it work, thanks. Link to comment Share on other sites More sharing options...
l33tmaan Posted March 5, 2022 Report Share Posted March 5, 2022 Hopefully someone with more knowledge can explain why we have to write recipes out fully like this... Link to comment Share on other sites More sharing options...
Recommended Posts