diff --git a/mods/more_gold.js b/mods/more_gold.js index 0e7d944d..ec98ce31 100644 --- a/mods/more_gold.js +++ b/mods/more_gold.js @@ -15,4 +15,26 @@ elements.molten_green_gold = { density: 13000, conduct: 0.87, Hidden: true -}; \ No newline at end of file +}; +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", +},