This commit is contained in:
slweeb 2024-10-11 11:05:29 -04:00
commit 59db73b1f8
6 changed files with 3473 additions and 193 deletions

View File

@ -548,5 +548,10 @@
"galvanized_steel": "Acier galvanisé",
"rice": "Le riz",
"midas_touch": "Touche de Midas",
"liquid_ozone": "Ozone liquide"
"liquid_ozone": "Ozone liquide",
"web": "Toile",
"soul": "Âme",
"spider": "Araignée",
"ectoplasm": "Ectoplasme",
"tombstone": "Pierre tombale"
}

View File

@ -549,5 +549,10 @@
"galvanized_steel": "Thép mạ kẽm",
"rice": "Gạo",
"midas_touch": "Bàn tay của Midas",
"liquid_ozone": "Ozone lỏng"
"liquid_ozone": "Ozone lỏng",
"web": "Tơ Nhện",
"soul": "Linh hồn",
"spider": "Nhện",
"ectoplasm": "Ngoại chất",
"tombstone": "Bia mộ"
}

View File

@ -340,6 +340,7 @@
<!----><tr><td class="modCat" colspan="3">Visual Effects</td></tr><!---->
<tr><td>acid_and_shapes.js</td><td>Weird visual effects. Enable in Settings</td><td>Alice</td></tr>
<tr><td>customBackground.js</td><td>Set your background to an image link</td><td>Jayd</td></tr>
<tr><td>heatglow.js</td><td>Red glowing effect for hot metals</td><td>nousernamefound</td></tr>
<tr><td>invisible_dye.js</td><td>Adds elements like Dye and Spray Paint that take the color of the background</td><td>Alice</td></tr>
<tr><td>invisible_wall.js</td><td>Adds an element like Wall that takes the color of the background</td><td>Alice</td></tr>
@ -351,6 +352,9 @@
<tr><td>shader_by_jayd.js</td><td>Adds a glow around light elements</td><td>Jayd</td></tr>
<tr><td>Shroomboxels.js</td><td>A variant of acid_and_shapes.js that uses a different trigonometric function</td><td>Alice</td></tr>
<tr><td>singleColor.js</td><td>Makes all elements pick one color each time they're drawn</td><td>stefanblox</td></tr>
<tr><td>texture_pack_by_jayd.js</td><td>Adds a cool background</td><td>Jayd</td></tr>
<tr><td>UwUify.js</td><td>Adds an "UwU" background</td><td>Jayd</td></tr>
<!----><tr><td class="modCat" colspan="3">Compilations</td></tr><!---->
<tr><td>a_mod_by_alice.js</td><td>A mod combining most of Alices mods, and some other things</td><td>Alice</td></tr>

View File

