Skip to content

Commit

Permalink
Added recipes for crafters
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenHamelink committed Aug 9, 2019
1 parent 4d93e8c commit c90713e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions EtherealBlocks/Loaders/BlockLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ public static void AfterItemTypesDefined()
InventoryItem originalBlockRequirements = new InventoryItem(block.EtherealBlockIndex, 1);

Recipe originalToEtherealRecipe = new Recipe(block.EtherealBlockName, etherealBlockRequirements,
new RecipeResult(block.EtherealBlockIndex, 1));
new RecipeResult(block.EtherealBlockIndex, 1), 0, 0, -100);
Recipe etherealToOriginalRecipe = new Recipe(block.OriginalBlockName, originalBlockRequirements,
new RecipeResult(block.OriginalBlockIndex, 1));
new RecipeResult(block.OriginalBlockIndex, 1), 0, 0, -100);

ServerManager.RecipeStorage.AddPlayerRecipe(originalToEtherealRecipe);
ServerManager.RecipeStorage.AddPlayerRecipe(etherealToOriginalRecipe);

ServerManager.RecipeStorage.AddLimitTypeRecipe("pipliz.crafter", originalToEtherealRecipe);
}
}

Expand Down

0 comments on commit c90713e

Please # to comment.