sandboxels/mods/barista.js

210 lines
5.7 KiB
JavaScript
Raw Normal View History

2025-05-04 07:12:14 -04:00
/*
Barista Mods by Salmonfishyy (eu)
Add many ingredients for drinks
Changelog - Foundation Level (v0.1)
- Matcha Elements
2025-05-10 02:09:00 -04:00
Changelog - Foundation Level (v0.2)
- Oolong tea
- cinnamon tea
2025-05-04 07:12:14 -04:00
*/
2025-05-10 02:09:00 -04:00
elements.tencha = {
behavior: behaviors.POWDER,
category: "food",
state: "solid",
color: ["#25360c","#324a0c"],
density: 500,
breakInto: "matcha_powder",
isFood: true,
desc: "Tea leaves, can break into matcha, look pretty sussy.",
reactions: {
"water": { elem2:"tea", tempMin:80 }
}
};
2025-05-04 07:12:14 -04:00
elements.matcha_powder = {
behavior: behaviors.POWDER,
category: "food",
state: "solid",
color: ["#74A662","#74A12E"],
density: 400,
tempHigh: 80,
stateHigh: "burn_matcha",
isFood: true,
desc: "Fine green powder from tea leaves. Vibrant color, earthy taste, and packed with antioxidants. Used in drinks, desserts, and rituals. Basically, classy leaf dust. Watch out for heat and oxygen!",
reactions: {
"oxygen": { elem2: "broke_matcha", chance: 0.5 },
"dirty_water": { elem2: "null", chance: 0.5 },
"pool_water": { elem2: "null", chance: 0.5 },
"water": { elem2: "matcha_tea", chance: 0.5 },
"seltzer": { elem2: "matcha_soda", chance: 0.5 },
"salt_water": { elem2: "salty_matcha", chance: 0.5 },
"sugar_water": { elem2: "sweet_matcha", chance: 0.5 }
}
};
elements.broke_matcha = {
behavior: behaviors.POWDER,
category: "food",
state: "solid",
color: ["#556B2F","#8B4513"],
density: 400,
desc: "Broke matcha—once a proud green powder, now a sad, terrible mess. Faded, bitter, and questioning its life choices. Now useless."
};
elements.matcha_tea = {
behavior: behaviors.LIQUID,
category: "food",
state: "liquid",
color: ["#5F8A3D"],
density: 1000,
isFood: true,
desc: "Thick green drink, kinda earthy, kinda bitter. Looks like a magic potion, feels like a forest hug. Smooth, strong, and definitely plotting something...",
reactions: {
"milk": { elem2: "matcha_latte", chance: 0.5 },
"cream": { elem2: "matcha_latte", chance: 0.5 },
"salt": { elem2: "salty_matcha", chance: 0.5 },
"sugar": { elem2: "sweet_matcha", chance: 0.5 },
"carbon_dioxide": { elem2: "matcha_soda", chance: 0.5 }
}
};
elements.matcha_latte = {
behavior: behaviors.LIQUID,
category: "food",
state: "liquid",
color: ["#DDEEAF"],
density: 1000,
isFood: true,
desc: "Green tea and milk mixed together. Smooth, slightly sweet, and a bit earthy. Looks fancy, tastes cozy.",
reactions: {
"milk": { elem2:null, chance: 0.5 },
"cream": { elem2:null, chance: 0.5 }
}
};
elements.salty_matcha = {
behavior: behaviors.LIQUID,
category: "food",
state: "liquid",
color: ["#A2B57D"],
density: 1000,
isFood: true,
desc: "Green tea but slightly salty. Confusing, kinda wrong, yet somehow still drinkable. Like matcha decided to rebel.",
reactions: {
"salt": { elem2:null, chance: 0.5 }
}
};
elements.matcha_soda = {
behavior: behaviors.LIQUID,
behavior: [
"XX|CR:foam%3|XX",
"M2|XX|M2",
"M2|M1|M2",
],
tick: function(pixel) {
if (Math.random() < 0.05 && isEmpty(pixel.x,pixel.y-1)) {
let foam = releaseElement(pixel, "foam");
if (foam) foam.color = pixelColorPick(foam,"#7EBF5C");
}
},
onMix: function(pixel) {
releaseElement(pixel, "foam", shiftDown)
},
category: "food",
state: "liquid",
color: ["#7EBF5C"],
density: 1000,
isFood: true,
desc: "Carbonated green tea. Slightly bitter, extra fizzy. Tastes fresh, feels weird...",
reactions: {
"carbon_dioxide": { elem2:null, chance: 0.5 }
}
};
elements.oolong_leaves = {
behavior: behaviors.POWDER,
category: "food",
state: "solid",
color: ["#CDB361","#8F6B3A"],
density: 200,
isFood: true,
tempHigh: 120,
stateHigh: "roasted_oolong",
2025-05-10 02:09:00 -04:00
desc: "Dark, twisty tea leaves that look kinda serious. Smell fancy, taste like tea that went through a phase. Smooth, strong, and slightly dramatic.",
reactions: {
"water": { elem2:"oolong_tea", tempMin:80 },
}
2025-05-04 07:12:14 -04:00
};
elements.roasted_oolong = {
behavior: behaviors.POWDER,
category: "food",
state: "solid",
color: ["#8F6B3A","#654321"],
density: 220,
isFood: true,
2025-05-10 02:09:00 -04:00
desc: "Roasted oolong—deeper flavor, slightly smoky, and probably wiser now.",
reactions: {
"water": { elem2:"oolong_tea", tempMin:80 },
}
};
elements.cinnamon = {
behavior: behaviors.SUPPORTPOWDER,
category: "food",
state: "solid",
color: ["#6a462f","#4a3120"],
density: 500,
breakInto: "cinnamon_powder",
isFood: true,
desc: "Cinnamon, a thingy things with spicy flavour.",
reactions: {
"water": { elem2:"cinnamon_tea", tempMin:80, color2:"#6c3213" },
}
};
elements.cinnamon_powder = {
behavior: behaviors.SUPPORTPOWDER,
category: "food",
state: "solid",
color: ["#986544"],
density: 589,
isFood: true,
desc: "Cinnamon powder, from cinnamon, a thingy things powder with spicy flavour.",
reactions: {
"water": { elem2:"cinnamon_tea", chance: 0.5, color2:"#6c3213" },
}
};
elements.cinnamon_tea = {
behavior: behaviors.LIQUID,
category: "food",
state: "solid",
color: ["#723900"],
density: 1000,
isFood: true,
desc: "Cozy tea with spicy taste.",
reactions: {
"cinnamon_powder": { elem2:"null", chance: 0.5 },
}
};
elements.oolong_tea = {
behavior: behaviors.LIQUID,
category: "food",
state: "solid",
color: ["#ADA07B"],
density: 1000,
isFood: true,
desc: "it's just tea, make from oolong.",
reactions: {
"sugar": { elem2:"null", chance: 0.5 },
}
};