Update 1.1 more_gold.js

adds gold tree

Signed-off-by: HACKERPRO908 <130792075+HACKERPRO908@users.noreply.github.com>
This commit is contained in:
HACKERPRO908 2024-01-20 08:13:24 +00:00 committed by GitHub
parent 0c84fd04aa
commit 85ba90bef5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 23 additions and 1 deletions

View File

@ -15,4 +15,26 @@ elements.molten_green_gold = {
density: 13000,
conduct: 0.87,
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",
},