Update 1.1 more_gold.js
adds gold tree Signed-off-by: HACKERPRO908 <130792075+HACKERPRO908@users.noreply.github.com>
This commit is contained in:
parent
0c84fd04aa
commit
85ba90bef5
|
|
@ -15,4 +15,26 @@ elements.molten_green_gold = {
|
||||||
density: 13000,
|
density: 13000,
|
||||||
conduct: 0.87,
|
conduct: 0.87,
|
||||||
Hidden: true
|
Hidden: true
|
||||||
};
|
};
|
||||||
|
elements.gold_tree = {
|
||||||
|
color: "#f2e013",
|
||||||
|
tick: function (pixel) {
|
||||||
|
if (pixel.h > 0 && pixelTicks % (50+pixel.h) === 0) {
|
||||||
|
|
||||||
|
if (isEmpty(pixel.x-1,pixel.y)) {
|
||||||
|
createPixel("gold",pixel.x-1,pixel.y);
|
||||||
|
pixelMap[pixel.x-1][pixel.y].h = pixel.h-2;
|
||||||
|
}
|
||||||
|
if (isEmpty(pixel.x+1,pixel.y)) {
|
||||||
|
createPixel("gold",pixel.x+1,pixel.y);
|
||||||
|
pixelMap[pixel.x+1][pixel.y].h = pixel.h-2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
doDefaults(pixel);
|
||||||
|
},
|
||||||
|
category:"solid",
|
||||||
|
breakInto: "gold",
|
||||||
|
state: "solid",
|
||||||
|
density: 8000,
|
||||||
|
seed: "gold_coin",
|
||||||
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue