From 4c5699eaab1d69efeb83d3016d5354ed12dde103 Mon Sep 17 00:00:00 2001 From: JustAGenericUsername Date: Fri, 16 Feb 2024 21:05:00 -0500 Subject: [PATCH] textured materials --- mods/nousersthings.js | 115 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/mods/nousersthings.js b/mods/nousersthings.js index 003d7061..3e735d90 100644 --- a/mods/nousersthings.js +++ b/mods/nousersthings.js @@ -2081,6 +2081,41 @@ textures.transparency = [ "gggwww", "gggwww" ] +textures.steel = [ + "hHhhd", + "Hnnnd", + "hnnnd", + "hnnnD", + "dddDD" +] +textures.sponge = [ + "hddddnnddd", + "Ddhddhnhdd", + "ddDdnNnNdd", + "dddhnnnnnh", + "dhdNnhnnnN", + "nNnhnNnddd", + "dhnNnnddhd", + "dDnnnhddDd", + "dhnnnNdhdd", + "ddddnddDdd" +] +textures.copper = [ + "uuuuum", + "unhhnd", + "uhhnnD", + "uhnnHd", + "unnHnD", + "mdDdDD" +] +textures.gold = [ + "hnnndbHHHhhnbHHHh", + "nnndbhnnnnndDbnnn", + "nnddbnnnnnddDbnnn", + "dddbnnnddddDDDbnd", + "DDDbDDDDDDDDDDbDD", + "BBBBBBBBBBBBBBBBB" +] elements.transparency = { color: ["#d4d4d4", "#ffffff"], colorPattern: textures.transparency, @@ -2091,4 +2126,84 @@ elements.transparency = { behavior: behaviors.WALL, category: "special", state: "solid" +} +elements.textured_steel = { + color: ["#708196", "#8895ad", "#596B77", "#525D6B", "#404954"], + colorPattern: textures.steel, + colorKey: { + "h": "#708196", + "H": "#8895ad", + "n": "#596B77", + "d": "#525D6B", + "D": "#404954" + }, + behavior: behaviors.WALL, + category: "solids", + state: "solid", + tick: function(pixel){ + if (pixelTicks - pixel.start == 1){ + pixel.element = "steel" + } + } +} +elements.textured_sponge = { + color: ["#ccaa00", "#c1a100", "#967d00", "#b89a00", "#ae9100"], + colorPattern: textures.sponge, + colorKey: { + "n": "#ccaa00", + "N": "#c1a100", + "h": "#967d00", + "d": "#b89a00", + "D": "#ae9100" + }, + behavior: behaviors.WALL, + category: "solids", + state: "solid", + tick: function(pixel){ + if (pixelTicks - pixel.start == 1){ + pixel.element = "sponge" + } + } +} +elements.textured_copper = { + color: ["#772F22", "#AB533F", "#9E3F2D", "#9E3F2D", "#4C1C11"], + colorPattern: textures.copper, + colorKey: { + "u": "#772F22", + "H": "#AB533F", + "h": "#C0725A", + "n": "#9E3F2D", + "D": "#4C1C11", + "d": "#622516", + "m": "#712C1E" + }, + behavior: behaviors.WALL, + category: "solids", + state: "solid", + tick: function(pixel){ + if (pixelTicks - pixel.start == 1){ + pixel.element = "copper" + } + } +} +elements.textured_gold = { + color: ["#E4B038", "#FFCA59", "#BF8A18", "#7F5A10", "#674611"], + colorPattern: textures.gold, + colorKey: { + "h": "#FFCA59", + "H": "#FFFFCC", + "n": "#E4B038", + "B": "#513412", + "b": "#674611", + "d": "#BF8A18", + "D": "#7F5A10" + }, + behavior: behaviors.WALL, + category: "solids", + state: "solid", + tick: function(pixel){ + if (pixelTicks - pixel.start == 1){ + pixel.element = "gold" + } + } } \ No newline at end of file