Update and rename mods/modM.js to ExtraMachines.js
This commit is contained in:
parent
871d4c8f01
commit
590d64c4fe
|
|
@ -12,7 +12,7 @@ elements.heatSensor = {
|
||||||
let itemA = "steam";
|
let itemA = "steam";
|
||||||
elements.turbine = {
|
elements.turbine = {
|
||||||
behavior: behaviors.WALL,
|
behavior: behaviors.WALL,
|
||||||
behavior: behaviors.DELETE,
|
|
||||||
color: "#826c6e",
|
color: "#826c6e",
|
||||||
tick: function(pixel) {
|
tick: function(pixel) {
|
||||||
if(pixel.start == pixelTicks){
|
if(pixel.start == pixelTicks){
|
||||||
|
|
@ -26,6 +26,7 @@ elements.turbine = {
|
||||||
if (!isEmpty(x,y,true)) {
|
if (!isEmpty(x,y,true)) {
|
||||||
var sensed = pixelMap[x][y];
|
var sensed = pixelMap[x][y];
|
||||||
if (sensed.element == pixel.clone) {
|
if (sensed.element == pixel.clone) {
|
||||||
|
deletePixel(x,y);
|
||||||
pixel.charge = 5;
|
pixel.charge = 5;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -45,8 +46,10 @@ elements.turbine = {
|
||||||
elements.coal = {
|
elements.coal = {
|
||||||
color: "#3d3c39",
|
color: "#3d3c39",
|
||||||
behavior: behaviors.POWDER,
|
behavior: behaviors.POWDER,
|
||||||
category: "land",
|
category: "powders",
|
||||||
state: "solid",
|
state: "solid",
|
||||||
|
density: 208,
|
||||||
|
conduct: 0.001
|
||||||
|
|
||||||
tick: function(pixel) {
|
tick: function(pixel) {
|
||||||
if (pixel.temp > 900 && !pixel.burning) {
|
if (pixel.temp > 900 && !pixel.burning) {
|
||||||
|
|
@ -68,6 +71,9 @@ elements.coal = {
|
||||||
behavior: behaviors.POWDER,
|
behavior: behaviors.POWDER,
|
||||||
category: "land",
|
category: "land",
|
||||||
state: "solid",
|
state: "solid",
|
||||||
|
stain: 1,
|
||||||
|
density: 190,
|
||||||
|
conduct: 0.001
|
||||||
|
|
||||||
tick: function(pixel) {
|
tick: function(pixel) {
|
||||||
if (pixel.temp > 900 && !pixel.burning) {
|
if (pixel.temp > 900 && !pixel.burning) {
|
||||||
|
|
@ -78,7 +84,7 @@ elements.coal = {
|
||||||
|
|
||||||
tempHigh:2000,
|
tempHigh:2000,
|
||||||
stateHigh: "fire",
|
stateHigh: "fire",
|
||||||
hardness: 0.85,
|
hardness: 0.3,
|
||||||
burn: 100,
|
burn: 100,
|
||||||
burnTime: 3500,
|
burnTime: 3500,
|
||||||
};
|
};
|
||||||
|
|
@ -122,6 +128,7 @@ elements.solar_panel = {
|
||||||
if (!isEmpty(x,y,true)) {
|
if (!isEmpty(x,y,true)) {
|
||||||
var sensed = pixelMap[x][y];
|
var sensed = pixelMap[x][y];
|
||||||
if (sensed.element == pixel.clone) {
|
if (sensed.element == pixel.clone) {
|
||||||
|
deletePixel(x,y);
|
||||||
pixel.charge = 5;
|
pixel.charge = 5;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -138,7 +145,7 @@ elements.solar_panel = {
|
||||||
};
|
};
|
||||||
|
|
||||||
elements.titanium = {
|
elements.titanium = {
|
||||||
conduct: 1,
|
conduct: 0,
|
||||||
color: "#a1ada5",
|
color: "#a1ada5",
|
||||||
tempHigh:3000,
|
tempHigh:3000,
|
||||||
stateHigh: "molten_titanium",
|
stateHigh: "molten_titanium",
|
||||||
|
|
@ -150,12 +157,35 @@ elements.titanium = {
|
||||||
};
|
};
|
||||||
|
|
||||||
elements.molten_titanium = {
|
elements.molten_titanium = {
|
||||||
conduct: 1,
|
conduct: 0,
|
||||||
color: "#d16e04",
|
color: "#d16e04",
|
||||||
tempLow:2999,
|
tempLow:2999,
|
||||||
stateLow: "titanium",
|
stateLow: "titanium",
|
||||||
category: "solids",
|
category: "states",
|
||||||
state: "soild",
|
state: "soild",
|
||||||
density: 792,
|
density: 792,
|
||||||
behavior: behaviors.MOLTEN,
|
behavior: behaviors.MOLTEN,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
elements.solid_coal = {
|
||||||
|
color: "#3d3c39",
|
||||||
|
behavior: behaviors.WALL,
|
||||||
|
category: "land",
|
||||||
|
state: "solid",
|
||||||
|
breakInto: "coal_dust",
|
||||||
|
density: 380,
|
||||||
|
conduct: 0.001
|
||||||
|
|
||||||
|
tick: function(pixel) {
|
||||||
|
if (pixel.temp > 900 && !pixel.burning) {
|
||||||
|
pixel.burning = true;
|
||||||
|
pixel.burnStart = pixelTicks;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
tempHigh:3000,
|
||||||
|
stateHigh: "fire",
|
||||||
|
hardness: 0.85,
|
||||||
|
burn: 100,
|
||||||
|
burnTime: 3500,
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue