This commit is contained in:
JustAGenericUsername 2024-01-24 12:51:22 -05:00
commit 62ecd7a8b0
10 changed files with 5524 additions and 1128 deletions

17
lang/en_gb.json Normal file
View File

@ -0,0 +1,17 @@
{
"#lang.name": "English (British)",
"#lang.credit": "R74n",
"seltzer": "soda_water",
"oxidized_copper": "oxidised_copper",
"anesthesia": "anaesthesia",
"gray_goo": "grey_goo",
"aluminum": "aluminium",
"molten_aluminum": "molten_aluminium",
"fiber": "fibre",
"color_smoke": "colour_smoke",
"sulfur": "sulphur",
"molten_sulfur": "molten_sulphur",
"sulfur_gas": "sulphur_gas",
"color_sand": "colour_sand",
"powders": "test"
}

114
mods/FoodFoodFood.js Normal file
View File

@ -0,0 +1,114 @@
/*
Food Food Food! Adds more food to Sandboxels.
Created by sugima.
Sandboxels Plus v1
Changelog - 1/25/24 - v1
- Made the mod :|
- Added Blueberries
- Added Lemons
- Added Rice
- Added Fried Rice
- Added Waffle
- Added Waffle Cone
- Added Chocolate Ice Cream
- Added Soup
- Added Coca Cola
- Added Flavor Formula
*/
elements.blueberry = {
behavior: behaviors.POWDER,
category: "food",
state: "solid",
color: ["#464196","#2E2B64"],
breakInto: "juice",
breakIntoColor: "#1F1C42",
reactions: {},
};
elements.lemon = {
behavior: behaviors.POWDER,
category: "food",
state: "solid",
color: ["#f0e79d","#e3d24a"],
breakInto: "juice",
breakIntoColor: "#f1e9a6",
reactions: {},
};
elements.rice = {
behavior: behaviors.POWDER,
category: "food",
state: "solid",
color: "#ffffff",
tempHigh: 65,
stateHigh: "friedrice",
reactions: {},
};
elements.fried_rice = {
behavior: behaviors.POWDER,
category: "food",
state: "solid",
color: ["#ff9c5e","#cf6c30"],
reactions: {},
};
elements.waffle = {
behavior: behaviors.WALL,
category: "food",
state: "solid",
color: ["#e3a976","#b3855d"],
reactions: {},
};
elements.waffle = {
behavior: behaviors.POWDER,
category: "food",
state: "solid",
color: ["#e3a976","#b3855d"],
tempHigh: 100,
stateHigh: "wafflecone",
reactions: {},
};
elements.waffle_cone = {
behavior: behaviors.WALL,
category: "food",
state: "solid",
color: ["#cc8e58","#b58051"],
reactions: {},
};
elements.chocolate_ice_cream = {
behavior: behaviors.POWDER,
category: "food",
state: "solid",
color: "#4d2f1c",
reactions: {},
};
elements.soup = {
behavior: behaviors.LIQUID,
category: "food",
state: "liquid",
color: "#c48818",
reactions: {},
};
elements.coca_cola = {
behavior: behaviors.LIQUID,
category: "liquids",
state: "liquid",
color: "#241711",
reactions: {},
};
elements.flavor_formula = {
behavior: behaviors.POWDER,
category: "liquids",
state: "solid",
color: ["#ff0000","#ff6400", "#ffff00", "#04ff00", "#00fff7", "#0400ff", "#b700ff", "#ff0099"],
reactions: {},
};
if (!elements.flour.reactions) { elements.flour.reactions = {} }
if (!elements.sugar.reactions) { elements.sugar.reactions = {} }
elements.flour.reactions.sugar = { "elem1":"waffle", "elem2": "waffle"};
if (!elements.ice_cream.reactions) { elements.ice_cream.reactions = {} }
elements.ice_cream.reactions.chocolate = { "elem1":"chocolateicecream", "elem2": "chocolateicecream"};
if (!elements.sugar_water.reactions) { elements.sugar_water.reactions = {} }
elements.sugar_water.reactions.flavor_formula = { "elem1":"coca_cola", "elem2": "coca_cola"};

View File

@ -75,8 +75,58 @@ Changelog (v1.1)
- made by smashing sugar
- added icing
- made by shift-mixing icing sugar
- noodles description
- noodles description
- bug fix (freezing crushed worms makes them alive)
Changelog (v1.2)
- added boilers
- added steamers
- added smokers
- added oranges and related stuff
- oranges
- orange wood
- orange branches
- orange leaves
- orange juice
- made by smashing orange
- orange seeds
- orange slices
- made by cutting oranges
- orange peels
- byproduct of cutting oranges into orange slices
- marmalade
- made by putting sugar in orange peels and orange slices
- apple and orange juice now turn into juice ice under 0 degrees
- apple juice now boils into sugar and steam
- apple juice now boils at 100 instead of 400
- added coral and coral stems
- added tuna
- added cooked and raw tuna
- added smoked tuna
- made by putting raw tuna with smoke
- added boiled tuna
- made by putting raw tuna in hot water
- added fried tuna
- made by putting raw tuna in hot cooking oil
- added steamed tuna
- made by putting raw tuna with steam
- added salmon
- added cooked and raw salmon
- added smoked salmon
- made by putting raw salmon with smoke
- added boiled salmon
- made by putting raw salmon in hot water
- added fried salmon
- made by putting raw salmon in hot cooking oil
- added steamed salmon
- made by putting raw salmon with steam
- added grape juice
- added cream of tartar
- added wine
- added corn syrup
*/
/*
@ -797,8 +847,8 @@ elements.apple_juice = {
color: "#ffde55",
behavior: behaviors.LIQUID,
category: "liquids",
tempHigh: 400,
stateHigh: "fire",
tempHigh: 100,
stateHigh: ["steam","sugar"],
burn: 70,
burnTime: 300,
burnInto: ["steam", "smoke"],
@ -809,6 +859,21 @@ elements.apple_juice = {
reactions: {
"sugar": { elem1:"apple_jam", elem2:null, chance:0.35 }
},
tempLow: 0
};
elements.apple_jam = {
color: "#ebc034",
behavior: behaviors.LIQUID,
category: "food",
tempHigh: 400,
stateHigh: ["sugar","smoke"],
burn: 70,
burnTime: 300,
viscosity: 750,
state: "liquid",
density: 825,
hidden: true
};
elements.cake = {
@ -867,8 +932,251 @@ elements.cream.reactions.baked_batter = {elem2: "cake" }
elements.sugar.breakInto = {elem1: "icing_sugar"}
elements.apple_jam = {
color: "#ebc034",
elements.boiler = {
color: "#73fff8",
behavior: behaviors.WALL,
tick: function(pixel) {
for (var i = 0; i < squareCoords.length; i++) {
var coord = squareCoords[i];
var x = pixel.x+coord[0];
var y = pixel.y+coord[1];
if (!isEmpty(x,y, true)) {
if(pixelMap[x][y].temp < -230) {
pixelMap[x][y].temp = (pixelMap[x][y].temp + 7)
} else if(pixelMap[x][y].temp > 270) {
pixelMap[x][y].temp = (pixelMap[x][y].temp - 7)
} else if (pixelMap[x][y].temp < 95) {
pixelMap[x][y].temp = (pixelMap[x][y].temp + 2)
} else if (pixelMap[x][y].temp > 95) {
pixelMap[x][y].temp = (pixelMap[x][y].temp - 2)
}
}
}
},
category:"machines",
state:"solid",
insulate: true,
noMix: true,
movable: false,
temp: 110
};
elements.steamer = {
color: "#45daff",
behavior: [
"CR:steam%90|CR:steam%90|CR:steam%90",
"XX|XX|XX",
"XX|XX|XX",
],
category:"machines",
state:"solid",
insulate: true,
noMix: true,
movable: false,
temp: 110
};
elements.smoker = {
color: "#bfa797",
behavior: [
"CR:smoke%90|CR:smoke%90|CR:smoke%90",
"XX|XX|XX",
"XX|XX|XX",
],
category:"machines",
state:"solid",
insulate: true,
noMix: true,
movable: false,
temp: 110
};
elements.orange_wood = {
color: "#a88c4a",
behavior: behaviors.WALL,
tempHigh: 400,
stateHigh: ["ember","charcoal","fire","fire","fire"],
category: "solids",
burn: 5,
burnTime: 300,
burnInto: ["ember","charcoal","fire"],
state: "solid",
hardness: 0.15,
breakInto: "sawdust",
breakIntoColor: ["#dba66e","#cc8a64"],
hidden: true
}
elements.orange_branch = {
color: "#a88c4a",
behavior: [
"CR:orange_leaves,orange_branch%2|CR:orange_leaves,orange_branch%2|CR:orange_leaves,orange_branch%2",
"XX|XX|XX",
"XX|XX|XX",
],
tempHigh: 100,
stateHigh: "orange_wood",
tempLow: -30,
stateLow: "orange_wood",
category: "life",
burn: 40,
burnTime: 50,
burnInto: ["sap","ember","charcoal"],
hidden: true,
state: "solid",
density: 1500,
hardness: 0.15,
breakInto: ["sap","sawdust"],
}
elements.orange_leaves = {
color: ["#61c43d","#5ddb3d","#51d44c"],
behavior: [
"XX|XX|XX",
"XX|XX|XX",
"XX|CR:orange%0.1|XX",
],
reactions: {
"vinegar": { elem1:"dead_plant", elem2:null, chance:0.035 },
"baking_soda": { elem1:"dead_plant", elem2:null, chance:0.01 },
"bleach": { elem1:"dead_plant", elem2:null, chance:0.05 },
"alcohol": { elem1:"dead_plant", elem2:null, chance:0.035 }
},
category:"life",
tempHigh: 100,
stateHigh: "dead_plant",
tempLow: -1.66,
stateLow: "frozen_plant",
burn:65,
burnTime:60,
burnInto: "dead_plant",
breakInto: "dead_plant",
state: "solid",
density: 1050,
hidden: true
}
elements.orange = {
color: ["#eda137","#e39230","#d1882e"],
behavior: behaviors.POWDER,
reactions: {
"vinegar": { elem1:"dead_plant", elem2:null, chance:0.035 },
"baking_soda": { elem1:"dead_plant", elem2:null, chance:0.01 },
"bleach": { elem1:"dead_plant", elem2:null, chance:0.05 },
"alcohol": { elem1:"dead_plant", elem2:null, chance:0.035 }
},
category:"food",
tempHigh: 100,
stateHigh: "dead_plant",
tempLow: -1.66,
stateLow: "frozen_plant",
burn:65,
burnTime:60,
burnInto: "dead_plant",
breakInto: "orange_juice",
cutInto: ["orange_slice","orange_slice","orange_slice","orange_slice","orange_peels"],
state: "solid",
density: 1050,
}
elements.orange_slice = {
color: "#f5b133",
behavior: behaviors.STURDYPOWDER,
category:"food",
tempHigh: 100,
stateHigh: ["sugar","steam"],
burn:65,
burnTime:60,
burnInto: "dead_plant",
breakInto: "apple_juice",
state: "solid",
density: 1050,
hidden: true,
reactions: {
"sugar": { elem1:"marmalade", elem2:null, chance:0.35 }
},
}
elements.orange_seed = {
color: "#695531",
tick: function(pixel) {
if (isEmpty(pixel.x,pixel.y+1)) {
movePixel(pixel,pixel.x,pixel.y+1);
}
else {
if (Math.random() < 0.02 && pixel.age > 50 && pixel.temp < 100) {
if (!outOfBounds(pixel.x,pixel.y+1)) {
var dirtPixel = pixelMap[pixel.x][pixel.y+1];
if (dirtPixel.element === "dirt" || dirtPixel.element === "mud" || dirtPixel.element === "sand" || dirtPixel.element === "wet_sand" || dirtPixel.element === "clay_soil" || dirtPixel.element === "mycelium") {
changePixel(dirtPixel,"root");
}
}
if (isEmpty(pixel.x,pixel.y-1)) {
movePixel(pixel,pixel.x,pixel.y-1);
createPixel(Math.random() > 0.5 ? "orange_wood" : "orange_branch",pixel.x,pixel.y+1);
}
}
else if (pixel.age > 1000) {
changePixel(pixel,"orange_wood");
}
pixel.age++;
}
doDefaults(pixel);
},
properties: {
"age":0
},
tempHigh: 100,
stateHigh: "dead_plant",
tempLow: -2,
stateLow: "frozen_plant",
burn: 65,
burnTime: 15,
category: "life",
state: "solid",
density: 1500,
cooldown: defaultCooldown,
seed: true,
behavior: [
"XX|XX|XX",
"XX|FX%10|XX",
"XX|M1|XX",
],
};
elements.orange_juice = {
color: "#ffb326",
behavior: behaviors.LIQUID,
category: "liquids",
tempHigh: 100,
stateHigh: ["steam","sugar"],
burn: 70,
burnTime: 300,
burnInto: ["steam", "smoke"],
state: "liquid",
density: 825,
hidden: true,
temp: 30,
tempLow: 0
};
elements.orange_peels = {
color: "#d69c31",
behavior: behaviors.POWDER,
category:"food",
tempHigh: 100,
stateHigh: ["sugar","steam"],
burn:65,
burnTime:60,
burnInto: "dead_plant",
breakInto: "orange_juice",
state: "solid",
density: 1050,
hidden: true,
reactions: {
"sugar": { elem1:"marmalade", elem2:null, chance:0.35 }
},
}
elements.marmalade = {
color: "#fc9a38",
behavior: behaviors.LIQUID,
category: "food",
tempHigh: 400,
@ -880,3 +1188,518 @@ elements.apple_jam = {
density: 825,
hidden: true
};
elements.tuna = {
color: ["#3D74BA", "#4A6FB1", "#4A6FB1"],
behavior: [
"XX|M2%5|SW:water,salt_water,sugar_water,dirty_water,seltzer,pool_water,primordial_soup%14",
"XX|FX%0.5|BO",
"M2|M1|M2 AND SW:water,salt_water,sugar_water,dirty_water,seltzer,pool_water,primordial_soup%5",
],
category: "life",
state: "solid",
cutInto: "raw_tuna",
reactions: {
"algae": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"plant": { elem2:null, chance:0.125, func:behaviors.FEEDPIXEL },
"fly": { elem2:null, chance:0.4, func:behaviors.FEEDPIXEL },
"firefly": { elem2:null, chance:0.6, func:behaviors.FEEDPIXEL },
"worm": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"tadpole": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"oxygen": { elem2:"carbon_dioxide", chance:0.5 },
"dead_bug": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"broth": { elem2:"water", chance:0.2, func:behaviors.FEEDPIXEL },
"slug": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"herb": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"lettuce": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"dead_plant": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"lichen": { elem2:null, chance:0.1, func:behaviors.FEEDPIXEL },
"yeast": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"yogurt": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"tea": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"meat": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"rotten_meat": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"cooked_meat": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"yolk": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"cell": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"crumb": { elem2:null, chance:0.1, func:behaviors.FEEDPIXEL },
},
}
elements.salmon = {
color: ["#C0C3CF", "#B7BAC3", "#ADB0B8"],
behavior: [
"XX|M2%5|SW:water,salt_water,sugar_water,dirty_water,seltzer,pool_water,primordial_soup%14",
"XX|FX%0.5|BO",
"M2|M1|M2 AND SW:water,salt_water,sugar_water,dirty_water,seltzer,pool_water,primordial_soup%5",
],
category: "life",
state: "solid",
reactions: {
"algae": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"plant": { elem2:null, chance:0.125, func:behaviors.FEEDPIXEL },
"fly": { elem2:null, chance:0.4, func:behaviors.FEEDPIXEL },
"firefly": { elem2:null, chance:0.6, func:behaviors.FEEDPIXEL },
"worm": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"tadpole": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"oxygen": { elem2:"carbon_dioxide", chance:0.5 },
"dead_bug": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"broth": { elem2:"water", chance:0.2, func:behaviors.FEEDPIXEL },
"slug": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"herb": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"lettuce": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"dead_plant": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"lichen": { elem2:null, chance:0.1, func:behaviors.FEEDPIXEL },
"yeast": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"yogurt": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"tea": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"meat": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"rotten_meat": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"cooked_meat": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"yolk": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"cell": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"crumb": { elem2:null, chance:0.1, func:behaviors.FEEDPIXEL },
},
cutInto: "raw_salmon"
}
elements.coral_stem = {
color: "#4a5e49",
behavior: [
"CR:coral_stem,coral%2|CR:coral,coral_stem,coral,coral%2|CR:coral_stem,coral%2",
"XX|XX|XX",
"XX|XX|XX",
],
tick: function(pixel) {
if (!pixel.fColor) {
pixel.fColor = "hsl(" + Math.floor(Math.random()*360) + ",100%,50%)";
}
var coordsToCheck = [
[pixel.x-1,pixel.y],
[pixel.x+1,pixel.y],
[pixel.x,pixel.y-1],
[pixel.x,pixel.y+1],
]
for (var i = 0; i < coordsToCheck.length; i++) {
var coord = coordsToCheck[i];
if (isEmpty(coord[0],coord[1])) {
createPixel("coral",coord[0],coord[1]);
pixelMap[coord[0]][coord[1]].color = pixel.fColor;
}
}
doDefaults(pixel)
},
tempHigh: 100,
stateHigh: "dead_coral",
tempLow: -30,
stateLow: "dead_coral",
category: "life",
burn: 40,
burnTime: 50,
burnInto: [,"ember","charcoal"],
hidden: true,
state: "solid",
density: 1500,
hardness: 0.15,
hidden: true,
}
elements.coral = {
color: ["#ff0000","#ff8800","#ffff00","#88ff00","#00ff00","#00ff88","#00ffff","#0088ff","#0000ff","#8800ff","#ff00ff"],
behavior: [
"XX|XX|XX",
"XX|XX|XX",
"XX|XX|XX",
],
reactions: {
"vinegar": { elem1:"dead_plant", elem2:null, chance:0.035 },
"baking_soda": { elem1:"dead_plant", elem2:null, chance:0.01 },
"bleach": { elem1:"dead_plant", elem2:null, chance:0.05 },
"alcohol": { elem1:"dead_plant", elem2:null, chance:0.035}
},
category:"life",
tempHigh: 100,
stateHigh: "dead_plant",
tempLow: -1.66,
stateLow: "frozen_plant",
burn:65,
burnTime:60,
burnInto: "dead_plant",
breakInto: "dead_plant",
state: "solid",
density: 1050,
hidden: true,
properties:{
"colored": false
}
}
elements.raw_salmon = {
color: ["#FD7E19", "#FE842F", "#FD8F45"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
burnInto: "cook_salmon",
temp:25,
tempHigh: 600,
stateHigh: ["ash", "smoke"],
isFood: true,
reactions: {
"smoke": {elem1: "smoked_salmon"},
"steam": {elem1: "steamed_salmon"},
"water": {elem1: "boiled_salmon", tempMin: 70},
"cooking_oil": {elem1: "fried_salmon", tempMin: 70}
}
}
elements.cooked_salmon = {
color: ["#CB6132", "#D05D18", "#CC5926"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp:25,
tempHigh: 600,
stateHigh: ["ash", "smoke"],
isFood: true,
}
elements.smoked_salmon = {
color: ["#B64431", "#B24932"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp:55,
tempHigh: 600,
stageHigh: ["ash", "smoke"],
isFood: true,
}
elements.steaned_salmon = {
color: ["#BB7B4B", "#B07B54"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp:60,
tempHigh: 600,
stageHigh: ["ash", "smoke"],
isFood: true,
}
elements.boiled_salmon = {
color: ["#F9B080", "#FFB78D"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp:70,
tempHigh: 600,
stageHigh: ["ash", "smoke"],
isFood: true,
}
elements.fried_salmon = {
color: ["#E06643", "#ED774B"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp:70,
tempHigh: 600,
stageHigh: ["ash", "smoke"],
isFood: true,
}
elements.raw_tuna = {
color: ["#EF4A5C", "#F74F65", "#E83A53"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp:25,
burnInto: "cooked_tuna",
tempHigh: 600,
stateHigh: ["ash", "smoke"],
isFood: true,
reactions: {
"smoke": {elem1: "smoked_tuna"},
"steam": {elem1: "steamed_tuna"},
"water": {elem1: "boiled_tuna", tempMin: 70},
"cooking_oil": {elem1: "fried_tuna", tempMin: 70}
}
}
elements.cooked_tuna = {
color: ["#B76C71", "#C2787C", "#A86265"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp:50,
tempHigh: 600,
stateHigh: ["ash", "smoke"],
isFood: true,
}
elements.smoked_tuna = {
color: ["#9D5C24", "#A4632A"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp:55,
tempHigh: 600,
stageHigh: ["ash", "smoke"],
isFood: true,
}
elements.steamed_tuna = {
color: ["#CFA578", "#D4AC82"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp:60,
tempHigh: 600,
stageHigh: ["ash", "smoke"],
isFood: true,
}
elements.boiled_tuna = {
color: ["#C79F65", "#D9B075"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp:70,
tempHigh: 600,
stageHigh: ["ash", "smoke"],
isFood: true,
}
elements.fried_tuna = {
color: ["#BF8251", "#9F6031"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp:70,
tempHigh: 600,
stageHigh: ["ash", "smoke"],
isFood: true,
}
elements.watermelon_seed = {
color: "#2b2118",
tick: function(pixel) {
if (Math.random() < 0.1 && pixel.age > 50 && pixel.temp < 100) {
if (!outOfBounds(pixel.x,pixel.y+1)) {
var dirtPixel = pixelMap[pixel.x][pixel.y+1];
if (dirtPixel.element === "dirt" || dirtPixel.element === "mud" || dirtPixel.element === "sand" || dirtPixel.element === "wet_sand" || dirtPixel.element === "clay_soil" || dirtPixel.element === "mycelium") {
changePixel(dirtPixel,"root");
}
}
if (isEmpty(pixel.x+1,pixel.y) && Math.random() > 0.7) {
movePixel(pixel,pixel.x+1,pixel.y);
createPixel(Math.random() > 0.5 ? "watermelon_stem" : "watermelon_stem",pixel.x-1,pixel.y);
}
if (isEmpty(pixel.x-1,pixel.y) && Math.random() > 0.7) {
movePixel(pixel,pixel.x-1,pixel.y);
createPixel(Math.random() > 0.5 ? "watermelon_stem" : "watermelon_stem",pixel.x+1,pixel.y);
}
if (!isEmpty(pixel.x+1,pixel.y) && !isEmpty(pixel.x-1,pixel.y) &&isEmpty(pixel.x+1,pixel.y-1) && Math.random() > 0.7) {
movePixel(pixel,pixel.x+1,pixel.y-1);
createPixel(Math.random() > 0.5 ? "watermelon_stem" : "watermelon_stem",pixel.x-1,pixel.y+1);
}
if (!isEmpty(pixel.x-1,pixel.y) && !isEmpty(pixel.x+1,pixel.y) &&isEmpty(pixel.x-1,pixel.y-1) && Math.random() > 0.7) {
movePixel(pixel,pixel.x-1,pixel.y-1);
createPixel(Math.random() > 0.5 ? "watermelon_stem" : "watermelon_stem",pixel.x+1,pixel.y+1);
}
}
else if (pixel.age > 1000) {
changePixel(pixel,"watermelon_stem");
}
pixel.age++;
doDefaults(pixel);
},
properties: {
"age":0
},
tempHigh: 100,
stateHigh: "dead_plant",
tempLow: -2,
stateLow: "frozen_plant",
burn: 65,
burnTime: 15,
category: "life",
state: "solid",
density: 1500,
cooldown: defaultCooldown,
seed: true,
behavior: [
"XX|XX|XX",
"XX|FX%20|XX",
"XX|M1|XX",
],
};
elements.watermelon_stem = {
color: "#6ec938",
behavior: [
"ST:watermelon_stem|ST:watermelon_stem AND CR:watermelon%0.1|ST:watermelon_stem",
"ST:watermelon_stem|XX|ST:watermelon_stem",
"XX|XX|XX",
],
reactions: {
"vinegar": { elem1:"dead_plant", elem2:null, chance:0.035 },
"baking_soda": { elem1:"dead_plant", elem2:null, chance:0.01 },
"bleach": { elem1:"dead_plant", elem2:null, chance:0.05 },
"alcohol": { elem1:"dead_plant", elem2:null, chance:0.035 },
"mercury": { elem1:"dead_plant", elem2:null, chance:0.01 },
"stench": { elem2:null, chance:0.25 },
},
category:"life",
tempHigh: 100,
stateHigh: "dead_plant",
tempLow: -1.66,
stateLow: "frozen_plant",
burn:15,
burnTime:60,
burnInto: "dead_plant",
breakInto: "dead_plant",
state: "solid",
density: 1050
};
elements.watermelon = {
color: ["#28b02d","#36bf3a"],
behavior: behaviors.STURDYPOWDER,
reactions: {
"vinegar": { elem1:"dead_plant", elem2:null, chance:0.035 },
"baking_soda": { elem1:"dead_plant", elem2:null, chance:0.01 },
"bleach": { elem1:"dead_plant", elem2:null, chance:0.05 },
"alcohol": { elem1:"dead_plant", elem2:null, chance:0.035 }
},
category:"food",
tempHigh: 100,
stateHigh: "dead_plant",
tempLow: -1.66,
stateLow: "frozen_plant",
burn:65,
burnTime:60,
burnInto: "dead_plant",
breakInto: "watermelon_juice",
cutInto: "watermelon_flesh",
state: "solid",
density: 1050,
}
elements.watermelon_flesh = {
color: "#f53527",
behavior: behaviors.STURDYPOWDER,
category:"food",
tempHigh: 100,
stateHigh: ["sugar","steam"],
burn:65,
burnTime:60,
burnInto: "dead_plant",
breakInto: "watermelon_juice",
state: "solid",
density: 1050,
hidden: true,
}
elements.watermelon_juice = {
color: "#eb4034",
behavior: behaviors.LIQUID,
category: "liquids",
tempHigh: 100,
stateHigh: ["steam","sugar"],
burn: 70,
burnTime: 300,
burnInto: ["steam", "smoke"],
state: "liquid",
density: 825,
hidden: true,
temp: 30,
tempLow: 0
};
elements.grape = {
color: ["#b84b65","#a10e69","#a10e95","#8a3eab"],
behavior: [
"XX|ST:vine|XX",
"ST:vine|XX|ST:vine",
"M2|M1|M2",
],
reactions: {
"radiation": { elem1:"explosion", chance:0.1, color1:"#291824" },
"rock": { elem1:"juice", chance:0.1, color1:"#291824" },
"concrete": { elem1:"juice", chance:0.1, color1:"#291824" },
"basalt": { elem1:"juice", chance:0.1, color1:"#291824" },
"limestone": { elem1:"juice", chance:0.1, color1:"#291824" },
"tuff": { elem1:"juice", chance:0.1, color1:"#291824" },
"water": { elem2:"juice", chance:0.005, color2:"#291824" },
"sugar_water": { elem2:"juice", chance:0.025, color2:"#291824" },
"acid": { elem1:"juice", color1:"#291824" },
"acid_gas": { elem1:"juice", color1:"#291824" },
},
innerColor: "#cc7492",
tempHigh: 256,
stateHigh: ["steam","sugar"],
category: "food",
state: "solid",
density: 1154,
breakInto: "grape_juice",
ignoreAir: true,
isFood: true
},
elements.grape_juice = {
color: "#6d2282",
behavior: behaviors.LIQUID,
reactions: {
"dirt": { elem1: null, elem2: "mud" },
"sand": { elem1: null, elem2: "wet_sand" },
"clay_soil": { elem1: null, elem2: "clay" },
"seltzer": { elem1: "soda", elem2: "foam" },
"carbon_dioxide": { elem1: "soda", elem2: "foam" },
"yeast": { elem1: ["wine","wine","wine","wine","wine","wine","wine","wine","wine","wine","wine","wine","wine","wine","wine","wine","wine","wine","wine","cream_of_tartar"], elem2: null, chance:80 },
},
tempHigh: 160,
stateHigh: ["steam","sugar"],
tempLow: -10,
stateLowColorMultiplier: 1.1,
category: "liquids",
state: "liquid",
density: 1054,
stain: 0.05,
isFood: true
};
elements.cream_of_tartar = {
color: ["#EFEFEF", "#EBEBEB", "#D8D8D6"],
behavior: behaviors.POWDER,
category: "food",
state: "solid",
tempHigh: 200,
stateHigh: "caramel",
density: 1500,
isFood: true,
reaction: {
"sugar_water": {elem2: "corn_syrup", elem1: null, tempMin: 110}
}
}
elements.wine = {
color: ["#6F0013", "#6D0112"],
behavior: behaviors.LIQUID,
category: "liquids",
state: "liquid",
tempHigh: 100,
stateHigh: "steam",
isFood: true,
density: 1200,
}
elements.corn_syrup = {
color: ["#FFCD0C", "#E47F00", "#FEB003"],
behavior: behaviors.LIQUID,
category: "food",
state: "liquid",
tempHigh: 100,
stateHigh: "caramel",
isFood: true,
viscosity: 10000
}

File diff suppressed because it is too large Load Diff

6
mods/nograssgrow.js Normal file
View File

@ -0,0 +1,6 @@
elements.grass.tick = null;
elements.grass.behavior = [
["XX", "XX", "XX"],
["XX", "XX", "XX"],
["XX", "M1", "XX"]
];

View File

@ -71,6 +71,18 @@ elements.fruit_ice_cream = {
temp: 0,
};
elements.snow_cone = {
color: ["#ebfeed","#f4fff5","#fefaff","#fff3fe","#fcf2fb"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
hidden: "TRUE",
density: 1096,
tempHigh: 15,
stateHigh: "smashed_ice",
temp: 0,
};
elements.mint_ice_cream = {
color: ["#ebfdff","#d5fff7","#ceffe9","#dfffde","#daffd5"],
@ -350,7 +362,36 @@ elements.smashed_ice = {
tempHigh: 25,
stateHigh: "water",
tempLow: -100,
stateLow: "snow",
stateLow: "snow_cone",
};
elements.anti_torch = {
color: "#d68542",
behavior: [
"XX|CR:cold_fire|XX",
"XX|XX|XX",
"XX|XX|XX",
],
reactions: {
"water": { elem1:"wood" },
"sugar_water": { elem1:"wood" },
"salt_water": { elem1:"wood" },
"seltzer": { elem1:"wood" },
"dirty_water": { elem1:"wood" },
"pool_water": { elem1:"wood" },
"steam": { elem1:"wood" },
"smog": { elem1:"wood" },
"rain_cloud": { elem1:"wood" },
"cloud": { elem1:"wood" },
"snow_cloud": { elem1:"wood" },
"hail_cloud": { elem1:"wood" },
"thunder_cloud": { elem1:"wood" },
"ice_nine": { elem1:"wood" }
},
temp:-250,
category: "special",
breakInto: "sawdust",
insulate: true,
};
elements.moss = {
@ -451,7 +492,9 @@ elements.cherry = {
tempHigh: 256,
stateHigh: "steam",
breakIntoColor: "#450008",
reactionsColor: "#450008",
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#bf4545","#982828"] },
}
};
elements.strawberry = {
@ -463,6 +506,9 @@ elements.strawberry = {
tempHigh: 256,
stateHigh: "steam",
breakIntoColor: ["#bf0147","#c61548","#cc2857","#c62354","#c11848"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#a82953","#941540"] },
}
};
elements.apple = {
@ -474,6 +520,9 @@ elements.apple = {
tempHigh: 256,
stateHigh: "steam",
breakIntoColor: ["#ffda69","#ffdb84"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#f4ff49","#ffec2f"] },
}
};
elements.green_apple = {
@ -485,6 +534,9 @@ elements.green_apple = {
tempHigh: 256,
stateHigh: "steam",
breakIntoColor: ["#ffda69","#ffdb84"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#f4ff49","#ffec2f"] },
}
};
elements.orange = {
@ -496,6 +548,9 @@ elements.orange = {
breakIntoColor: ["#ffc659","#ffb646","#ffa700","#ff8d00"],
tempHigh: 256,
stateHigh: "steam",
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#fbd808","#ff9005"] },
}
};
elements.kiwi = {
@ -507,6 +562,9 @@ elements.kiwi = {
tempHigh: 256,
stateHigh: "steam",
breakIntoColor: ["#a9c77e","#bad98f"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#a5d04c","#bbdc79"] },
}
};
elements.blueberry = {
@ -518,6 +576,9 @@ elements.blueberry = {
tempHigh: 256,
stateHigh: "steam",
breakIntoColor: ["#8abeee","#8aacf4","#9591ee","#787fdb","#7c74ce"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#5086c1","#5076b0"] },
}
};
elements.plum = {
@ -529,6 +590,9 @@ elements.plum = {
tempHigh: 256,
stateHigh: "steam",
breakIntoColor: ["#bf66c9","#d499db","#eacced"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#d8b2d8","#b266b2"] },
}
};
elements.blackberry = {
@ -540,6 +604,9 @@ elements.blackberry = {
tempHigh: 256,
stateHigh: "steam",
breakIntoColor: ["#a941a1","#ba59b2","#c570bf"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#ba59b2","#c570bf"] },
}
};
elements.peach = {
@ -551,6 +618,9 @@ elements.peach = {
tempHigh: 256,
stateHigh: "steam",
breakIntoColor: ["#fce5b8","#fcdab8","#fccfb8"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#ffe7dc","#ffdac8"] },
}
};
elements.lemon = {
@ -562,6 +632,9 @@ elements.lemon = {
tempHigh: 256,
stateHigh: "steam",
breakIntoColor: ["#f8ff80","#f6ff6c","#f5ff57","#f3ff39","#f0ff00"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#ffffd8","#fffecf"] },
}
};
elements.green_grape = {
@ -573,8 +646,10 @@ elements.green_grape = {
breakIntoColor: ["#5f8536","#7ba84a"],
tempHigh: 256,
stateHigh: "steam",
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#ecffdc","#c3ffa8"] },
}
};
elements.banana = {
color: ["#ffb400","#ffc100","#ffdb00","#ffe700","#f0ff00"],
behavior: behaviors.STURDYPOWDER,
@ -584,6 +659,7 @@ elements.banana = {
breakIntoColor: "#f0f060",
reactions: {
"steam": { elem1: "potassium", elem2: null },
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#fdf8d6","#f9efa6"] },
}
};
@ -594,6 +670,9 @@ elements.blood_orange = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#ff4600","#ff8353"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#ffc7b4","#ffa485"] },
}
};
elements.canary_melon = {
@ -603,6 +682,9 @@ elements.canary_melon = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#ffff9e","#fffcaa"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#e5ffb3","#ecff9c"] },
}
};
elements.honeydew_melon = {
@ -612,6 +694,9 @@ elements.honeydew_melon = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#e9ffa3","#f9ffa3"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#e8ffc9","#e8ffc8"] },
}
};
elements.cranberry = {
@ -623,6 +708,7 @@ elements.cranberry = {
breakIntoColor: ["#ba4242","#7a1717"],
reactions: {
"soda": { elem1: null, elem2: "sprite_cranberry" },
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#ffc0c5","#ff8f99"] },
}
};
@ -633,6 +719,9 @@ elements.pitaya = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#ff84ae","#ffafca"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#ffd4e3","#ffafca"] },
}
};
elements.coconut = {
@ -642,6 +731,9 @@ elements.coconut = {
state: "solid",
breakInto: "milk",
breakIntoColor: ["#f7e5d8","#fdefe5","#fff7f1"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#fff2db","#ffefd4"] },
}
};
elements.cloudberry = {
@ -651,6 +743,9 @@ elements.cloudberry = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#ffe1c7","#fff9f3"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#ffd7ab","#ffcb93"] },
}
};
elements.crabapple = {
@ -660,6 +755,9 @@ elements.crabapple = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#ff8fcf","#ffb2de"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#ffd2ec","#ffb2de"] },
}
};
elements.cactus_fruit = {
@ -669,6 +767,9 @@ elements.cactus_fruit = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#75d802","#72d202"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#bbffc1","#84ff90"] },
}
};
elements.pear = {
@ -678,6 +779,9 @@ elements.pear = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#c8e39e","#99cc99"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#c3ff9c","#bcff92"] },
}
};
elements.purpleberry = {
@ -687,6 +791,9 @@ elements.purpleberry = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#c08cc3","#e49cc2"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#fee6e4","#fbc3c4"] },
}
};
elements.yellowberry = {
@ -696,6 +803,9 @@ elements.yellowberry = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#fffec8","#fffdaf"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#fffec8","#fffdaf"] },
}
};
elements.pomegranate = {
@ -705,6 +815,9 @@ elements.pomegranate = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#ee717f","#e94254"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#f4a1a9","#ee717f"] },
}
};
elements.guava = {
@ -714,6 +827,9 @@ elements.guava = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#ff5a76","#ff8fa2"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#f6c8cd","#f2acb5"] },
}
};
elements.raspberry = {
@ -723,6 +839,9 @@ elements.raspberry = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#f23a72","#fb79a0"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#ffb1f4","#ff91ce"] },
}
};
elements.gooseberry = {
@ -732,6 +851,9 @@ elements.gooseberry = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#8b0031","#920436"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#f1ffdb","#e3ffb7"] },
}
};
elements.fig = {
@ -741,6 +863,9 @@ elements.fig = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#ff4a4a","#ea3838"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#ff8d8d","#ffabab"] },
}
};
elements.durian = {
@ -750,6 +875,9 @@ elements.durian = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#faffaf","#fbffbf"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#feffe7","#f9ffb3"] },
}
};
elements.passionfruit = {
@ -759,6 +887,9 @@ elements.passionfruit = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#ffdede","#ffe4e4"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#d8adce","#c485b6"] },
}
};
elements.starfruit = {
@ -768,6 +899,9 @@ elements.starfruit = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#f2d553","#f5dd75"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#faeeba","#f7e698"] },
}
};
elements.rambutan = {
@ -777,6 +911,9 @@ elements.rambutan = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#faffaf","#fbffbf"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#fde0e0","#f4c1c1"] },
}
};
elements.nance = {
@ -786,6 +923,9 @@ elements.nance = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#ffff66","#ffff99"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#fffee0","#fffec8"] },
}
};
elements.nectarine = {
@ -795,6 +935,9 @@ elements.nectarine = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#ffbd8b","#ffdbc0"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#ffc3ad","#ffa584"] },
}
};
elements.loganberry = {
@ -804,6 +947,9 @@ elements.loganberry = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#ff8f8f","#ffb7b7"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#9c91a5","#bdb5c3"] },
}
};
elements.currant = {
@ -813,6 +959,9 @@ elements.currant = {
state: "solid",
breakInto: "juice",
breakIntoColor: ["#ff878f","#ffbcc0"],
reactions: {
"sugar": { elem1: "jelly", elem2: null, tempMin: 100, color1: ["#cc6b69","#bb3a37"] },
}
};
elements.sprite_cranberry = {
@ -842,6 +991,24 @@ elements.broccoli = {
breakIntoColor: ["#00b215","#0b8500"],
};
elements.hot_pepper = {
color: ["#ffd013","#fb8a24","#ff5c3a","#d61439","#81032d"],
behavior: behaviors.POWDER,
category: "food",
state: "solid",
reactions: {
"sauce": { elem1: null, elem2: "hot_sauce" },
}
};
elements.hot_sauce = {
color: ["#ff0000","#f00000","#d20000","#c50000","#b00000"],
behavior: behaviors.LIQUID,
density: 10,
category: "food",
state: "solid",
};
elements.squash = {
color: ["#f2ab15","#f5bc44","#f7cd73"],
behavior: behaviors.POWDER,
@ -971,6 +1138,26 @@ elements.poison_oreo = {
hidden: "TRUE",
};
elements.sprinkles = {
color: ["#fbfa8f","#c5ecbd","#7ac7bf","#f29fa9","#e1848e"],
behavior: behaviors.POWDER,
category: "food",
state: "solid",
};
elements.whipped_cream = {
color: ["#fffff0","#fffff3","#fffff6","#fffff9","#fffffc"],
behavior: behaviors.POWDER,
category: "food",
state: "solid",
hidden: "TRUE",
tempHigh: 130,
stateHigh: "steam",
reactions: {
"coffee": { elem1: null, elem2: "cream_coffee" },
}
};
elements.cream_coffee = {
color: ["#dbc1ac","#967259","#634832"],
behavior: behaviors.LIQUID,
@ -990,6 +1177,74 @@ elements.seafoam = {
state: "solid",
};
elements.pipis = {
color: ["#00BFFF","#0085B0"],
behavior: behaviors.POWDER,
category: "life",
state: "solid",
};
elements.frog_bomb = {
color: "#0f2105",
behavior: [
"XX|EX:10>frog|XX",
"XX|XX|XX",
"M2|M1 AND EX:10>frog|M2",
],
category: "weapons",
state: "solid",
density: 1300,
tempHigh: 1455.5,
stateHigh: "molten_steel",
excludeRandom: true,
cooldown: defaultCooldown
},
elements.cash_bomb = {
color: "#665411",
behavior: [
"XX|EX:10>gold_coin|XX",
"XX|XX|XX",
"M2|M1 AND EX:10>gold_coin|M2",
],
category: "weapons",
state: "solid",
density: 1300,
tempHigh: 1455.5,
stateHigh: "molten_steel",
excludeRandom: true,
cooldown: defaultCooldown
},
elements.pi_pis = {
color: ["#007299","003849"],
behavior: [
"XX|EX:10>pipis|XX",
"XX|XX|XX",
"M2|M1 AND EX:10>pipis|M2",
],
category: "weapons",
state: "solid",
density: 1300,
tempHigh: 1455.5,
stateHigh: "molten_steel",
excludeRandom: true,
cooldown: defaultCooldown
},
elements.chocolate_fountain = {
color: "#3e1d07",
behavior: [
"XX|CR:melted_chocolate|XX",
"XX|XX|XX",
"XX|XX|XX",
],
category:"special",
tempHigh: 1455.5,
stateHigh: "molten_steel",
conduct: 0.42,
state: "solid",
};
elements.toorhpaste = {
color: ["#31ffe0","#65ffe8","#97ffef","#c9fff7","#f3fffd"],
@ -1071,6 +1326,36 @@ elements.herb.breakInto = "seasoning"
elements.chocolate.breakInto = "chocolate_sauce"
if (!elements.vinegar.reactions) elements.vinegar.reactions = {};
elements.vinegar.reactions.broccoli = { elem1: null, elem2: "pickle" }
if (!elements.vinegar.reactions) elements.vinegar.reactions = {};
elements.vinegar.reactions.squash = { elem1: null, elem2: "pickle" }
if (!elements.vinegar.reactions) elements.vinegar.reactions = {};
elements.vinegar.reactions.zuchinni = { elem1: null, elem2: "pickle" }
if (!elements.vinegar.reactions) elements.vinegar.reactions = {};
elements.vinegar.reactions.olive = { elem1: null, elem2: "pickle" }
if (!elements.vinegar.reactions) elements.vinegar.reactions = {};
elements.vinegar.reactions.eggplant = { elem1: null, elem2: "pickle" }
if (!elements.vinegar.reactions) elements.vinegar.reactions = {};
elements.vinegar.reactions.onion = { elem1: null, elem2: "pickle" }
if (!elements.vinegar.reactions) elements.vinegar.reactions = {};
elements.vinegar.reactions.garlic = { elem1: null, elem2: "pickle" }
if (!elements.vinegar.reactions) elements.vinegar.reactions = {};
elements.vinegar.reactions.garlic_clove = { elem1: null, elem2: "pickle" }
if (!elements.vinegar.reactions) elements.vinegar.reactions = {};
elements.vinegar.reactions.asparagus = { elem1: null, elem2: "pickle" }
if (!elements.vinegar.reactions) elements.vinegar.reactions = {};
elements.vinegar.reactions.asparagus = { elem1: null, elem2: "pickle" }
if (!elements.ice_cream.reactions) elements.ice_cream.reactions = {};
elements.ice_cream.reactions.juice = { elem1: "fruit_ice_cream", elem2: null }

1439
mods/sbmixup.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,12 @@
elements.burnt_rice = {
elements.cooked_rice = {
viscosity: 1000,
tempMin: 20,
stateMin: "rice",
tempHigh: 500,
stateHigh: "ash",
stateHigh: ["ash", "charcoal"],
density: 699,
color: "#242424",
behavior: behaviors.POWDER,
color: "#c2b6b6",
behavior: behaviors.LIQUID,
category: "food",
state: "liquid",
reactions: {
@ -12,12 +15,13 @@ elements.burnt_rice = {
};
elements.rice = {
breakInto: "flour",
viscosity: 10000,
isFood: true,
density: 696,
tempHigh: 232,
stateHigh: "burnt_rice",
color: "#d1d1d1",
stateHigh: "cooked_rice",
color: "#c8c8c8",
behavior: behaviors.LIQUID,
category: "food",
state: "liquid",
@ -296,17 +300,17 @@ elements.burnt_marshmallow = {
state: "solid",
};
elements.ramen = {
elements.spaghetti = {
isFood: true,
tempHigh: 90,
stateHigh: "cooked_ramen",
color: "#fae34d",
behavior: behaviors.POWDER,
behavior: behaviors.SUPPORT,
category: "food",
state: "solid",
};
elements.cooked_ramen = {
elements.cooked_spaghetti = {
hidden: true,
density: 800,
isFood: true,
@ -316,7 +320,7 @@ elements.cooked_ramen = {
behavior: behaviors.SUPPORT,
category: "food",
state: "solid",
}
};
elements.cereal = {
isFood: true,
@ -369,11 +373,15 @@ elements.piss = {
elements.soup = {
isFood: true,
temp: 50,
temp: 100,
tempHigh: 500,
stateHigh: "steam",
color: "#945e00",
behavior: behaviors.LIQUID,
behavior: [
"XX|CR:steam%0.1|XX",
"M2|XX|M2",
"M2|M1|M2"
],
category: "liquids",
state: "liquid",
};
@ -1392,6 +1400,34 @@ elements.uranium_ice_cream = {
state: "liquid",
};
elements.silver_coin = {
tempHigh: 1000,
stateHigh: "molten_silver",
color: ["#ababab", "#dedede"],
behavior: behaviors.POWDER,
category: "powders",
state: "solid",
};
elements.max_graphics_in_roblox = {
color: "#238fe8",
behavior: [
"XX|XX|XX",
"XX|EX:800000000000>plasma,plasma,plasma,plasma,plasma,plasma,plasma,plasma,plasma,plasma,plasma,plasma,plasma,plasma,plasma,plasma,plasma,plasma,plasma,plasma,molten_iron,molten_uranium,molten_lead,oxygen,molten_sodium,sulfur_gas,neon,chlorine,molten_calcium,molten_nickel,molten_copper,molten_zinc,gallium_gas AND CH:void|XX",
"XX|XX|XX",
],
temp: 99999999700,
category: "joke",
state: "gas",
density: 1000,
hardness: 1,
hidden: true,
excludeRandom: true,
maxSize: 1,
noMix: true,
desc: "ok now ACTUALLY use it at your own risk IM NOT KIDDING! THIS CAN FUCKING CRASH YOUR GAME"
};
elements.incinerate.category = "tools",
elements.cook.category = "tools",
elements.room_temp.category = "tools",
@ -1432,3 +1468,8 @@ elements.paper.reactions.bless = { elem1: "robux", elem2: null, chance: 0.001 }
if (!elements.uranium.reactions) elements.uranium.reactions = {};
elements.uranium.reactions.ice_cream = {elem1: "uranium_ice_cream", elem2: null},
elements.uranium.reactions.cream = {elem1: "uranium_ice_cream", elem2: null}
if (!elements.dough.reactions) elements.dough.reactions = {};
elements.dough.reactions.yolk = {elem1: null, elem2: "spaghetti", tempMin: 25}
elements.silver.breakInto = "silver_coin"

218
mods/weAllScreamFor.js Normal file
View File

@ -0,0 +1,218 @@
/*
A Sandboxels mod dedicated to creating yummy ice cream creations! My first Sandboxels mod.
Made by rottenEgghead @ https://github.com/rottenEgghead
Current elements: Waffle cone, Strawberry, Sprinkles, Chocolate chips, Oreos, M&Ms, Cherries, Banana, Coconut (shavings/water)
Current renamed elements: Chocolate -> Chocolate bar, Nut -> Peanut
Current tools: Freeze
** v.1.0 **
N/A
*/
var mainCat = "food";
var smallDensity = 233.95;
var foodTempHigh = 176;
var defChance = 0.05;
if (!elements.ice_cream.reactions) { elements.ice_cream.reaction = {}; };
elements.ice_cream.temp = -15;
elements.ice_cream.reactions = {
"strawberry": { color1: ["#f5dad7", "#ffbfbf", "#f7a3a3"], chance: defChance },
"gingerbread": { color1: ["#f0cbad", "#dec4af"], chance: defChance },
"coffee": { color1: [], chance: defChance },
"crumb": { color1: ["#f0cbad", "#dec4af"], chance: defChance },
"oreo_crumb": { color1: ["#e8e2e1", "#666161", "#8a8888"], chance: defChance },
"oreo": { color1: ["#e8e2e1", "#666161", "#8a8888"], chance: defChance },
"mnms": { color1: ["#ebe6e6", "#ebe6e6", "#ffd9d9", "#fffcd9", "#ddffd9", "#d9d9ff"], chance: defChance },
"nut_butter": { color1: ["#f0ece9", "#f5cd98", "#cfaf84"], chance: defChance },
"melted_chocolate": { color1: ["#785E4C", "#8c664c", "#b37449"], chance: defChance },
};
elements.chocolate.name = "Chocolate Bar";
elements.chocolate.behavior = behaviors.WALL;
elements.chocolate.breakInto = "chocolate_chips";
elements.coffee.tempLow = -15;
elements.coffee.hidden = false;
elements.nut.name = "Peanut";
elements.nut_butter.name = "Peanut Butter";
elements.nut_meat.name = "Peanut Meat";
elements.nut_milk.name = "Peanut Milk";
/* Tools */
elements.freeze = {
color: ["#BCE7FF", "#65C7FF", "#BCE7FF", "#65C7FF", "#BCE7FF", "#65C7FF"],
tool: function (pixel) {
if (!shiftDown) {
pixel.temp -= 0.5;
pixelTempCheck(pixel);
} else {
pixel.temp -= 1;
pixelTempCheck(pixel);
}
},
category: "energy",
excludeRandom: true,
};
/* Elements */
elements.strawberry = {
color: "#e63e57",
behavior: behaviors.POWDER,
category: "food",
state: "solid",
hidden: false,
isFood: true,
breakInto: "juice",
breakIntoColor: "#db4f64",
stateHigh: ["steam", "sugar"],
density: 1154,
};
elements.banana = {
color: ["#F5D273", "#FFE093"],
behavior: behaviors.STURDYPOWDER,
category: mainCat,
state: "solid",
hidden: false,
isFood: true,
tempHigh: 142,
density: 876,
};
elements.coconut = {
color: ["#503733", "#402926"],
behavior: behaviors.WALL,
category: mainCat,
state: "solid",
hidden: false,
isFood: true,
tempLow: 0,
burnInto: "steam",
breakInto: ["coconut_shavings", "coconut_water", "coconut_water"],
density: 352,
};
elements.coconut_shavings = {
color: ["#E7E1DF", "#F5F1F0"],
behavior: behaviors.POWDER,
category: mainCat,
state: "solid",
hidden: false,
isFood: true,
tempLow: 0,
burnInto: "steam",
density: 233,
};
elements.coconut_water = {
color: "#D7E0DF",
behavior: behaviors.LIQUID,
category: "liquids",
state: "liquid",
hidden: true,
isFood: true,
tempLow: 0,
burnInto: "steam",
density: 1000,
};
elements.waffle_cone = {
color: ["#d49d66", "#bf8449"],
behavior: behaviors.WALL,
category: mainCat,
state: "solid",
hidden: false,
isFood: true,
tempHigh: foodTempHigh,
burn: 30,
burnTime: 200,
burnInto: ["smoke", "smoke", "smoke", "ash"],
breakInto: "crumb",
breakIntoColor: "#d49d66",
density: smallDensity,
};
elements.sprinkles = {
color: ["#eb726a", "#ebca6a", "#88eb6a", "#6aaceb", "#eb6ade"],
behavior: behaviors.POWDER,
category: mainCat,
state: "solid",
hidden: false,
isFood: true,
tempHigh: foodTempHigh,
stateHigh: "caramel",
density: smallDensity,
};
elements.chocolate_chips = {
color: "#382a20",
behavior: behaviors.POWDER,
category: mainCat,
state: "solid",
hidden: true,
isFood: true,
tempHigh: 31,
stateHigh: "melted_chocolate",
density: 1325,
};
elements.oreo = {
color: "#302c2b",
behavior: behaviors.STURDYPOWDER,
category: mainCat,
state: "solid",
hidden: false,
isFood: true,
tempHigh: foodTempHigh,
stateHigh: "caramel",
breakInto: "oreo_crumb",
density: smallDensity,
};
elements.oreo_crumb = {
color: "#302c2b",
behavior: behaviors.POWDER,
category: mainCat,
state: "solid",
hidden: true,
isFood: true,
tempHigh: foodTempHigh,
stateHigh: "caramel",
density: smallDensity,
};
elements.mnms = {
name: "M&Ms",
color: ["#f71f14", "#f2d622", "#2279f2", "#45f222", "#5e3f32"],
behavior: behaviors.POWDER,
category: mainCat,
state: "solid",
hidden: false,
isFood: true,
tempHigh: 31,
stateHigh: "melted_chocolate",
density: 1325,
};
elements.cherry = {
name: "Cherries",
color: "#ab261d",
behavior: behaviors.WALL,
category: mainCat,
state: "solid",
hidden: false,
isFood: true,
tempHigh: 256,
stateHigh: ["steam", "sugar"],
density: 1154,
breakInto: "jelly",
breakIntoColor: ["#8c142a", "#800a20"],
};

88
mods/weapons.js Normal file
View File

@ -0,0 +1,88 @@
elements.tsar_bomba = {
color: "#524C41",
behavior: [
"XX|EX:150>plasma|XX",
"XX|XX|XX",
"M2|M1 AND EX:150>plasma|M2",
],
category: "weapons",
state: "solid",
density: 1300,
excludeRandom: true,
cooldown: defaultCooldown
},
elements.little_boy = {
color: "#F5F5DC",
behavior: [
"XX|EX:20>plasma|XX",
"XX|XX|XX",
"M2|M1 AND EX:70>plasma,plasma,plasma,plasma,radiation,fallout|M2",
],
category: "weapons",
state: "solid",
density: 500,
excludeRandom: true,
cooldown: defaultCooldown
},
elements.fat_man = {
color: ["#ffff00","#000000"],
behavior: [
"XX|EX:28>plasma|XX",
"XX|XX|XX",
"M2|M1 AND EX:98>plasma,plasma,plasma,plasma,radiation,fallout|M2",
],
category: "weapons",
state: "solid",
density: 1000,
excludeRandom: true,
cooldown: defaultCooldown
},
elements.self_propelled_bomb = {
color: "#71797E",
tick: function(pixel) {
if ((pixel.temp > 1000 || pixel.charge) && !pixel.burning) {
pixel.burning = true;
pixel.burnStart = pixelTicks;
}
if (pixel.burning) {
if (!tryMove(pixel, pixel.x, pixel.y-1)) {
// tryMove again to the top left or top right
tryMove(pixel, pixel.x+(Math.random() < 0.5 ? -1 : 1), pixel.y-1);
}
if (pixelTicks-pixel.burnStart > 50 && Math.random() < 0.1) {
explodeAt(pixel.x, pixel.y, 10, "bomb");
}
}
else {
if (!tryMove(pixel, pixel.x, pixel.y+1)) {
// tryMove again to the bottom left or bottom right
tryMove(pixel, pixel.x+(Math.random() < 0.5 ? -1 : 1), pixel.y+1);
}
}
doDefaults(pixel);
},
burn: 90,
burnTime: 100,
density: 2000,
conduct: 1,
state: "solid",
category: "weapons"
},
elements.left_missile = {
color: "#4c4e42",
behavior: [
"XX|EX:10|XX",
"CR:left_missile AND EX:10|CH:fire|EX:10",
"M2|M1 AND EX:10|M2",
],
category:"weapons",
},
elements.right_missile = {
color: "#4c4e42",
behavior: [
"XX|EX:10|XX",
"EX:10|CH:fire|EX:10 AND CR:right_missile",
"M2|M1 AND EX:10|M2",
],
category:"weapons",
};