From 0cdd2cf3e48d414bf474cc4b8520c1d3c0340c00 Mon Sep 17 00:00:00 2001 From: Nubo318 <69615769+Nubo318@users.noreply.github.com> Date: Mon, 17 Jan 2022 09:36:40 -0600 Subject: [PATCH] added ketchup mod --- mods/ketchup_mod.js | 354 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 354 insertions(+) create mode 100644 mods/ketchup_mod.js diff --git a/mods/ketchup_mod.js b/mods/ketchup_mod.js new file mode 100644 index 00000000..6d6ff70a --- /dev/null +++ b/mods/ketchup_mod.js @@ -0,0 +1,354 @@ +// behaviors +behaviors.POISONED_LIQUID = [ + "XX|DL:"+eLists.ANIMAL+"|XX", + "DL:"+eLists.ANIMAL+" AND M2|XX|DL:"+eLists.ANIMAL+" AND M2", + "M1|DL:"+eLists.ANIMAL+" AND M1|M1", +]; +behaviors.POISONED_WALL = [ + "XX|DL:"+eLists.ANIMAL+"|XX", + "DL:"+eLists.ANIMAL+"|XX|DL:"+eLists.ANIMAL+"", + "XX|DL:"+eLists.ANIMAL+"|XX", +]; +behaviors.POISONED_POWDER = [ + "XX|DL:"+eLists.ANIMAL+"|XX", + "DL:"+eLists.ANIMAL+"|XX|DL:"+eLists.ANIMAL+"", + "M2|DL:"+eLists.ANIMAL+" AND M1|M2", +]; +behaviors.POISONED_GAS = [ + "M2|DL:"+eLists.ANIMAL+" AND M1|M2", + "DL:"+eLists.ANIMAL+" AND M1|XX|DL:"+eLists.ANIMAL+" AND M1", + "M2|DL:"+eLists.ANIMAL+" AND M1|M2", +]; + +// changing ketchup +elements.ketchup.tempLow = -3; +elements.ketchup.stateLow = "frozen_ketchup"; +elements.ketchup.tempHigh = 100; +elements.ketchup.stateHigh = "ketchup_gas"; +elements.ketchup.density = 1092; +elements.ketchup.reactions = { + "mayonnaise": { "elem1": null, "elem2": "fry_sauce" }, + "plague": { "elem1": "poisoned_ketchup", "elem2": null}, + }; + +// elements +elements.frozen_ketchup = { + color: "#d44737", + behavior: behaviors.WALL, + temp: 0, + category:"solids", + tempHigh: -3, + stateHigh: "ketchup", + state: "solid", + density: 917, + reactions: { + "plague": { "elem1": "frozen_poisoned_ketchup", "elem2": null}, + }, +}; +elements.poisoned_ketchup = { + color: "#de0030", + behavior: behaviors.POISONED_LIQUID, + tempLow: -3, + stateLow: "frozen_poisoned_ketchup", + tempHigh: 100, + stateHigh: "poisoned_ketchup_gas", + viscosity: 50000, + category:"liquids", + state: "liquid", + density: 1235, +}; +elements.frozen_poisoned_ketchup = { + color: "#d43754", + behavior: behaviors.POISONED_WALL, + temp: 0, + category:"solids", + tempHigh: 3, + stateHigh: "poisoned_ketchup", + state: "solid", + density: 917, +}; +elements.ketchup_spout = { + color: "#944137", + behavior: [ + "XX|CR:poisoned_ketchup%0.001 AND CR:ketchup|XX", + "CR:poisoned_ketchup%0.001 AND CR:ketchup|XX|CR:poisoned_ketchup%0.001 AND CR:ketchup", + "XX|CR:poisoned_ketchup%0.001 AND CR:ketchup|XX", + ], + category:"special", +}; +elements.ketchup_cloud = { + color: "#6e413b", + behavior: [ + "XX|XX|XX", + "M1%5|XX|M1%5", + "XX|CR:ketchup%1|XX", + ], + category:"gases", + temp: 80, + tempLow: 0, + stateLow: "ketchup_snow_cloud", + state: "gas", + density: 1, + reactions: { + "plague": { "elem1": "poisoned_ketchup_cloud", "elem2": null}, + }, + conduct: 0.03, +}; +elements.poisoned_ketchup_cloud = { + color: "#633640", + behavior: [ + "XX|XX|XX", + "M1%5|XX|M1%5", + "XX|CR:poisoned_ketchup%1|XX", + ], + category:"gases", + temp: 80, + tempLow: 0, + stateLow: "poisoned_ketchup_snow_cloud", + state: "gas", + density: 1, + conduct: 0.03, +}; +elements.ketchup_snow = { + color: "#ed7a6d", + behavior: behaviors.POWDER, + temp: 0, + tempHigh: 5, + stateHigh: "ketchup", + category: "land", + state: "solid", + density: "100", + reactions: { + "plague": { "elem1": "poisoned_ketchup_snow", "elem2": null}, + }, +}; +elements.ketchup_snow_cloud = { + color: "#755652", + behavior: [ + "XX|XX|XX", + "M1%5|CH:ketchup_snow%0.05|M1%5", + "XX|XX|XX", + ], + category:"gases", + temp: -10, + tempHigh: 30, + stateHigh: "ketchup_cloud", + state: "gas", + density: 2, + reactions: { + "plague": { "elem1": "poisoned_ketchup_snow_cloud", "elem2": null}, + }, +}; +elements.poisoned_ketchup_snow = { + color: "#d1697f", + behavior: behaviors.POISONED_POWDER, + temp: 0, + tempHigh: 5, + stateHigh: "poisoned_ketchup", + category: "land", + state: "solid", + density: "100", +}; +elements.poisoned_ketchup_snow_cloud = { + color: "#6e4e55", + behavior: [ + "XX|XX|XX", + "M1%5|CH:poisoned_ketchup_snow%0.05|M1%5", + "XX|XX|XX", + ], + category:"gases", + temp: -10, + tempHigh: 30, + stateHigh: "poisoned_ketchup_cloud", + state: "gas", + density: 2, +}; +elements.mayonnaise = { + color: "#F2EEE9", + behavior: behaviors.LIQUID, + viscosity: 50000, + category:"liquids", + state: "liquid", + density: 1000, +}; +elements.mustard = { + color: "#D8AD01", + behavior: behaviors.LIQUID, + viscosity: 50000, + category:"liquids", + state: "liquid", + density: 1052, +}; +elements.ketchup_gas = { + color: "#ffb5ad", + behavior: behaviors.GAS, + density: 0.6, + state: "gas", + tempLow: 100, + stateLow: "ketchup", + category: "gases", + reactions: { + "plague": { "elem1": "poisoned_ketchup_gas", "elem2": null}, + "ketchup_gas": { "elem1": null, "elem2": "ketchup_cloud", "chance":0.3, "y":[0,15] }, + }, +}; +elements.poisoned_ketchup_gas = { + color: "#e096a6", + behavior: behaviors.POISONED_GAS, + density: 0.6, + state: "gas", + tempLow: 100, + stateLow: "poisoned_ketchup", + category: "gases", + reactions: { + "poisoned_ketchup_gas": { "elem1": null, "elem2": "poisoned_ketchup_cloud", "chance":0.3, "y":[0,15] }, + }, +}; +elements.fry_sauce = { + color: "#E8AA7B", + behavior: behaviors.LIQUID, + viscosity: 50000, + category: "liquids", + state: "liquid", + density: 1149, +}; +elements.ketchup_powder = { + color: "#E06320", + behavior: behaviors.POWDER, + density: 1879, + reactions: { + "plague": { "elem1": "poisoned_ketchup_powder", "elem2": null}, + }, + state: "solid", +}; +elements.poisoned_ketchup_powder = { + color: "#e0204a", + behavior: behaviors.POISONED_POWDER, + density: 1879, + state: "solid", +}; +elements.tomato = { + color: "#B11E0C", + behavior: behaviors.STURDYPOWDER, + category: "life", + density: 470, + state: "solid", + reactions: { + "rock": { "elem1": "tomato_sauce", "elem2": "rock" }, + }, + burn: 40, + burnTime: 30, + burnInto: "ash", +}; +elements.tomato_sauce = { + color: "#B72003", + behavior: behaviors.LIQUID, + category: "liquids", + density: 1031, + state: "liquid", + reactions: { + "sugar": { "elem1": "sugary_tomato_sauce", "elem2": null }, + }, + viscosity: 25000, +}; +elements.sugary_tomato_sauce = { + color: "#b53921", + behavior: behaviors.LIQUID, + category: "liquids", + density: 1031, + state: "liquid", + reactions: { + "vinegar": { "elem1": "ketchup", "elem2": null }, + }, + viscosity: 25000, + hidden: true, +}; +elements.cumin = { + color: "#8B7778", + behavior: behaviors.POWDER, + category: "life", + density: 405, + state: "solid", + burn: 40, + burnTime: 40, + burnInto: "ash", +}; +elements.eketchup_spout = { + name: "E-Ketchup Spout", + color: "#c75600", + behavior: behaviors.WALL, + behaviorOn: [ + "XX|CR:poisoned_ketchup%0.001 AND CR:ketchup|XX", + "CR:poisoned_ketchup%0.001 AND CR:ketchup|XX|CR:poisoned_ketchup%0.001 AND CR:ketchup", + "XX|CR:poisoned_ketchup%0.001 AND CR:ketchup|XX", + ], + category: "machines", + conduct: 1, + insulate: true, + colorOn: "#fff200", +}; +elements.ketchup_metal = { + color: "#ff5c5c", + behavior: behaviors.WALL, + category: "solids", + conduct: 0.47, + tempHigh: 1500, + density: 7197, +}; +elements.antiketchup = { + color: "#00CEE6", + behavior: behaviors.AGLIQUID, + viscosity: 50000, + category:"special", + state: "liquid", + density: 1092, +}; + +/* +Changelog +Mod made primarily by Nubo318. Contributors include deviantEquinox and Lily219. +Version 1.2.1 + +Version 1.2.1 (16th of January 2022) ++ Ketchup gases can now form ketchup clouds when high up +~ Moved ketchup clouds to gases category +~ E-Ketchup Spout now has the id eketchup_spout, though remains called E-Ketchup Spout +~ Updated to Sandboxels 0.9 +~ Now used with the in-game mod manager + +Version 1.2.0 (10th of January 2022) ++ Ketchup Gas + a poisoned variant ++ Fry Sauce ++ Combining mayonnaise and ketchup creates fry sauce ++ Ketchup Powder + a poisoned variant ++ Tomatos and Tomato Sauce ++ Smashing tomatos with rocks creates tomato sauce ++ Tomato sauce can be combined with sugar to make sugary tomato sauce, which can then be combined with vinegar to make ketchup ++ Cumin ++ Combining plague with ketchup stuff changes it to its poisoned variant ++ E-Ketchup Spout, a ketchup spout that works only with electricity ++ Ketchup Metal ++ Antiketchup +~ Made the density of ketchup more accurate (hopefully). +~ Updated to Sandboxels 0.8.2 +~ Poisoned stuff doesn't kill diagonally anymore +~ Technical: Element properties don't use quotation marks anymore. + +Version 1.1.0 (6th of January 2022) ++ Ketchup Snow (+poisoned and cloud variants) ++ Mayonnaise ++ Mustard +~ Fixed: Ketchup can now freeze again + +Version 1.0.1 (6th of January 2022) +~ Updated to Sandboxels 0.8.1 +~ Frozen ketchup and frozen poisoned ketchup now starth with a temperature of 0°C + +Version 1.0.0 (technically not the first version, but I'm to lazy to see in which order we added these things) ++ Frozen Ketchup ++ Ketchup Spout - Water spout but ketchup, also has a 0.001% chance of spawning poisoned ketchup because why not. ++ Poisoned Ketchup - Ketchup that kills animals ++ Frozen Poisoned Ketchup ++ Ketchup Cloud - Rain cloud but ketchup ++ Poisoned Ketchup Cloud +*/ \ No newline at end of file