@ -467,18 +467,7 @@ elements.mushy_mud = {
density: 1200,
stain: 0.3
};
elements.mud = {
color: "#8B4513",
behavior: elements.slime.behavior,
viscosity: 1050,
tempHigh: 58,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1000,
stain: 0.3
};
elements.quicksand_mud = {
color: "#DAA520",
behavior: elements.slime.behavior,
@ -515,7 +504,7 @@ elements.sticky_quicksand = {
density: 1100,
stain: 0.25
};
elements.fluff_mud = {
elements.pluff_mud = {
color: "#964B00",
behavior: elements.slime.behavior,
viscosity: 10000,
@ -527,55 +516,6 @@ elements.fluff_mud = {
density: 1300,
stain: 0.2
};
elements.bog = {
color: "#556B2F",
behavior: elements.slime.behavior,
viscosity: 10000,
tempHigh: 45,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1400,
stain: 0.25
};
elements.mire = {
color: "#2E8B57",
behavior: elements.slime.behavior,
viscosity: 10000,
tempHigh: 50,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1500,
stain: 0.3
};
elements.oobleck = {
color: "#008000",
behavior: elements.slime.behavior,
viscosity: 10000,
tempHigh: 25,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1600,
stain: 0.15
};
elements.spiderwebs = {
color: "#D3D3D3",
behavior: elements.slime.behavior,
viscosity: 10000,
tempHigh: 20,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1700,
stain: 0.1
};
elements.silt_quicksand = {
color: "#DAA520",
behavior: elements.slime.behavior,
@ -1104,3 +1044,312 @@ elements.murky_marsh_mixture = {
density: 1900,
stain: 0.2
};
elements.mud = {
color: "#8B4513",
reactions: {
"water": { "elem1": "wet_mud" },
"mire": { "elem1": "mire_mud" },
"dirt": { "elem1": "thick_mud" },
"plant": { "elem1": "pluff_mud" },
"bog": { "elem1": "boggy_mud" },
"sand": { "elem1": "sandy_mud" },
},
behavior: elements.slime.behavior,
viscosity: 1050,
tempHigh: 58,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1000,
stain: 0.3
};
elements.marsh = {
color: "#556B2F",
behavior: elements.slime.behavior,
reactions: {
"slime": { "elem1": "marshy_slime" },
},
viscosity: 13500,
tempHigh: 75,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1900,
stain: 0.2
};
elements.peat = {
color: "#556B2F",
behavior: elements.slime.behavior,
viscosity: 13500,
tempHigh: 75,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1900,
stain: 0.2
};
elements.goo = {
color: "#556B2F",
behavior: behavior.POWDER,
viscosity: 13500,
tempHigh: 75,
stateHigh: "powder",
tempLow: 0,
category: "powders",
state: "powder",
density: 1900,
stain: 0.2
};
elements.ooze = {
color: "#556B2F",
behavior: elements.slime.behavior,
viscosity: 13500,
tempHigh: 75,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1900,
stain: 0.2
};
elements.spiderwebs = {
color: "#D3D3D3",
behavior: elements.slime.behavior,
viscosity: 10000,
tempHigh: 20,
stateHigh: "liquid",
reactions: {
"ooze": { "elem1": "sticky_spider_ooze" },
"goo": { "elem1": "sticky_spider_goo" },
},
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1700,
stain: 0.1
};
elements.bog = {
color: "#556B2F",
behavior: elements.slime.behavior,
viscosity: 10000,
tempHigh: 45,
stateHigh: "liquid",
tempLow: 0,
reactions: {
"quicksand": { "elem1": "bog_quicksand" },
},
category: "liquids",
state: "liquid",
density: 1400,
stain: 0.25
};
elements.mire = {
color: "#2E8B57",
behavior: elements.slime.behavior,
viscosity: 10000,
tempHigh: 50,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1500,
stain: 0.3
};
elements.oobleck = {
color: "#008000",
behavior: elements.slime.behavior,
viscosity: 10000,
tempHigh: 25,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1600,
stain: 0.15
};
elements.quicksand = {
color: "#8B4513",
behavior: elements.slime.behavior,
viscosity: 1050,
tempHigh: 58,
stateHigh: "liquid",
reactions: {
"water": { "elem1": "wet_quicksand" },
"peat": { "elem1": "peat_quicksand" },
"mud": { "elem1": "quicksand_mud" },
},
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1574,
stain: 0.3
};
elements.gel = {
color: "#008000",
behavior: elements.slime.behavior,
viscosity: 10000,
tempHigh: 25,
reactions: {
"spider_webbing": { "elem1": "webbing_gel" },
},
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1600,
stain: 0.15
};
elements.silly_putty = {
color: "#FFD700",
behavior: behaviors.LIQUID,
viscosity: 4000,
tempHigh: 50,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 900, // Adjusted density
stain: 0.1
};
elements.kinetic_sand = {
color: "#FFD700",
behavior: behaviors.LIQUID,
viscosity: 5000,
tempHigh: 55,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1200, // Adjusted density
stain: 0.15
};
elements.gak = {
color: "#FF69B4",
behavior: behaviors.LIQUID,
viscosity: 6000,
tempHigh: 60,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 950,
stain: 0.2
};
elements.flubber = {
color: "#FF4500",
behavior: behaviors.LIQUID,
viscosity: 3000,
tempHigh: 65,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 800,
stain: 0.1
};
elements.play_doh = {
color: "#FFC0CB",
behavior: behaviors.LIQUID,
viscosity: 5000,
tempHigh: 55,
reactions: {
"sand": { "elem1": "sandy_play_doh" },
},
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 950,
stain: 0.2
};
elements.floam = {
color: "#98FB98",
behavior: behaviors.LIQUID,
viscosity: 4000,
tempHigh: 60,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1000,
stain: 0.15
};
elements.moon_sand = {
color: "#D3D3D3",
behavior: behaviors.LIQUID,
viscosity: 4500,
tempHigh: 60,
reactions: {
"water": { "elem1": "moon_quicksand" },
"kinetic_sand": { "elem1": "moon_kinetic_sand" },
},
stateHigh: "liquid",
tempLow: 0,
category: "powders",
state: "powder",
density: 950,
stain: 0.1
};
elements.moon_quicksand = {
color: "#98FB98",
behavior: behaviors.LIQUID,
viscosity: 4000,
tempHigh: 60,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1000,
stain: 0.15
};
elements.moon_kinetic_sand = {
color: "#D3D3D3",
behavior: behaviors.LIQUID,
viscosity: 4500,
tempHigh: 60,
reactions: {
"water": { "elem1": "kinetic_moon_quicksand" },
},
stateHigh: "liquid",
tempLow: 0,
category: "powders",
state: "powder",
density: 950,
stain: 0.1
};
elements.kinetic_moon_quicksand = {
color: "#98FB98",
behavior: behaviors.LIQUID,
viscosity: 4000,
tempHigh: 60,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 1000,
stain: 0.15
};
elements.sandy_play_doh = {
color: "#FFC0CB",
behavior: behaviors.LIQUID,
viscosity: 5000,
tempHigh: 55,
stateHigh: "liquid",
tempLow: 0,
category: "liquids",
state: "liquid",
density: 950,
stain: 0.2
};

File diff suppressed because it is too large Load Diff

61
mods/true_flashbang.js Normal file
View File

@ -0,0 +1,61 @@
// by nekonico
elements.true_flashbang = {
color: "#65665c",
onSelect: function() {
logMessage("Caution: If you have epilepsy or any similar vision issues, do not place this element for your own safety.");
},
behavior: [
"XX|EX:20>flashbang_flash%1|XX",
"XX|XX|XX",
"M2|M1 AND EX:20>flashbang_flash%1|M2",
],
category: "weapons",
state: "solid",
density: 1300,
tempHigh: 1455.5,
stateHigh: "molten_steel",
excludeRandom: true,
cooldown: defaultCooldown
}
elements.flashbang_flash = {
color: "#ffffff",
properties: {
delay: 100
},
tick: function(pixel) {
settings.bg = pixel.color;
let hex = Math.round(255 * pixel.alpha).toString(16);
pixel.color = `#${hex}${hex}${hex}` // credits to therazzler in the R74n discord for this code :3
var done = true;
if (pixel.delay) {
var delayR = pixel.delay % 1;
var delay = pixel.delay - delayR;
if (!(pixelTicks - pixel.start > (pixel.delay||1) && Math.random() < 1-delayR)) {
done = false;
}
}
if ((Math.random() < 0.75 && done) || pixel.alpha < 0.05) {
deletePixel(pixel.x, pixel.y)
settings.bg = "#000000";
}
if (pixel.delay) {
pixel.alpha = Math.max(0,1-(pixelTicks - pixel.start)/pixel.delay)
}
doHeat(pixel);
},
category: "energy",
temp: 40,
tempLow: -270,
stateLow: ["liquid_light",null],
state: "gas",
category: "energy",
density: 0.00001,
ignoreAir: true,
insulate: true,
hidden: true,
noMix: true,
excludeRandom: true
}