From a77c5166ae80befb9d7e4c37fa92859e61a2aaca Mon Sep 17 00:00:00 2001 From: MasterThomas15 <137926533+MasterThomas15@users.noreply.github.com> Date: Fri, 11 Apr 2025 16:57:36 +0100 Subject: [PATCH] Add cookingnstuff.js This is my mod! --- mods/cookingnstuff.js | 86 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 mods/cookingnstuff.js diff --git a/mods/cookingnstuff.js b/mods/cookingnstuff.js new file mode 100644 index 00000000..e365cae6 --- /dev/null +++ b/mods/cookingnstuff.js @@ -0,0 +1,86 @@ + +behaviors.YOGURT = [ + "XX|XX|XX", + "XX|XX|XX", + "M2%5|M1|M2%5", +]; + +elements.kefir = { + color: "#f0f1fa", + behavior: behaviors.YOGURT, + category: "liquids", + state: "solid", + stateHigh: "yogurt", + tempHigh: 125, + reactions: { + "honey": { elem1: "honey_kefir", elem2: null }, + "caramel": { elem1: "honey_kefir", elem2: null }, + "sugar": { elem1: "honey_kefir", elem2: null }, + } +} + +elements.honey_kefir = { + color: "#ffe7cf", + behavior: behaviors.YOGURT, + category: "states", + state: "solid", + stateHigh: "honey", + tempHigh: 125, +} + +elements.honey_yogurt = { + color: "#fff6e6", + category: "states", + behavior: behaviors.YOGURT, + state: "solid", + stateHigh: "honey", + tempHigh: 125, +} + +elements.beet = { + color: "#ff576d", + category: "food", + behavior: behaviors.POWDER, + state: "solid", + stateHigh: "beet_juice", + tempHigh: 125, + breakInto: "beet_juice", +} + +elements.beet_juice = { + color: "#ff0062", + category: "liquids", + behavior: behaviors.LIQUID, + state: "solid", + stateHigh: "sugar", + tempHigh: 125, +} + +const swaps = { + "meat": "cooked_meat", + "kefir": "honey_kefir", + "bread": "toast", + "yogurt": "honey_yogurt", + "egg": "yolk", + "wheat": "flour", + "frozen_meat": "meat", + "coffee_beans": "coffee_ground", + "coffee_ground": "coffee", + "corn": "popcorn", + "flour": "dough", + "potato": "baked_potato", +}; +elements.prepare = { + color: "#ffe7cf", + tool: function(pixel) { + if (pixel.element in swaps) { + changePixel(pixel, swaps[pixel.element]) + } + }, + category: "tools", +}; + +if (!elements.yogurt.reactions) { // Include this block once + elements.yogurt.reactions = {} // This creates the property if it doesn't exist +} +elements.yogurt.reactions.honey = { "elem1":"honey_yogurt", "elem2":null } \ No newline at end of file