Create Legend Element
This commit is contained in:
parent
a81db24c56
commit
bd4a059f41
|
|
@ -0,0 +1,61 @@
|
||||||
|
elements.liquid_legend = {
|
||||||
|
|
||||||
|
color: "#13d644",
|
||||||
|
|
||||||
|
behavior: behaviors.LIQUID,
|
||||||
|
|
||||||
|
category: "energy_liquids",
|
||||||
|
|
||||||
|
viscosity: 43,
|
||||||
|
|
||||||
|
state: "liquid",
|
||||||
|
|
||||||
|
density: 720,
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
behaviors.liquid_legend.tick = function(pixel) {
|
||||||
|
|
||||||
|
if (tryMove(pixel, pixel.x, pixel.y+1)) {
|
||||||
|
|
||||||
|
console.log("Moved!");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
|
||||||
|
console.log("Couldn't move!")
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
if (!elements.liquid_legend.reactions) {
|
||||||
|
|
||||||
|
elements.liquid_legend.reactions = {}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
elements.liquid_legend.reactions.magma = { "elem1":null, "elem2":"armageddon" }
|
||||||
|
|
||||||
|
elements.liquid_legend.reactions.radiation = { "elem1":null, "elem2":"fallout" }
|
||||||
|
|
||||||
|
AfterLoad(function() {
|
||||||
|
|
||||||
|
6766
|
||||||
|
|
||||||
|
console.log("Hello World!");
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
if (enabledMods.includes("test.js")) {
|
||||||
|
|
||||||
|
runAfterLoad(function() {
|
||||||
|
|
||||||
|
6766
|
||||||
|
|
||||||
|
console.log("Hello World!");
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue