// 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}, "infection": { "elem1": "poisoned_ketchup", "elem2": null}, "radiation": { "elem1": "poisoned_ketchup", chance:025}, "fallout": { "elem1": "poisoned_ketchup", chance:025}, "gloomwind": { "elem1": "poisoned_ketchup", "elem2": null}, }; // making ketchup dirty elements.dirt.reactions = { "ketchup": { "elem1": null, "elem2": "dirty_ketchup", "oneway":true}, }; elements.ash.reactions = { "ketchup": { "elem1": null, "elem2": "dirty_ketchup", "oneway":true}, "steam": { "elem1": "pyrocumulus", "chance":0.08, "y":[0,15] }, "rain_cloud": { "elem1": "pyrocumulus", "chance":0.08, "y":[0,15] }, "snow_cloud": { "elem1": "pyrocumulus", "chance":0.08, "y":[0,15] }, "acid_cloud": { "elem1": "pyrocumulus", "chance":0.05, "y":[0,15] }, "pyrocumulus": { "elem1": "pyrocumulus", "chance":0.08, "y":[0,15] }, }; elements.dust.reactions = { "ketchup": { "elem1": null, "elem2": "dirty_ketchup", "oneway":true}, }; // making it so ketchup clouds can react with smoke to make pyrocumulus elements.smoke.reactions = { "steam": { "elem1": "pyrocumulus", "chance":0.08, "y":[0,15] }, "rain_cloud": { "elem1": "pyrocumulus", "chance":0.08, "y":[0,15] }, "snow_cloud": { "elem1": "pyrocumulus", "chance":0.08, "y":[0,15] }, "acid_cloud": { "elem1": "pyrocumulus", "chance":0.05, "y":[0,15] }, "fire_cloud": { "elem1": "pyrocumulus", "chance":0.05, "y":[0,15] }, "pyrocumulus": { "elem1": "pyrocumulus", "chance":0.08, "y":[0,15] }, "ketchup_cloud": { "elem1": "pyrocumulus", "chance":0.08, "y":[0.15] }, "poisoned_ketchup_cloud": { "elem1": "pyrocumulus", "chance":0.08, "y":[0.15] }, }; // 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}, "infection": { "elem1": "frozen_poisoned_ketchup", "elem2": null}, "radiation": { "elem1": "frozen_poisoned_ketchup", chance:025}, "fallout": { "elem1": "frozen_poisoned_ketchup", chance:025}, "gloomwind": { "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: 1140, }; 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}, "infection": { "elem1": "poisoned_ketchup_cloud"}, "radiation": { "elem1": "poisoned_ketchup_cloud", chance:025}, "fallout": { "elem1": "poisoned_ketchup_cloud", chance:025}, "gloomwind": { "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}, "infection": { "elem1": "poisoned_ketchup_snow", "elem2": null}, "radiation": { "elem1": "poisoned_ketchup_snow", chance:025}, "fallout": { "elem1": "poisoned_ketchup_snow", chance:025}, "gloomwind": { "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}, "infection": { "elem1": "poisoned_ketchup_snow_cloud"}, "radiation": { "elem1": "poisoned_ketchup_snow_cloud", chance:025}, "fallout": { "elem1": "poisoned_ketchup_snow_cloud", chance:025}, "gloomwind": { "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] }, "infection": { "elem1": "poisoned_ketchup_gas"}, "radiation": { "elem1": "poisoned_ketchup_gas", chance:025}, "fallout": { "elem1": "poisoned_ketchup_gas", chance:025}, "gloomwind": { "elem1": "poisoned_ketchup_gas", "elem2": null}, }, }; 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}, "infection": { "elem1": "poisoned_ketchup_powder", "elem2": null}, "radiation": { "elem1": "poisoned_ketchup_powder", chance:025}, "fallout": { "elem1": "poisoned_ketchup_powder", chance:025}, "gloomwind": { "elem1": "poisoned_ketchup_powder", "elem2": null}, }, state: "solid", category: "powders", }; elements.poisoned_ketchup_powder = { color: "#e0204a", behavior: behaviors.POISONED_POWDER, density: 1879, state: "solid", category: "powders", }; elements.tomato = { color: "#B11E0C", behavior: behaviors.STURDYPOWDER, category: "food", density: 470, state: "solid", tempHigh: 400, stateHigh: "ash", 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: "food", density: 405, state: "solid", tempHigh: 400, stateHigh: "ash", 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, }; elements.dirty_ketchup = { color: "#851a0d", behavior: behaviors.LIQUID, viscosity: 50000, category: "liquids", state: "liquid", tempHigh: 100, stateHigh: ["ketchup_gas", "carbon_dioxide"], tempLow: 0, stateLow: "frozen_ketchup", density: 1140, hidden: true, }; elements.ketchup_gold = { color: ["#eb8a8a", "#bf3939", "#ff6161"], behavior: behaviors.WALL, category: "solids", conduct: 0.64, tempHigh: 1025, density: 10598, } // alloys elements.molten_ketchup_metal = { reactions: { "molten_gold": { "elem1": null, "elem2": "molten_ketchup_gold" }, } } // f&m only things runAfterLoad(function() { if (enabledMods.includes("mods/fey_and_more.js")) { // making ketchup fairies die to iron and silver eLists.FAIRY.push("ketchup_fairy"); elements.iron.behavior = [ "XX|DL:"+eLists.FAIRY+"|XX", "DL:"+eLists.FAIRY+"|XX|DL:"+eLists.FAIRY+"", "XX|DL:"+eLists.FAIRY+"|XX" ]; elements.silver.behavior = [ "XX|DL:"+eLists.FAIRY+"|XX", "DL:"+eLists.FAIRY+"|XX|DL:"+eLists.FAIRY+"", "XX|DL:"+eLists.FAIRY+"|XX" ]; // ketchup fairy reaction elements.fairy.reactions = { "fire": { "elem1": "fire_fairy"}, "magma": { "elem1": "fire_fairy"}, "snow": { "elem1": "ice_fairy"}, "ice": { "elem1": "ice_fairy"}, "petal": { "elem1": "nature_fairy"}, "dirt": { "elem1": "earth_fairy"}, "mud": { "elem1": "earth_fairy"}, "raincloud": { "elem1": "rain_fairy"}, "electric": { "elem1": "thunder_fairy"}, "little_star": { "elem1": "stellar_fairy"}, "moonrock": { "elem1": "lunar_fairy"}, "liquid_light": { "elem1": "light_fairy"}, "mushroom_cap": { "elem1": "mushroom_fairy"}, "magic": { "elem1": "magic_fairy"}, "ketchup": { "elem1": "ketchup_fairy"}, }; // f&m only elements elements.ketchup_fairy = { color: ["#d4b0b0", "#e8c5c5", "#e89595"], state: "solid", behavior: [ "XX|M1|M1", "XX|FX%5|XX", "XX|CR:ketchup%0.1 AND CR:fairy_dust%0.005 AND M1|M1", ], category: "fey", }; }; }); /* Changelog Mod made primarily by Nubo318. Contributors include deviantEquinox and Lily129. Version 1.3.1 Version 1.3.1 (20th of January 2022) ~ Ketchup fairies are now killed by iron and silver Version 1.3.0 (20th of January 2022) + Ketchup Gold, an alloy between ketchup metal and gold + Dirty Ketchup + Ketchup clouds can now react with smoke to form pyrocumulus + Infection now poisons ketchup stuff + Tomatoes and cumin now turn into ash at high temperatures + Radiation can poison ketchup stuff + Ketchup Fairies (Needs Fey & More) + Gloomwind can poison ketchup stuff (Needs Fey & More) ~ Changed the density of poisoned ketchup ~ Moved the ketchup powders to the "Powders" category and tomatoes and cumin to the "Food" category 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 */