This commit is contained in:
slweeb 2024-11-26 17:08:09 -05:00
commit 8669f1c473
6 changed files with 4606 additions and 21 deletions

View File

@ -180,7 +180,9 @@
<tr><td>bettermetalscrap.js</td><td>Allows metal scrap to be melted back into its original material</td><td>nousernamefound</td></tr>
<tr><td>bigger_star_spawners.js</td><td>Adds spawners for larger stars</td><td>Alice</td></tr>
<tr><td>bioooze_and_pyrogens.js</td><td>Adds Bio-Ooze from <a herf="https://frackinuniverse.miraheze.org/wiki/Main_Page">Frackin Universe</a> and several heat-producing materials from various games mods</td><td>Alice</td></tr>
<tr><td>biology.js</td><td>Adds various elements and functions that let you build your own organism.</td><td>Nekonico</td></tr>
<tr><td>boiling_things.js</td><td>Allows for various elements to be vaporized</td><td>Alice</td></tr>
<tr><td>bouncing_balls.js</td><td>Adds new types of balls that bounce accurately and roll.</td><td>Nekonico</td></tr>
<tr><td>chalcopyrite.js</td><td>Adds the chalcopyrite ore</td><td>Sophie</td></tr>
<tr><td>chem.js</td><td>Adds several chemistry and physics-related elements</td><td>lllllllllwith10ls</td></tr>
<tr><td>clf3.js</td><td>Adds Chlorine Trifluoride</td><td>Alice</td></tr>
@ -274,6 +276,7 @@
<tr><td>apioforms_pre.js</td><td>An incomplete implementation of elements from the <a href="https://osmarks.net/apioform/">Apioform Game</a></td><td>Alice</td></tr>
<tr><td>bacteria_mod.js</td><td>Adds content from the <a href="https://www.curseforge.com/minecraft/mc-mods/bacterium">Bacterium Mod</a>: (Bacteria, Replacer B., Jammer Block)</td><td>Alice</td></tr>
<tr><td>bananas.js</td><td>Adds bananas and banana plants</td><td>Alice</td></tr>
<tr><td>biology.js</td><td>Adds various elements and functions that let you build your own organism.</td><td>Nekonico</td></tr>
<tr><td>cat.js</td><td>Adds cats and cat food</td><td>SquareScreamYT</td></tr>
<tr><td>cells.js</td><td>Adds several experimental edits of the Cell element</td><td>Alice</td></tr>
<tr><td>colonies.js</td><td>Adds rockets that contain settlers to terraform a planet.</td><td>Nekonico</td></tr>
@ -283,6 +286,7 @@
<tr><td>fantastic_creatures.js</td><td>Adds various animals</td><td>Melecie</td></tr>
<tr><td>fantasy_elements.js</td><td>Fantasy creatures and substances</td><td>pixelegend4</td></tr>
<tr><td>fey_and_more.js</td><td>Adds fairies, magic, and a lot of other things</td><td>Melecie</td></tr>
<tr><td>fishin.js</td><td>Adds a fishing rod and more fish with scientific names, press B to open bank account, A, S or D to cast your line and Q to reel it back in.</td><td>Nekonico</td></tr>
<tr><td>flowers_and_forests.js</td><td>adds trees and flowers and things to do with nature</td><td>pixelegend4 and SquareScreamYT</td></tr>
<tr><td>fwibblen.js</td><td>Adds a flying creature that turns nickel into itself, and a second creature that does the same to the first one</td><td>Alice</td></tr>
<tr><td>genetics.js</td><td>Adds an organism that evolves and changes as it creates more of itself by eating, and adapts to environment.</td><td>Nekonico</td></tr>
@ -316,6 +320,7 @@
<tr><td>collab_mod.js</td><td>Created by multiple people, adds random things</td><td>mrapple, ilikepizza, stefanblox</td></tr>
<tr><td>doom.js</td><td>As seen on TikTok - Select the Doom element to start, WASD</td><td>ggod</td></tr>
<tr><td>elem3.js</td><td>Adds all elements and combinations from Elemental 3 [Very Large]</td><td>Sophie</td></tr>
<tr><td>fishin.js</td><td>Adds a fishing rod and more fish with scientific names, press B to open bank account, A, S or D to cast your line and Q to reel it back in.</td><td>Nekonico</td></tr>
<tr><td>fools+.js</td><td>improves and makes fools.js EXTREMELY annoying.</td><td>SquareScreamYT</td></tr>
<tr><td>funny elements 2022-11-15.js</td><td>Adds a few curated randomly-generated elements</td><td>Alice</td></tr>
<tr><td>funnynames.js</td><td>Adds various ways to mess with the names of elements</td><td>nousernamefound</td></tr>

View File

@ -303,7 +303,7 @@ elements.e_SuperHeater = {
desc: "Works like the Super Heater but needs power to work",
hardness: 0.5,
state: "solid",
behavior: behaviors.WALL,
color: "#595656",
conduct: 1,
category: "machines",
color: "#881111",
@ -775,7 +775,7 @@ elements.Destructive_Filter = {
color: "#3c6c85",
desc: "A filter that destroys anything that isn't allowed to get through",
onSelect: function() {
var answer4 = prompt("Please input the desired element of this filter. It is case senstive.",(filterTypeVar||undefined));
var answer4 = prompt("Please input the desired element of this filter.The the desired element will not get destroyed but everything else will.",(filterTypeVar||undefined));
if (!answer4) { return }
filterTypeVar2 = answer4;
},
@ -860,7 +860,10 @@ elements.Destructive_Filter = {
pixel.con.del;
moved = true;
break;
}
} else if (!(newPixel.element == pixel.filterType) && !(newPixel.element == pixel.element)) {
deletePixel(newPixel.x,newPixel.y);
}
}
}
@ -1201,6 +1204,7 @@ elements.E_Spout = {
conduct: 1,
}
elements.DestroyableWire = {
color: "#4d0a03",
behavior: behaviors.WALL,
@ -1899,27 +1903,23 @@ elements.Missile_Up = {
"uranium_particles": { elem1:null, elem2:"supernova", chance:0.000001}
},
category: "???????",
}
}
ignoreGate = ["wall", "wire", "battery"];
elements.air_filter = {
color: "#414c4f",
tick: function(pixel) {
pixel.stage = 2
if (!pixel.stage && pixelTicks-pixel.start > 60) {
for (var i = 0; i < squareCoords.length; i++) {
var coord = squareCoords[i];
var x = pixel.x+coord[0];
var y = pixel.y+coord[1];
// delete this bc it makes the pipe walls
// if (!isEmpty(x,y,true) && elements[pixelMap[x][y].element].movable) {
// deletePixel(x,y)
// }
// if (isEmpty(x,y)) {
// createPixel("pipe_wall",x,y);
// }
}
pixel.stage = 2;
}
@ -1929,12 +1929,7 @@ elements.Missile_Up = {
var x = pixel.x+coord[0];
var y = pixel.y+coord[1];
pixel.stage = 2;
// this makes the thing blue and keep pixel.stage = 2 cuz without it it breaks the code
// if (isEmpty(x,y)) {
// pixel.stage = 2; //blue
// pixel.color = pixelColorPick(pixel,"#000036");
// break;
// }
}
}
else if (pixel.stage > 1 && pixelTicks % 3 === pixel.stage-2) { //initialized
@ -1947,9 +1942,7 @@ elements.Missile_Up = {
if (newPixel.stage === 1) {
var newColor;
switch (pixel.stage) {
case 2: newPixel.stage = 3; newColor = "#003600"; break; //green
case 3: newPixel.stage = 4; newColor = "#360000"; break; //red
case 4: newPixel.stage = 2; newColor = "#000036"; break; //blue
}
newPixel.color = pixelColorPick(newPixel,newColor);
}
@ -2023,3 +2016,323 @@ elements.Missile_Up = {
canContain: true,
}
function checkPixels(pixel, upOrDown) {
var change = null;
var x = pixel.x;
var y = pixel.y;
for (let i = 0; i < 7; i++) {
if (upOrDown == true) {
if (!isEmpty(x, y - i)) {
var sensed = pixelMap[x][pixel.y - i];
if (!(sensed.element == pixel.element)) {
// if (sensed.element.category === "solids") {
tryMove(sensed, sensed.x, sensed.y - 1);
// }
}
}
} else if (upOrDown == false) {
if (!isEmpty(x, y + i)) {
var sensed = pixelMap[x][pixel.y + i];
if (!(sensed.element == pixel.element)) {
// if (sensed.element.category === "solids") {
tryMove(sensed, sensed.x, sensed.y + 1);
// }
}
}
}
}
}
function checkPixels2(pixel, BringupOrDown) {
var change = null;
var x = pixel.x;
var y = pixel.y;
for (let i = 0; i < 7; i++) {
if (BringupOrDown == true) {
if (!isEmpty(x, y - i)) {
var sensed = pixelMap[x][pixel.y - i];
if (!(sensed.element == pixel.element)) {
// if (sensed.element.category === "solids") {
tryMove(sensed, sensed.x, sensed.y + 1);
// }
}
}
} else if (BringupOrDown == false) {
if (!isEmpty(x, y + i)) {
var sensed = pixelMap[x][pixel.y + i];
if (!(sensed.element == pixel.element)) {
// if (sensed.element.category === "solids") {
tryMove(sensed, sensed.x, sensed.y - 1);
// }
}
}
}
}
}
elements.Repel_Up_Magnet = {
color: "#595656",
behavior: behaviors.WALL,
singleColor: true,
category: "machines",
state: "solid",
tick: function(pixel){
checkPixels(pixel,true)
}
}
elements.Repel_Down_Magnet = {
color: "#595656",
singleColor: true,
category: "machines",
state: "solid",
behavior: behaviors.WALL,
tick: function(pixel){
checkPixels(pixel,false)
}
}
elements.Magnet_Pull_Down = {
color: "#595656",
singleColor: true,
category: "machines",
state: "solid",
behavior: behaviors.WALL,
tick: function(pixel){
checkPixels2(pixel,true)
}
}
elements.Magnet_Pull_Up = {
color: "#595656",
singleColor: true,
category: "machines",
state: "solid",
behavior: behaviors.WALL,
tick: function(pixel){
checkPixels2(pixel,false)
}
}
elements.Nucler_Fusion = {
color: "#595656",
maxSize: 1,
behavior: behaviors.WALL,
tick: function(pixel) {
if(pixel.start) {
explodeAt(pixel.x, pixel.y, 13, ["fire","fire","plasma","plasma","plasma","plasma"]);
}
}
}
SelectedX = null;
SelectedY = null;
elements.WireLessPower = {
color: "#595656",
singleColor: true,
category: "machines",
state: "solid",
behavior: behaviors.WALL,
conduct : 1,
onSelect: function() {
var answer4 = prompt("X pos",(SelectedX||undefined));
if (!answer4) { return }
SelectedX = answer4;
var answer5 = prompt("Y pos",(SelectedY||undefined));
if (!answer5) { return }
SelectedY = answer5;
},
tick: function(pixel){
if (pixel.start === pixelTicks) {
pixel.SelX = SelectedX;
pixel.SelY = SelectedY;
pixel.placed = false;
}
if(isEmpty(pixel.SelX,pixel.SelY) && pixel.placed == false){
createPixel("wire",pixel.SelX,pixel.SelY);
pixel.placed = true;
}
if(pixel.chargeCD) {
if (!isEmpty(pixel.SelX,pixel.SelY)) {
var sensed = pixelMap[pixel.SelX][pixel.SelY];
if(!sensed) {return}
if (!sensed.chargeCD && !sensed.charge) sensed.charge = 1;
}
}
}
}
// elements.E_Gate = {
// name: "E-Gate",
// color: "#414c4f",
// conduct : 1,
// tick: function(pixel) {
// pixel.stage = 2
// if (!pixel.stage && pixelTicks-pixel.start > 60) {
// for (var i = 0; i < squareCoords.length; i++) {
// var coord = squareCoords[i];
// var x = pixel.x+coord[0];
// var y = pixel.y+coord[1];
// }
// pixel.stage = 2;
// }
// else if (pixel.stage === 1 && pixelTicks-pixel.start > 70) { //uninitialized
// for (var i = 0; i < adjacentCoords.length; i++) {
// var coord = adjacentCoords[i];
// var x = pixel.x+coord[0];
// var y = pixel.y+coord[1];
// pixel.stage = 2;
// }
// }
// else if (pixel.stage > 1 && pixelTicks % 3 === pixel.stage-2) { //initialized
// 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) && pixelMap[x][y].element === "pipe") {
// var newPixel = pixelMap[x][y];
// if (newPixel.stage === 1) {
// var newColor;
// switch (pixel.stage) {
// }
// newPixel.color = pixelColorPick(newPixel,newColor);
// }
// }
// }
// var moved = false;
// shuffleArray(squareCoordsShuffle);
// for (var i = 0; i < squareCoordsShuffle.length; i++) {
// var coord = squareCoordsShuffle[i];
// var x = pixel.x+coord[0];
// var y = pixel.y+coord[1];
// if (!isEmpty(x,y,true)) {
// var newPixel = pixelMap[x][y];
// if (newPixel.element === "pipe") {
// var nextStage;
// switch (pixel.stage) {
// }
// if (pixel.con && !newPixel.con && newPixel.stage === nextStage) { //transfer to jacent pipe
// newPixel.con = pixel.con;
// newPixel.con.x = newPixel.x;
// newPixel.con.y = newPixel.y;
// pixel.con = null;
// moved = true;
// break;
// }
// }
// else if (!pixel.con && pixel.chargeCD & !(newPixel.element == pixel.element)&& !(ignoreGate.includes(newPixel.element))) { //suck up pixel
// pixel.con = newPixel;
// deletePixel(newPixel.x,newPixel.y);
// pixel.con.x = pixel.x;
// pixel.con.y = pixel.y;
// pixel.con.del;
// moved = true;
// break;
// }
// }
// }
// if (pixel.con && !moved) { // move to same stage if none other
// for (var i = 0; i < squareCoordsShuffle.length; i++) {
// var coord = squareCoordsShuffle[i];
// var x = pixel.x+coord[0];
// var y = pixel.y+coord[1];
// if (isEmpty(x,y)) {
// delete pixel.con.del;
// pixel.con.x = x;
// pixel.con.y = y;
// pixelMap[x][y] = pixel.con;
// currentPixels.push(pixel.con);
// pixel.con = null;
// break;
// }
// if (!isEmpty(x,y,true) && pixelMap[x][y].element === "pipe") {
// var newPixel = pixelMap[x][y];
// if (pixel.con && !newPixel.con && newPixel.stage === pixel.stage) {
// newPixel.con = pixel.con;
// newPixel.con.x = newPixel.x;
// newPixel.con.y = newPixel.y;
// pixel.con = null;
// break;
// }
// }
// }
// }
// }
// doDefaults(pixel);
// },
// category: "machines",
// movable: false,
// canContain: true,
// }
// RangeSelected = null;
// elements.fan = {
// color: "#595656",
// category: "machines",
// state: "solid",
// conduct : 1,
// behavior : behaviors.WALL,
// onSelect: function() {
// var answer4 = prompt("Enter a range for how far the fan blows.",(RangeSelected||undefined));
// if (!answer4) { return }
// RangeSelected = answer4;
// },
// tick: function(pixel){
// if (pixel.start === pixelTicks) {
// pixel.RangeBlow = RangeSelected
// }
// for (let i = 0; i < pixel.RangeBlow; i++) {
// if (!isEmpty(pixel.x+1, pixel.y)) {
// var sensed = pixelMap[pixel.x+1][pixel.y];
// if (!sensed) {return}
// if (!(sensed.element == pixel.element)) {
// if (elements[sensed.element].category == "gases" || elements[sensed.element].category == "powders") {
// tryMove(sensed, sensed.x+1, sensed.y );
// }
// }
// }
// }
// },
// }
// elements.test_Element = {
// color: "#595656",
// singleColor: true,
// category: "test",
// state: "solid",
// behavior : [
// ["XX","DL","XX"],
// ["DL","XX","DL"],
// ["M2","M1 AND DL","M2"]
// ],
// tick: function(pixel) {},
// conduct : 1,
// }

2595
mods/biology.js Normal file

File diff suppressed because it is too large Load Diff

1124
mods/eklegems.js Normal file

File diff suppressed because it is too large Load Diff

519
mods/fishin.js Normal file
View File

@ -0,0 +1,519 @@
document.onkeydown = function(ki)/*keyboard_input*/ {
//a
if (ki.keyCode == 65) {
KA = true;
//vX ++;
}
//d
if (ki.keyCode == 68) {
KD = true;
//vX ++;
}
//w
if (ki.keyCode == 81) {
KQ = true;
//vY ++;
}
//s
if (ki.keyCode == 83) {
KS = true;
//vY ++;
}
if (ki.keyCode == 66) {
KB = true;
}
}
document.onkeyup = function(i2)/*keyboard_input*/ {
//a
if (i2.keyCode == 65) {
KA = false;
//vX --;
}
//d
if (i2.keyCode == 68) {
KD = false;
//vX --;
}
//w
if (i2.keyCode == 81) {
KQ = false;
//vY = 0;
}
//s
if (i2.keyCode == 83) {
KS = false;
//vY = 0;
}
if (i2.keyCode == 66) {
KB = false;
}
}
var money = 0;
var stringAmount = 15;
var deployed = false;
var reelIn = false;
var KA = false;
var KD = false;
var KQ = false;
var KS = false;
var vX = 1;
var vY = 1;
elements.fishing_rod = {
tick: function(pixel) {
/*if (vX === 3) {
vX --;
}
if (vY === 3) {
vY --;
}*/
if (KA === true && deployed === false) {
if (isEmpty(pixel.x-vX,pixel.y)) {
createPixel("fishing_string",pixel.x-vX,pixel.y)
}
}
if (KD === true && deployed === false) {
if (isEmpty(pixel.x+vX,pixel.y)) {
createPixel("fishing_string",pixel.x+vX,pixel.y)
}
}
if (KS === true && deployed === false) {
if (isEmpty(pixel.x,pixel.y+vY)) {
createPixel("fishing_string",pixel.x,pixel.y+vX)
}
}
if (KQ === true && deployed === true) {
reelIn = true
}
if (KB === true) {
alert(`You have $${money}.`)
KB = false
}
},
color: "#a0522d",
renderer: renderPresets.WOODCHAR,
tempHigh: 400,
stateHigh: ["ember","charcoal","fire","fire","fire"],
burn: 5,
burnTime: 300,
burnInto: ["ember","charcoal","fire"],
state: "solid",
hardness: 0.15,
breakInto: "sawdust",
forceSaveColor: true,
category: "fishin",
movable: false,
}
elements.fishing_string = {
color: ["#F7F7F7","#F1F1F1"],
tick: function(pixel) {
if (pixel.value === undefined) {
pixel.value = stringAmount
}
if (isEmpty(pixel.x,pixel.y+vY) && pixel.value > 0 && reelIn === false) {
createPixel("fishing_string",pixel.x,pixel.y+vX)
pixelMap[pixel.x][pixel.y+vX].value = (pixel.value - 1)
}
else if (!isEmpty(pixel.x,pixel.y+vY,true) && pixel.value > 0 && reelIn === false) {
var nextString = pixelMap[pixel.x][pixel.y+vX]
if (elements[nextString.element].state === "liquid") {
changePixel(nextString,"fishing_string")
nextString.value = (pixel.value - 1)
}
}
if (isEmpty(pixel.x,pixel.y+vY) && pixel.value === 0 && reelIn === false) {
createPixel("hook",pixel.x,pixel.y+vX)
deployed = true
}
else if (!isEmpty(pixel.x,pixel.y+vY,true) && pixel.value === 0 && reelIn === false) {
var nextString = pixelMap[pixel.x][pixel.y+vX]
if (elements[nextString.element].state === "liquid") {
changePixel(nextString,"hook")
deployed = true
}
}
},
tempHigh: 412,
stateHigh: "fire",
burn: 5,
burnTime: 350,
burnInto: ["smoke","smoke","smoke","smoke","ash"],
category: "fishin",
state: "solid",
breakInto: "dust",
movable:false,
isString: true
}
elements.hook = {
color: "#71797e",
tick: function(pixel) {
if (!isEmpty(pixel.x,pixel.y-1,true) && reelIn === true) {
if (elements[pixelMap[pixel.x][pixel.y-1].element].isString === true || elements[pixelMap[pixel.x][pixel.y-1].element].id === elements.fish.id) {
deletePixel(pixel.x,pixel.y-1)
tryMove(pixel, pixel.x, pixel.y-1);
}
else if (elements[pixelMap[pixel.x][pixel.y-1].element].id === elements.fishing_rod.id) {
deletePixel(pixel.x,pixel.y)
reelIn = false
deployed = false
if (pixel.fishCaught) {
if (pixel.fishCaught === "fish") {
money += 1
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
else if (pixel.fishCaught === "salmon") {
money += 1
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
else if (pixel.fishCaught === "rainbow_trout") {
money += 2
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
else if (pixel.fishCaught === "bluefin_tuna") {
money += 2
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
else if (pixel.fishCaught === "albacore") {
money += 3
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
else if (pixel.fishCaught === "crab") {
money += 3
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
}
}
}
else if (!isEmpty(pixel.x+1,pixel.y,true) && reelIn === true) {
if (elements[pixelMap[pixel.x+1][pixel.y].element].id === elements.fishing_rod.id) {
deletePixel(pixel.x,pixel.y)
reelIn = false
deployed = false
if (pixel.fishCaught) {
if (pixel.fishCaught === "fish") {
money += 1
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
else if (pixel.fishCaught === "salmon") {
money += 1
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
else if (pixel.fishCaught === "rainbow_trout") {
money += 2
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
else if (pixel.fishCaught === "bluefin_tuna") {
money += 2
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
else if (pixel.fishCaught === "albacore") {
money += 3
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
else if (pixel.fishCaught === "crab") {
money += 3
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
}
}
}
else if (!isEmpty(pixel.x-1,pixel.y,true) && reelIn === true) {
if (elements[pixelMap[pixel.x-1][pixel.y].element].id === elements.fishing_rod.id) {
deletePixel(pixel.x,pixel.y)
reelIn = false
deployed = false
if (pixel.fishCaught) {
if (pixel.fishCaught === "fish") {
money += 1
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
else if (pixel.fishCaught === "salmon") {
money += 1
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
else if (pixel.fishCaught === "rainbow_trout") {
money += 2
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
else if (pixel.fishCaught === "bluefin_tuna") {
money += 2
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
else if (pixel.fishCaught === "albacore") {
money += 3
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
else if (pixel.fishCaught === "crab") {
money += 3
alert(`Wow! You caught a ${pixel.fishCaught}!`)
}
}
}
}
},
reactions: {
"fish": { elem2:null, attr1:{"fishCaught":"fish"}, chance:0.4, func: function(pixel){if (reelIn === false) { reelIn = true }}},
"salmon": { elem2:null, attr1:{"fishCaught":"salmon"}, chance:0.4, func: function(pixel){if (reelIn === false) { reelIn = true }}},
"bluefin_tuna": { elem2:null, attr1:{"fishCaught":"tuna"}, chance:0.4, func: function(pixel){if (reelIn === false) { reelIn = true }}},
"albacore": { elem2:null, attr1:{"fishCaught":"tuna"}, chance:0.4, func: function(pixel){if (reelIn === false) { reelIn = true }}},
"crab": { elem2:null, attr1:{"fishCaught":"crab"}, chance:0.4, func: function(pixel){if (reelIn === false) { reelIn = true }}},
},
tempHigh: 1455.5,
stateHigh: "molten_steel",
category: "fishin",
density: 7850,
conduct: 0.42,
hardness: 0.8,
movable: false,
}
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%8",
],
category: "fishin",
state: "solid",
conduct: 0.2,
eggColor: ["#e8961c","#faa82d"],
breakInto: "blood",
burn:20,
burnTime:200,
temp: 20,
tempHigh: 120,
stateHigh: "cooked_meat",
tempLow: -20,
stateLow: "frozen_fish",
reactions: {
"algae": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"kelp": { elem2:"water", chance:0.025, 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 },
},
desc: "Salmo salar"
}
elements.rainbow_trout = {
color: ["#D5A2B2", "#DDBBAB"],
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%7",
],
category: "fishin",
state: "solid",
conduct: 0.2,
eggColor: ["#e8961c","#faa82d"],
breakInto: "blood",
burn:20,
burnTime:200,
temp: 20,
tempHigh: 120,
stateHigh: "cooked_meat",
tempLow: -20,
stateLow: "frozen_fish",
reactions: {
"algae": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"kelp": { elem2:"water", chance:0.025, 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 },
},
desc: "Salmo salar"
}
elements.bluefin_tuna = {
color: ["#3D74BA", "#4A6FB1", "#4A6FB1", "#dadbdc"],
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%8",
],
category: "fishin",
state: "solid",
conduct: 0.2,
eggColor: ["#211316","#2C1A1D","#503734"],
breakInto: "blood",
burn:20,
burnTime:200,
temp: 20,
tempHigh: 120,
stateHigh: "cooked_meat",
tempLow: -20,
stateLow: "frozen_fish",
reactions: {
"algae": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"kelp": { elem2:"water", chance:0.025, 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 },
},
desc: "Thunnus thynnus"
}
elements.albacore = {
color: ["#dadbdc", "#b5b6b8", "#6b6d71"],
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%8",
],
category: "fishin",
state: "solid",
conduct: 0.2,
eggColor: ["#211316","#2C1A1D","#503734"],
breakInto: "blood",
burn:20,
burnTime:200,
temp: 20,
tempHigh: 120,
stateHigh: "cooked_meat",
tempLow: -20,
stateLow: "frozen_fish",
reactions: {
"algae": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"kelp": { elem2:"water", chance:0.025, 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 },
},
desc: "Thunnus alalunga"
}
elements.crab = {
color: "#bc5a4c",
behavior: [
"XX|XX|SW:sand,water,salt_water,dirty_water,primordial_soup,blood,infection,color_sand%1 AND M2%5",
"XX|XX|SW:sand,water,salt_water,dirty_water,primordial_soup,blood,infection,color_sand%3 AND M2%10 AND BO",
"XX|M1|SW:sand,water,salt_water,dirty_water,primordial_soup,blood,infection,color_sand%4",
],
reactions: {
"algae": { elem2:null, chance:0.025, func:behaviors.FEEDPIXEL },
"kelp": { elem2:"water", chance:0.025, 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 },
"spider": { 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 },
"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 },
"alcohol": { elem1:"meat", chance:0.001 },
"water": { elem2:"bubble", attr2:{"clone":"water"}, chance:0.001, oneway:true },
"salt_water": { elem2:"bubble", attr2:{"clone":"salt_water"}, chance:0.001, oneway:true },
"pool_water": { elem1:"meat", chance:0.001 },
"chlorine": { elem1:"meat", chance:0.1 },
"vinegar": { elem1:"meat", chance:0.001 },
},
foodNeed: 20,
temp: 20,
tempHigh: 120,
stateHigh: "meat",
tempLow: -20,
stateLow: ["frozen_meat","frozen_meat","frozen_meat","frozen_fish"],
category:"fishin",
breakInto: "blood",
burn:20,
burnTime:200,
state: "solid",
density: 963.7,
conduct: 0.2,
eggColor: "#d4b98f",
desc: "Carcinus maenas"
}
elements.fish.desc = "Gadus harenae"
elements.fish.category = "fishin"

29
mods/incinerators.js Normal file
View File

@ -0,0 +1,29 @@
elements.incinerator = {
color: "#e600ff",
desc: "A machine that works like the incinerate tool.",
behavior: [
"XX|HT:10000|XX",
"HT:10000|XX|HT:10000",
"XX|HT:10000|XX",
],
category: "machines",
state: "solid",
insulate:true,
};
elements.e_incinerator = {
color: "#9802a8",
desc: "It works like the incinerator but it needs power to work.",
behavior: behaviors.WALL,
hardness: 0.5,
conduct: 1,
behaviorOn: [
"XX|HT:10000|XX",
"HT:10000|XX|HT:10000",
"XX|HT:10000|XX",
],
name: "E-Incinerator",
category: "machines",
state: "solid",
insulate:true,
};