sandboxels/mods/building.js

119 lines
2.8 KiB
JavaScript
Raw Normal View History

Sandboxels v1.9.5 - Update of the Summer [Version 1.9.5 - May 15, 2024 - Update of the Summer] + Mixer + Grinder + Kelp + Freeze Ray + Cloth, made from glueing Feathers + Aurora Borealis, when Protons excite Oxygen high up [Quality of Life] + Mobile Shift button + Intensified tools and line drawing on mobile + Canvas Size setting + Lookup tool can have a bigger radius [Changes] + Tornado Fire, Sand, and Water variant + Tornaodes, Earthquakes, and Tsunamis can merge ~ Tsunamis no longer clone molten and other dense liquids + Sand and Ash in Tornadoes create Cloud variants + Tornadoes are immune to explosions + Disasters are immune to Acid + Bless can remove disasters + Bless turns Rotten Cheese to a blue variant + Pipes retain color in saves + Silver absorbs Neutrons (Nuclear control rods) ~ Room Temp tool now uses air temperature in Settings ~ Unhid Lattice ~ Oil burns slower + Rocks will trample Grass + Glue can convert Cellulose to Paper + Fleas will eat Plant + Salt powder slowly kills Plant + Alcohol Gas ignites at high temperatures + Liquid Light is immune to Acid + Cement neutralizes Acid ~ Gallium reaction breaks down some Aluminum again + Charcoal breaks down at extreme temperatures ~ Hydrogen reaction now depletes Sulfur ~ Water reaction now depletes Caramel + Juice Ice breaks into Slush + Ink mixes with Dye + Sugar dissolves in Juice + Fruit Milk dissolves in Tea + Nut Milk can wet soil + Humans burn on the Sun + Humans steal Diamonds + Bees and Cyanide irritate Skin + Mycelium breaks down dead matter + Mycelium and Hyphae will rot Meat + Rats eat Cured Meat + Ketchup-Baking Soda reaction is more fizzy ~ Snails turn to Limestone instead of Quicklime + Slaked Lime-Seltzer reaction + Limestone-Acid reaction creates byproducts ~ Cooled Quicklime forms a Limestone layer ~ Quicklime-Water reaction produces more heat ~ Lowered Quicklime melting point + Hot Quicklime produces Flash ~ Potassium-Chlorine reaction produces Fire + Potassium Salt reacts with hot Sodium + Potassium Gas (Hidden) + Bless cleans stains left by reactions + Bless cures Meat + Bless removes Dust and Grease ~ Improved Dead Plant coalification ~ Rockets no longer expel Cloners + Lattice reacts with Cold Fire + Gray Goo can melt + Virus is killed by Liquid Light + Static mouseover effect + Static breaks into Malware ~ Moved Ball to Special ~ Moved Pop when unhidden ~ Border element button shows stripes ~ Recolored Glitter ~ Recolored fermented Grape ~ Hid Clone Powder + Potassium Salt alias 'Potassium Chloride' ~ Tweaked electricity for low-conductivity elements ~ Updated Settings menu + Maximum pixel count, with red indicator ~ Optimized very large explosions [Bug Fixes] ~ Fixed: Gaps when drawing fast on mobile ~ Fixed: Middle clicking empty space causes freeze ~ Fixed: Bless and Rock Wall can't be drawn in a line ~ Fixed: Gapes when drawing Bless and Rock Wall fast ~ Fixed: Bless and Rock Wall don't display info ~ Fixed: Bless and Rock can't use Replace Mode ~ Fixed: Brown Dwarf Suns can emit Light when eclipsed ~ Fixed: Language selector doesn't update on refresh ~ Fixed: Mouse size continues increasing past max size ~ Fixed: Uncharge tool doesn't put out LEDs ~ Fixed: Water extinguishes Greek Fire and Firework over and over ~ Fixed: Dragging at tick 0 freezes pixels in place ~ Fixed: Evergreen info page displays NaN ~ Fixed: Spawned Molten Magnesium behaves strange when heated ~ Fixed: Copper Sulfate freezing point is too low ~ Fixed: Stained Glass doesn't retain color when exploded ~ Fixed: Stained Glass placed at tick 0 doesn't retain color ~ Fixed: Antimatter and Antimatter Bomb trigger each other ~ Fixed: Strange Matter destroys Cloners ~ Fixed: Nothing can clone Wire ~ Fixed: TPS prompt displays error after canceling ~ Fixed: Decimal coordinates when resetting with odd canvas size ~ Fixed: No double state change when spawning at high airTemp ~ Fixed: Pixels retain clone property when changed ~ Fixed: Crash when mod deletes Sand ~ Fixed: Elements with single-color arrays have black buttons ~ Fixed: 'perTick' error when loading page ~ Fixed: 'fillStyle' error when loading page [Technical] + Behavior grids bigger than 3x3 are centered + Behavior grids can be smaller than 3x3 + Moddable behavior rules ~ Behavior rules are stored in new behaviorRules object + SM (Smash) behavior rule + MX (Mix) behavior rule (MX:true to mix solids) + CC (Change Color) can now take a target, e.g. CC:sand>#00ffff ~ CC (Change Color) no longer applies grain + EX (Explode) follows element 'ignore' property ~ Placed Paint and Shock tools are removed by Unpaint and Uncharge
2024-05-15 12:53:21 -04:00
elements.mud_brick = {
color: "#8a6249",
colorPattern: textures.BRICK,
colorKey: {
Version 1.10.2 - December 15, 2024 - Birthday III [Version 1.10.2 - December 15, 2024 - Birthday III] + Cheese Powder, from breaking Cheese + Chocolate Powder, from breaking Chocolate [Changes] ~ Drawing lines shows a preview of pixel placement ~ Updated Brick texture for better shading ~ LEDs, Light Bulbs, and Fireflies can be painted + Humans panic when seeing dangerous things, like Fire + Humans change direction after hitting walls ~ Humans eat more consistently ~ Humans have a panic limit ~ Humans no longer eat Human meat ~ Smash tool moves pixels if they can't be broken + Steam decomposes at extreme temperatures + Ruins has a Brick texture ~ Brick Rubble no longer breaks into Dust ~ Recolored Brick Rubble + Glass has a light border ~ Fancy textures have grain, besides Glass + Rock Wall can be made by gluing Rocks + Brick can be made by gluing Brick Rubble + Mudstone can be made by gluing Dirt + Packed Sand can be made by Sand + Sponges can dry Mud and Wet Sand + Clay can be made by dissolving Wet Sand in Acid + Cement can be made with Clay and Quicklime ~ Quicklime no longer turns into Limestone on its own + Plastic breaks into Beads + Charcoal slowly stains solids + Animals can spawn Eggs or offspring in Water + Seeds planted under soil will rise + Birds eat Spiders and their Webs + Rocks destroy Webs + Frogs release Steam when cooked + Worms break down Fiber ~ Worms compost some Sawdust into Dirt + Soap kills Snails and Slugs + Soap removes Slime + Alcohol kills Flower Pistils + Mercury kills Algae ~ Sap boils into some Steam ~ Bread is less flammable + Ammonia affects Wheat + Poison dirties Salt Water, Sugar Water, and Seltzer + Water on burning Oil will explode + Bleach reacts with Nut Oil and Grease + Baking Soda reacts with Soap + Copper Sulfate kills Spiders + Copper Sulfate stains Zinc + Bless removes Heat Ray + Plague makes Heads green + Plague destroys Skin + Hair absorbs some Water ~ Breaking Balloons makes some Pop ~ Cheese flows slower ~ Coffee Grounds in Milk brew into Coffee instead ~ Mushroom Spores no longer break ~ Acid Clouds don't precipitate when too hot or cold ~ Border can be painted ~ Tweaked Charcoal heat color ~ Moved Light Bulb to after LEDs + Midas Touch turns Paper green ~ Midas Touch turns Humans into solid Gold instead of Coins + Wall alias 'Solid' + Mayo alias 'Mayonnaise' + Alcohol alias 'Ethanol' + Unbreakable elements are clarified in element info ~ Screenshots download with name of current save ~ Pixel count turns red when all canvas sizes are full ~ Log messages have a black shadow to read on bright backgrounds ~ TPS dialog displays minimum and maximum [Bug Fixes] ~ Fixed: Replace Mode causes pixels to float while placing ~ Fixed: Detached Heads and dead Humans can eat food ~ Fixed: Pixel alpha isn't set from element properties on creation ~ Fixed: Molten Thermite continues to heat when not burning ~ Fixed: Prop tool can't set value when existing value is null ~ Fixed: Unbreakable pixels can burn away when using Prop tool (Perma-burning!!!) ~ Fixed: Pixels with burnt states never burn when using Prop tool ~ Fixed: Prop tool doesn't retain "0" value on next dialog ~ Fixed: Prop tool doesn't handle changing "x" and "y" properties ~ Fixed: Placing Fire on insulative pixels heats them ~ Fixed: Burning heats insulative pixels ~ Fixed: Rays, Bless, Radiation, and some Bombs change insulative pixel temperature ~ Fixed: Stink Bugs aren't properly killed by Frogs, Sap, Copper Sulfate, and Borax ~ Fixed: Erasing with Lookup selected will only erase 1x1 ~ Fixed: Erasing fast with Pick or Lookup selected will leave gaps ~ Fixed: Hail doesn't conduct heat ~ Fixed: Hail cannot break solids without a defined state ~ Fixed: Breaking Humans eventually creates Sand and Cement ~ Fixed: Element buttons arranged in weird columns after certain issues ~ Fixed: Ball doesn't have density and floats on gases [Technical] + BORDER render preset + 'grain' element property + 'toolHoverStat' element property, function that takes the hovered pixel while selected + 'buttonColor' element property ~ Humans now eat any element with true 'isFood' property ~ Pixels with 0% alpha won't appear in Basic View ~ LEDs with 0% alpha will only appear when powered + releaseElement function has option to replace liquids ~ Fixed: lineCoords function returns duplicate values + empty.js mod for browser JavaScript overriding
2024-12-15 11:45:52 -05:00
"l": "#986c51",
Sandboxels v1.9.5 - Update of the Summer [Version 1.9.5 - May 15, 2024 - Update of the Summer] + Mixer + Grinder + Kelp + Freeze Ray + Cloth, made from glueing Feathers + Aurora Borealis, when Protons excite Oxygen high up [Quality of Life] + Mobile Shift button + Intensified tools and line drawing on mobile + Canvas Size setting + Lookup tool can have a bigger radius [Changes] + Tornado Fire, Sand, and Water variant + Tornaodes, Earthquakes, and Tsunamis can merge ~ Tsunamis no longer clone molten and other dense liquids + Sand and Ash in Tornadoes create Cloud variants + Tornadoes are immune to explosions + Disasters are immune to Acid + Bless can remove disasters + Bless turns Rotten Cheese to a blue variant + Pipes retain color in saves + Silver absorbs Neutrons (Nuclear control rods) ~ Room Temp tool now uses air temperature in Settings ~ Unhid Lattice ~ Oil burns slower + Rocks will trample Grass + Glue can convert Cellulose to Paper + Fleas will eat Plant + Salt powder slowly kills Plant + Alcohol Gas ignites at high temperatures + Liquid Light is immune to Acid + Cement neutralizes Acid ~ Gallium reaction breaks down some Aluminum again + Charcoal breaks down at extreme temperatures ~ Hydrogen reaction now depletes Sulfur ~ Water reaction now depletes Caramel + Juice Ice breaks into Slush + Ink mixes with Dye + Sugar dissolves in Juice + Fruit Milk dissolves in Tea + Nut Milk can wet soil + Humans burn on the Sun + Humans steal Diamonds + Bees and Cyanide irritate Skin + Mycelium breaks down dead matter + Mycelium and Hyphae will rot Meat + Rats eat Cured Meat + Ketchup-Baking Soda reaction is more fizzy ~ Snails turn to Limestone instead of Quicklime + Slaked Lime-Seltzer reaction + Limestone-Acid reaction creates byproducts ~ Cooled Quicklime forms a Limestone layer ~ Quicklime-Water reaction produces more heat ~ Lowered Quicklime melting point + Hot Quicklime produces Flash ~ Potassium-Chlorine reaction produces Fire + Potassium Salt reacts with hot Sodium + Potassium Gas (Hidden) + Bless cleans stains left by reactions + Bless cures Meat + Bless removes Dust and Grease ~ Improved Dead Plant coalification ~ Rockets no longer expel Cloners + Lattice reacts with Cold Fire + Gray Goo can melt + Virus is killed by Liquid Light + Static mouseover effect + Static breaks into Malware ~ Moved Ball to Special ~ Moved Pop when unhidden ~ Border element button shows stripes ~ Recolored Glitter ~ Recolored fermented Grape ~ Hid Clone Powder + Potassium Salt alias 'Potassium Chloride' ~ Tweaked electricity for low-conductivity elements ~ Updated Settings menu + Maximum pixel count, with red indicator ~ Optimized very large explosions [Bug Fixes] ~ Fixed: Gaps when drawing fast on mobile ~ Fixed: Middle clicking empty space causes freeze ~ Fixed: Bless and Rock Wall can't be drawn in a line ~ Fixed: Gapes when drawing Bless and Rock Wall fast ~ Fixed: Bless and Rock Wall don't display info ~ Fixed: Bless and Rock can't use Replace Mode ~ Fixed: Brown Dwarf Suns can emit Light when eclipsed ~ Fixed: Language selector doesn't update on refresh ~ Fixed: Mouse size continues increasing past max size ~ Fixed: Uncharge tool doesn't put out LEDs ~ Fixed: Water extinguishes Greek Fire and Firework over and over ~ Fixed: Dragging at tick 0 freezes pixels in place ~ Fixed: Evergreen info page displays NaN ~ Fixed: Spawned Molten Magnesium behaves strange when heated ~ Fixed: Copper Sulfate freezing point is too low ~ Fixed: Stained Glass doesn't retain color when exploded ~ Fixed: Stained Glass placed at tick 0 doesn't retain color ~ Fixed: Antimatter and Antimatter Bomb trigger each other ~ Fixed: Strange Matter destroys Cloners ~ Fixed: Nothing can clone Wire ~ Fixed: TPS prompt displays error after canceling ~ Fixed: Decimal coordinates when resetting with odd canvas size ~ Fixed: No double state change when spawning at high airTemp ~ Fixed: Pixels retain clone property when changed ~ Fixed: Crash when mod deletes Sand ~ Fixed: Elements with single-color arrays have black buttons ~ Fixed: 'perTick' error when loading page ~ Fixed: 'fillStyle' error when loading page [Technical] + Behavior grids bigger than 3x3 are centered + Behavior grids can be smaller than 3x3 + Moddable behavior rules ~ Behavior rules are stored in new behaviorRules object + SM (Smash) behavior rule + MX (Mix) behavior rule (MX:true to mix solids) + CC (Change Color) can now take a target, e.g. CC:sand>#00ffff ~ CC (Change Color) no longer applies grain + EX (Explode) follows element 'ignore' property ~ Placed Paint and Shock tools are removed by Unpaint and Uncharge
2024-05-15 12:53:21 -04:00
"r": "#8a6249",
Version 1.10.2 - December 15, 2024 - Birthday III [Version 1.10.2 - December 15, 2024 - Birthday III] + Cheese Powder, from breaking Cheese + Chocolate Powder, from breaking Chocolate [Changes] ~ Drawing lines shows a preview of pixel placement ~ Updated Brick texture for better shading ~ LEDs, Light Bulbs, and Fireflies can be painted + Humans panic when seeing dangerous things, like Fire + Humans change direction after hitting walls ~ Humans eat more consistently ~ Humans have a panic limit ~ Humans no longer eat Human meat ~ Smash tool moves pixels if they can't be broken + Steam decomposes at extreme temperatures + Ruins has a Brick texture ~ Brick Rubble no longer breaks into Dust ~ Recolored Brick Rubble + Glass has a light border ~ Fancy textures have grain, besides Glass + Rock Wall can be made by gluing Rocks + Brick can be made by gluing Brick Rubble + Mudstone can be made by gluing Dirt + Packed Sand can be made by Sand + Sponges can dry Mud and Wet Sand + Clay can be made by dissolving Wet Sand in Acid + Cement can be made with Clay and Quicklime ~ Quicklime no longer turns into Limestone on its own + Plastic breaks into Beads + Charcoal slowly stains solids + Animals can spawn Eggs or offspring in Water + Seeds planted under soil will rise + Birds eat Spiders and their Webs + Rocks destroy Webs + Frogs release Steam when cooked + Worms break down Fiber ~ Worms compost some Sawdust into Dirt + Soap kills Snails and Slugs + Soap removes Slime + Alcohol kills Flower Pistils + Mercury kills Algae ~ Sap boils into some Steam ~ Bread is less flammable + Ammonia affects Wheat + Poison dirties Salt Water, Sugar Water, and Seltzer + Water on burning Oil will explode + Bleach reacts with Nut Oil and Grease + Baking Soda reacts with Soap + Copper Sulfate kills Spiders + Copper Sulfate stains Zinc + Bless removes Heat Ray + Plague makes Heads green + Plague destroys Skin + Hair absorbs some Water ~ Breaking Balloons makes some Pop ~ Cheese flows slower ~ Coffee Grounds in Milk brew into Coffee instead ~ Mushroom Spores no longer break ~ Acid Clouds don't precipitate when too hot or cold ~ Border can be painted ~ Tweaked Charcoal heat color ~ Moved Light Bulb to after LEDs + Midas Touch turns Paper green ~ Midas Touch turns Humans into solid Gold instead of Coins + Wall alias 'Solid' + Mayo alias 'Mayonnaise' + Alcohol alias 'Ethanol' + Unbreakable elements are clarified in element info ~ Screenshots download with name of current save ~ Pixel count turns red when all canvas sizes are full ~ Log messages have a black shadow to read on bright backgrounds ~ TPS dialog displays minimum and maximum [Bug Fixes] ~ Fixed: Replace Mode causes pixels to float while placing ~ Fixed: Detached Heads and dead Humans can eat food ~ Fixed: Pixel alpha isn't set from element properties on creation ~ Fixed: Molten Thermite continues to heat when not burning ~ Fixed: Prop tool can't set value when existing value is null ~ Fixed: Unbreakable pixels can burn away when using Prop tool (Perma-burning!!!) ~ Fixed: Pixels with burnt states never burn when using Prop tool ~ Fixed: Prop tool doesn't retain "0" value on next dialog ~ Fixed: Prop tool doesn't handle changing "x" and "y" properties ~ Fixed: Placing Fire on insulative pixels heats them ~ Fixed: Burning heats insulative pixels ~ Fixed: Rays, Bless, Radiation, and some Bombs change insulative pixel temperature ~ Fixed: Stink Bugs aren't properly killed by Frogs, Sap, Copper Sulfate, and Borax ~ Fixed: Erasing with Lookup selected will only erase 1x1 ~ Fixed: Erasing fast with Pick or Lookup selected will leave gaps ~ Fixed: Hail doesn't conduct heat ~ Fixed: Hail cannot break solids without a defined state ~ Fixed: Breaking Humans eventually creates Sand and Cement ~ Fixed: Element buttons arranged in weird columns after certain issues ~ Fixed: Ball doesn't have density and floats on gases [Technical] + BORDER render preset + 'grain' element property + 'toolHoverStat' element property, function that takes the hovered pixel while selected + 'buttonColor' element property ~ Humans now eat any element with true 'isFood' property ~ Pixels with 0% alpha won't appear in Basic View ~ LEDs with 0% alpha will only appear when powered + releaseElement function has option to replace liquids ~ Fixed: lineCoords function returns duplicate values + empty.js mod for browser JavaScript overriding
2024-12-15 11:45:52 -05:00
"d": "#7f5943",
Sandboxels v1.9.5 - Update of the Summer [Version 1.9.5 - May 15, 2024 - Update of the Summer] + Mixer + Grinder + Kelp + Freeze Ray + Cloth, made from glueing Feathers + Aurora Borealis, when Protons excite Oxygen high up [Quality of Life] + Mobile Shift button + Intensified tools and line drawing on mobile + Canvas Size setting + Lookup tool can have a bigger radius [Changes] + Tornado Fire, Sand, and Water variant + Tornaodes, Earthquakes, and Tsunamis can merge ~ Tsunamis no longer clone molten and other dense liquids + Sand and Ash in Tornadoes create Cloud variants + Tornadoes are immune to explosions + Disasters are immune to Acid + Bless can remove disasters + Bless turns Rotten Cheese to a blue variant + Pipes retain color in saves + Silver absorbs Neutrons (Nuclear control rods) ~ Room Temp tool now uses air temperature in Settings ~ Unhid Lattice ~ Oil burns slower + Rocks will trample Grass + Glue can convert Cellulose to Paper + Fleas will eat Plant + Salt powder slowly kills Plant + Alcohol Gas ignites at high temperatures + Liquid Light is immune to Acid + Cement neutralizes Acid ~ Gallium reaction breaks down some Aluminum again + Charcoal breaks down at extreme temperatures ~ Hydrogen reaction now depletes Sulfur ~ Water reaction now depletes Caramel + Juice Ice breaks into Slush + Ink mixes with Dye + Sugar dissolves in Juice + Fruit Milk dissolves in Tea + Nut Milk can wet soil + Humans burn on the Sun + Humans steal Diamonds + Bees and Cyanide irritate Skin + Mycelium breaks down dead matter + Mycelium and Hyphae will rot Meat + Rats eat Cured Meat + Ketchup-Baking Soda reaction is more fizzy ~ Snails turn to Limestone instead of Quicklime + Slaked Lime-Seltzer reaction + Limestone-Acid reaction creates byproducts ~ Cooled Quicklime forms a Limestone layer ~ Quicklime-Water reaction produces more heat ~ Lowered Quicklime melting point + Hot Quicklime produces Flash ~ Potassium-Chlorine reaction produces Fire + Potassium Salt reacts with hot Sodium + Potassium Gas (Hidden) + Bless cleans stains left by reactions + Bless cures Meat + Bless removes Dust and Grease ~ Improved Dead Plant coalification ~ Rockets no longer expel Cloners + Lattice reacts with Cold Fire + Gray Goo can melt + Virus is killed by Liquid Light + Static mouseover effect + Static breaks into Malware ~ Moved Ball to Special ~ Moved Pop when unhidden ~ Border element button shows stripes ~ Recolored Glitter ~ Recolored fermented Grape ~ Hid Clone Powder + Potassium Salt alias 'Potassium Chloride' ~ Tweaked electricity for low-conductivity elements ~ Updated Settings menu + Maximum pixel count, with red indicator ~ Optimized very large explosions [Bug Fixes] ~ Fixed: Gaps when drawing fast on mobile ~ Fixed: Middle clicking empty space causes freeze ~ Fixed: Bless and Rock Wall can't be drawn in a line ~ Fixed: Gapes when drawing Bless and Rock Wall fast ~ Fixed: Bless and Rock Wall don't display info ~ Fixed: Bless and Rock can't use Replace Mode ~ Fixed: Brown Dwarf Suns can emit Light when eclipsed ~ Fixed: Language selector doesn't update on refresh ~ Fixed: Mouse size continues increasing past max size ~ Fixed: Uncharge tool doesn't put out LEDs ~ Fixed: Water extinguishes Greek Fire and Firework over and over ~ Fixed: Dragging at tick 0 freezes pixels in place ~ Fixed: Evergreen info page displays NaN ~ Fixed: Spawned Molten Magnesium behaves strange when heated ~ Fixed: Copper Sulfate freezing point is too low ~ Fixed: Stained Glass doesn't retain color when exploded ~ Fixed: Stained Glass placed at tick 0 doesn't retain color ~ Fixed: Antimatter and Antimatter Bomb trigger each other ~ Fixed: Strange Matter destroys Cloners ~ Fixed: Nothing can clone Wire ~ Fixed: TPS prompt displays error after canceling ~ Fixed: Decimal coordinates when resetting with odd canvas size ~ Fixed: No double state change when spawning at high airTemp ~ Fixed: Pixels retain clone property when changed ~ Fixed: Crash when mod deletes Sand ~ Fixed: Elements with single-color arrays have black buttons ~ Fixed: 'perTick' error when loading page ~ Fixed: 'fillStyle' error when loading page [Technical] + Behavior grids bigger than 3x3 are centered + Behavior grids can be smaller than 3x3 + Moddable behavior rules ~ Behavior rules are stored in new behaviorRules object + SM (Smash) behavior rule + MX (Mix) behavior rule (MX:true to mix solids) + CC (Change Color) can now take a target, e.g. CC:sand>#00ffff ~ CC (Change Color) no longer applies grain + EX (Explode) follows element 'ignore' property ~ Placed Paint and Shock tools are removed by Unpaint and Uncharge
2024-05-15 12:53:21 -04:00
"w": "#634933"},
behavior: behaviors.WALL,
category: "solids",
state: "solid",
tempHigh: 1200,
stateHigh: "molten_dirt",
hardness: 0.33,
breakInto: "dirt"
}
var materials = ["brick","concrete","wood","glass","steel"];
elements.tower = {
color: [],
behavior: [
"XX|XX|XX",
"XX|CH:"+materials.join("_tower,")+"_tower|XX",
"XX|XX|XX",
],
category: "spawners",
maxSize: 1,
cooldown: defaultCooldown,
}
materials.forEach((elem) => {
if (Array.isArray(elements[elem].color)) {
elements.tower.color.push(elements[elem].color[0]);
}
else {
elements.tower.color.push(elements[elem].color);
}
elements[elem+"_tower"] = {
color: elements[elem].color,
behavior: [
`XX|M2|XX`,
`XX|C2:${elem}_room|XX`,
`XX|M1|XX`,
],
maxSize: 1,
cooldown: defaultCooldown,
category: "spawners"
}
elements[elem+"_room"] = {
color: elements[elem].color,
behavior: [
`XX|XX|CR:${elem}_room,${elem}_room,${elem}_room,${elem}_room,tower_antenna,wood_roof%80|XX|XX`,
`XX|XX|XX|XX|XX`,
`CR:${elem}|CR:${elem}|CR:${elem}|CR:${elem}|CR:${elem}`,
`CR:glass|XX|XX|CR:human%25|CR:glass`,
`CR:glass|CR:human%25|DL|CR:human%25|CR:glass`,
`CR:${elem}|XX|XX|XX|CR:${elem}`,
`CR:${elem}|CR:${elem}|CR:${elem}|CR:${elem}|CR:${elem}`,
`XX|XX|XX|XX|XX`,
`XX|XX|XX|XX|XX`
],
maxSize: 1,
cooldown: defaultCooldown,
category: "spawners",
hidden: true
}
})
elements.tower.color = elements.tower.color.sort();
elements.tower_antenna = {
color: "#bababa",
behavior: [
"CR:steel%30",
"CR:steel",
"CR:steel",
"CR:steel",
"CH:steel",
"CR:steel",
"XX",
"XX",
"XX",
"XX",
],
maxSize: 1,
cooldown: defaultCooldown,
category: "spawners",
hidden: true
}
elements.wood_roof = {
color: "#965829",
behavior: [
"XX|XX|XX|XX|XX|XX|XX",
"XX|XX|XX|CR:wood|XX|XX|XX",
"XX|XX|CR:wood|CH:wood|CR:wood|XX|XX",
"XX|CR:wood|XX|XX|XX|CR:wood|XX",
"CR:wood|XX|XX|XX|XX|XX|CR:wood",
],
maxSize: 1,
cooldown: defaultCooldown,
category: "spawners",
hidden: true
}
worldgentypes.city = {
layers: [
[0.95, "grass"],
[0.50, "dirt"],
[0.05, "rock"],
[0, "basalt"],
],
decor: [ // [element, chance, distance from top]
["tower", 0.08],
// ["bird", 0.025, 10],
],
baseHeight: 0.25
}