Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computer Mod #68

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions example_mod.js
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
// More info about enabling, testing, and submitting mods: https://R74ncom.github.io/InfiniteChef-Mods/

// Add a basic ingredient using the 'fruit' ingredient as a base
addIngredient("apple",{
color:"#ff1f40", //red
type:"fruit" //will inherit all properties of the 'fruit' ingredient
addIngredient("computer",{
color:"#c2c8d1", //grey
type:"electronics" //will inherit all properties of the 'fruit' ingredient
});

// Add a detailed ingredient with custom Shape and other properties
// All Shape IDs can be found here: https://R74n.com/shapes/
// A list of properties can be found at the top of: https://R74n.com/cook/foodData.js
addIngredient("finished_apple",{ //ID should be lowercase with underscores
color:"#ff1f40", //red
innerColor:"#ffeda4", //beige
type:"apple", ///type can be any other ingredient
shape:"fruit_bipod_stem"
addIngredient("broken_computer",{ //ID should be lowercase with underscores
color:"#c2c8d1", //red
innerColor:"#c2c8d1", //beige
type:"computer", ///type can be any other ingredient
shape:"rectangle_inner_black_rectangle"
});

// Add ingredient with reactions
addIngredient("water",{
type:"liquid",
color:"#bfd8df",
color:"#fce700",
reactions: {
meat: { set1:"broth" },
vegetable: { set1:"broth", tempMin:60 }
}
});

// Change attributes of existing ingredients
editIngredient("apple",{
editIngredient("computer",{
color:"#06b000" //green
});

// Add a simple recipe
addRecipe("batter+sugar","cake");
addRecipe("oil+glass","computer");

// Add a recipe only in Stack Mode
addRecipe("&stack:batter+sugar","pancake");
addRecipe("&stack:metal+oil","computer");

// Add a recipe that can't have any other ingredients
addRecipe("=bread+bread","nothing sandwich");
addRecipe("=computer+computer","double computer");

// Add a recipe with an optional ingredient
addRecipe("cake+sprinkles?+chocolate","chocolate cake");
addRecipe("computer+oil?+ink","printer pc");

// Add a simple tool to interact with ingredients
addTool("red_dyer", {
Expand Down