sandboxels/mods/devsnacks.js

207 lines
5.5 KiB
JavaScript
Raw Permalink Normal View History

2025-06-26 13:06:18 -04:00
/*
herbs
heat into steamed herb
smash into tea powder
tea powder + hot water = colored tea
*/
2025-12-07 19:46:57 -05:00
dependOn("mustard.js", ()=>{}, true);
2025-06-26 13:06:18 -04:00
elements.herb.tempHigh = 100;
elements.herb.stateHigh = ["steamed_herb","steamed_herb","steam",null];
if (!elements.herb.reactions) {
elements.herb.reactions = {};
}
elements.herb.reactions.steam = { elem1:"steamed_herb" }
elements.steamed_herb = {
color: ["#5a790c","#698f1f","#849d33","#b3c74d"],
reactions: {
"water": { elem2:"tea", tempMin:80 },
"salt_water": { elem2:"tea", tempMin:80 },
"sugar_water": { elem2:"tea", tempMin:80 },
"seltzer": { elem2:"tea", tempMin:80 },
"stench": { elem2:null, chance:0.25 },
"steam": { elem2:"fragrance", chance:0.1 },
"flea": { elem2:null, chance:0.01 },
"termite": { elem2:null, chance:0.01 },
"fly": { elem2:null, chance:0.01 },
"ant": { elem2:null, chance:0.01 },
"stink_bug": { elem2:null, chance:0.01 }
},
behavior: behaviors.POWDER,
tempHigh: 300,
stateHigh: ["fire","smoke","smoke","smoke","ash"],
tempLow: -2,
stateLow: "frozen_plant",
burn:10,
burnTime:300,
burnInto: ["fire","smoke","smoke","smoke","smoke","smoke","smoke","fragrance"],
category:"food",
state: "solid",
density: 1300,
isFood: true,
hidden: true,
breakInto: ["tea_powder",null]
};
elements.tea_powder = {
color: ["#C4CD3F","#B7C134","#97A328"],
grain: 2,
reactions: {
"water": { elem2:"tea", tempMin:80, elem1:null },
"salt_water": { elem2:"tea", tempMin:80, elem1:null },
"sugar_water": { elem2:"tea", tempMin:80, elem1:null },
"seltzer": { elem2:"tea", tempMin:80, elem1:null },
"tea": { tempMin:80, elem1:null, chance:0.01 },
"stench": { elem2:null, chance:0.25 },
"steam": { elem2:"fragrance", chance:0.1 },
"flea": { elem2:null, chance:0.01 },
"termite": { elem2:null, chance:0.01 },
"fly": { elem2:null, chance:0.01 },
"ant": { elem2:null, chance:0.01 },
"stink_bug": { elem2:null, chance:0.01 }
},
behavior: behaviors.POWDER,
tempHigh: 300,
stateHigh: ["fire","smoke","smoke","smoke","ash"],
burn:10,
burnTime:300,
burnInto: ["fire","smoke","smoke","smoke","smoke","smoke","smoke","fragrance"],
category:"food",
state: "solid",
density: 1200,
isFood: true,
hidden: true
}
2025-10-06 19:20:06 -04:00
elements.water.reactions.tea_powder = { elem1:"tea", chance:0.0002 }
elements.pumpkin.breakInto = ["pumpkin_seed","pumpkin_mash","pumpkin_mash","pumpkin_mash",null];
elements.pumpkin_mash = {
color: ["#DF7E06","#eba100"],
behavior: behaviors.STURDYPOWDER,
tempHigh: 125,
stateHigh: ["pumpkin_spice","pumpkin_spice",null],
category: "food",
2025-10-06 19:36:04 -04:00
state: "liquid",
2025-10-06 19:20:06 -04:00
density: 490.3,
isFood: true,
hidden: true,
}
elements.pumpkin_seed.tempHigh = 125;
elements.pumpkin_seed.stateHigh = ["pumpkin_spice","pumpkin_spice",null];
elements.pumpkin_spice = {
color: "#8d4f03",
grain: 1.5,
behavior: behaviors.POWDER,
tempHigh: 400,
stateHigh: ["smoke","smoke","smoke","smoke","ash"],
category: "food",
state: "solid",
density: 490.3,
isFood: true,
hidden: true,
}
elements.coffee.reactions.pumpkin_spice = { elem2:null, color1:"#6A2F03", chance:0.005 };
2025-10-06 19:36:04 -04:00
elements.coffee.reactions.pumpkin_mash = { elem2:null, color1:"#6A2F03", chance:0.005 };
elements.apple = {
color: ["#b22424","#f5c517","#66b447"],
grain: 2,
behavior: behaviors.POWDER,
// singleColor: true,
category: "food",
state: "solid",
density: 750,
isFood: true,
breakInto: "juice",
tempHigh: 175,
stateHigh: ["applesauce",null]
}
elements.applesauce = {
color: "#E7C45A",
behavior: behaviors.LIQUID,
viscosity: 50000,
tempHigh: 400,
stateHigh: "smoke",
category: "food",
state: "liquid",
density: 750,
isFood: true,
hidden: true,
2025-10-11 13:00:18 -04:00
}
if (!elements.mayo.reactions) elements.mayo.reactions = {};
elements.mayo.reactions.ketchup = { elem1:"mayochup", elem2:"mayochup" }
elements.mayochup = {
color: "#FDCC94",
behavior: behaviors.LIQUID,
reactions: {
"rust": { elem2:"iron", chance:0.005 },
"oxidized_copper": { elem2:"copper", chance:0.005 },
"baking_soda": { "elem1":"carbon_dioxide", elem2:"foam", chance:0.005, attr2:{"foam":3} },
"glue": { elem2:null, chance:0.005 },
"oil": { elem2:null, chance:0.005 },
"sap": { elem2:null, chance:0.005 }
},
viscosity: 26745.5,
tempHigh: 180.3,
stateHigh: ["carbon_dioxide","methane","steam","salt","sugar","steam","carbon_dioxide","methane"],
category:"liquids",
state: "liquid",
density: 1072.5,
isFood: true,
hidden: true
Version 1.13 - December 17, 2025 - Gizmos & Gadgets + Filter + Only allows the first element it touches to pass + Gate + Only allows pixels to pass if electrified + Only conducts electricity into itself and Wire + Canvas background images + Some presets and custom image URLs + Outline View (Press 5) + 2-wide and 4-wide brushes + Ruler tool in Special to measure lengths and angles + Manual element control + Shift-clicking certain element buttons prompt the user for more information + Erase tool allows only deleting certain elements + Cloners allow multiple comma-separated elements + Filters allow states (solid, liquid, or gas) or multiple elements + Sensors allow sensing specific elements + Portals allow the setting of channels + Void allows only deleting certain elements + Random tool allows pre-selected element choices + Explosion allows custom radius + Antibombs allow pre-selected explosion elements ~ Replaced LED Red, Green, and Blue with a single customizable LED ~ LEDs in old saves are automatically converted to the new element - Merged Superheaters and Freezers with Heaters and Coolers + Heaters can be heated to heat the same as a Superheater + Coolers can be cooled to cool the same as a Freezer - Removed Tesla Coil and Shocker ~ These elements in old saves are automatically converted to E-cloners ~ Drag tool is faster and smoother ~ Pixelated and colorful button borders + Translations for Swedish + Parital translations for Japanese, Thai, Arabic, Hebrew, and Viossa [Changes] + Pipes can transport pixels directly with Filter and Gate ~ Pipes no longer conduct heat ~ Brightened blue stage in Pipes ~ Incomplete pipes darken after being initialized + Oxygen can be used to dispose Molten Lead in reactors + Electrolysis of raw Salt + Smashing hot Cooked Meat releases Grease + Worms can compost Lettuce, Tomato, Corn, Pickle, and Bread + Rats can eat Spiders + Caramel and Herb make peppermint-colored sugar + Baking Soda can be made with Lye and Carbon Dioxide + Melting Ash with Dirt creates Tuff ~ Poison Gas no longer makes Slag from molten elements ~ Perfume can exist at room temperature ~ Acid doesn't dissolve Mercury or Diamond ~ Sulfur ignites when hot ~ All Cloud types can be smashed like Rain Cloud ~ Thermite burns into less Iron ~ Rock Wall deletes Light when placed over it for better eclipses - Removed Gallium-Sodium reaction ~ Copper Sulfate reacts with more carbs ~ Rainbow recipe uses Pointer instead of Flash ~ Bless deletes Strange Matter instead of turning it into Neutron + Static recipe + Malware can mix with some metals to create machine parts + Tea stains Paper + Unique fire color for Tin ~ Element buttons are consistently spaced on all sides ~ Recolored Pyrite ~ Acid has a smoother texture ~ Purple Gold is slightly more purple ~ Hyphae and Lichen are grainier ~ Recolored Random button ~ Recolored Balloon button ~ Recolored Confetti button ~ Recolored Hair button ~ Recolored Pistil button ~ Reordered colors in many buttons for consistent "lighting" look ~ Rice, Candy, Nut Oil, Dye, Rainbow, and Spray Paint buttons display with dark text + Firefly alias 'Lightning Bug' ~ Shortened hiding setting labels ~ Language should automatically be set from browser preferences (Untested) ~ Re-saving after saving automatically fills in name, author, and description ~ Save browser thumbnails are crisper ~ Steam Deck compliance [Technical] + 'onShiftSelect' element property, called when selecting element while holding Shift + 'onlyConduct' element property, list of the only elements to conduct electricity into + 'renderTool' element property, renderer function called once per frame while selected + 'updateOrder' element property, prioritizes (positive) or deprioritizes (negative) tick order (integer; default 0) + autoResizeRatio(height,width) function (e.g. (16,9)) ~ 'shiftDown' variable is set even when in a menu [Bug Fixes] ~ Fixed: Placing Humans with Replace Mode causes a gory mess ~ Fixed: Using Human on Cloners cause a gory mess ~ Fixed: Bottom pixels can be cut off on certain window sizes ~ Fixed: Line-drawing preview is opaque when using a theme ~ Fixed: Text in Debug popup can't be selected ~ Fixed: onClicked passes "unknown" when no element is selected, now passes null ~ Fixed: onMouseDown doesn't get called on mobile ~ Fixed: onMouseDown is called when clicking out of a menu ~ Fixed: Using Heat Ray on Stained Glass can make Rainbows ~ Fixed: Saves with pipes containing invalid elements fail to load ~ Fixed: Some Fireflies stay illuminated after hitting another ~ Fixed: Liquid/gaseous pixels with 'skip' property can be displaced by denser pixels ~ Fixed: Salt isn't considered a food and can't be eaten by Humans ~ Fixed: Corn can't be dragged or put into Pipes
2025-12-17 12:08:39 -05:00
};
elements.spice = {
color: ["#DD4F40","#A14130"],
grain: 2,
behavior: behaviors.POWDER,
reactions: {
"water": { elem1:null, elem2:"spicy_water", chance:0.2 },
"salt_water": { elem1:null, elem2:"spicy_water", chance:0.2 },
"sugar_water": { elem1:null, elem2:"spicy_water", chance:0.2 },
},
tempHigh: 350,
stateHigh: "smoke",
category:"food",
state: "solid",
density: 2160,
isFood: true
};
elements.spicy_water = {
color: "#eeac9e",
behavior: behaviors.LIQUID,
tempHigh: 100,
stateHigh: ["steam","spice"],
category:"food",
state: "liquid",
density: 997,
isFood: true
};
elements.broth.reactions.spice = { color1:"#ef713f", tempMin:70, chance:0.05 };
elements.broth.reactions.spicy_water = { color1:"#ef713f", tempMin:70, chance:0.05 };
2026-01-30 21:13:36 -05:00
elements.meat.reactions.spicy_water = { elem2:"broth", color2:"#ef713f", tempMin:70 };
elements.nut_spread = {
color: "#7B4528",
behavior: behaviors.LIQUID,
viscosity: 200000,
tempHigh: 232,
stateHigh: ["smoke","smoke","smoke","smoke","salt"],
category: "food",
state: "liquid",
density: 1090.5,
isFood: true,
hidden: true
}
elements.nut_meat.reactions.chocolate_powder = { elem1:"nut_spread", elem2:"nut_spread" }