From b11f121bf530eac8e35fd5c189c848f167536616 Mon Sep 17 00:00:00 2001 From: jakob3797 <167775393+jakob3797@users.noreply.github.com> Date: Tue, 14 May 2024 12:53:23 -0500 Subject: [PATCH 1/9] Update Lab.js --- mods/Lab.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/mods/Lab.js b/mods/Lab.js index 9304d697..01a7bb3b 100644 --- a/mods/Lab.js +++ b/mods/Lab.js @@ -260,17 +260,17 @@ if(enabledMods.includes(libraryMod)) { document.addEventListener("keyup", function(sussyListener) { switch (sussyListener.keyCode) { - case 84: - sussyKey = "T"; + case 73: + sussyKey = "I"; break; - case 70: - sussyKey = "F"; + case 74: + sussyKey = "J"; break; - case 72: - sussyKey = "H"; + case 75: + sussyKey = "K"; break; - case 71: - sussyKey = "G"; + case 76: + sussyKey = "L"; break; case 81: sussyKey = "Q"; @@ -329,25 +329,25 @@ if(enabledMods.includes(libraryMod)) { } if(sussyKey !== null) { switch (sussyKey) { - case "T": + case "I": isAlt ? controllablePixelTryCreatePixelNullCheck(userElement,xx,yy-1) : tryMove(pixel,xx,yy-1); if(!isShift) { sussyKey = null; } break; - case "F": + case "J": isAlt ? controllablePixelTryCreatePixelNullCheck(userElement,xx-1,yy) : tryMove(pixel,xx-1,yy); if(!isShift) { sussyKey = null; } break; - case "G": + case "K": isAlt ? controllablePixelTryCreatePixelNullCheck(userElement,xx,yy+1) : tryMove(pixel,xx,yy+1); if(!isShift) { sussyKey = null; } break; - case "H": + case "L": tryMove(pixel,xx+1,yy); if(!isShift) { sussyKey = null; From 14c0fc3c2ad069b33e0049eb91e0e85d86492d6d Mon Sep 17 00:00:00 2001 From: DoobieRalsei <163950752+DoobieRalsei@users.noreply.github.com> Date: Tue, 14 May 2024 12:08:44 -0700 Subject: [PATCH 2/9] Amber rework once again --- mods/fossils.js | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/mods/fossils.js b/mods/fossils.js index 3bd63fdc..44f37da8 100644 --- a/mods/fossils.js +++ b/mods/fossils.js @@ -159,15 +159,30 @@ elements.skull = { breakInto: ["quicklime","bone","bone","bone_marrow"] }, +elements.bug_amber = { + temp: 20, + tempHigh: 345, + stateHigh: ["smoke","sap","sap","calcium","sugar"], + breakInto: [null,null,null,"dna","dna","sap","sap","sap","sap","sap","dead_bug"], + category: "solids" +}, + elements.head.breakInto = ["blood","meat","skull"] elements.dead_bug.breakInto = ["calcium","calcium","calcium","quicklime"] -elements.amber.breakInto = ["dna","dna","sap","sap","sap","sap","sap","dead_bug"] - -elements.amber.tempHigh = 185 - -elements.amber.stateHigh = ["sap","sap","sap","calcium","sugar"] +if (!elements.sap.reactions) { elements.sap.reactions = {} } + elements.sap.reactions.dead_bug = { elem1:"bug_amber", elem2:null, chance:0.1 }; + elements.sap.reactions.ant = { elem1:"bug_amber", elem2:null, chance:0.1 }; + elements.sap.reactions.fly = { elem1:"bug_amber", elem2:null, chance:0.1 }; + elements.sap.reactions.flea = { elem1:"bug_amber", elem2:null, chance:0.1 }; + elements.sap.reactions.termite = { elem1:"bug_amber", elem2:null, chance:0.1 }; + elements.sap.reactions.worm = { elem1:"bug_amber", elem2:null, chance:0.1 }; + elements.sap.reactions.bee = { elem1:"bug_amber", elem2:null, chance:0.1 }; + elements.sap.reactions.firefly = { elem1:"bug_amber", elem2:null, chance:0.1 }; + elements.sap.reactions.stinkbug = { elem1:"bug_amber", elem2:null, chance:0.1 }; + elements.sap.reactions.slug = { elem1:"bug_amber", elem2:null, chance:0.1 }; + elements.sap.reactions.snail = { elem1:"bug_amber", elem2:null, chance:0.1 }; if (!elements.bone.reactions) { elements.bone.reactions = {} } elements.bone.reactions.rock = { "elem1": "fossil", chance:0.00005 }; From 468ff46a76baeed0468d385acfc2dfa03b2c50da Mon Sep 17 00:00:00 2001 From: DoobieRalsei <163950752+DoobieRalsei@users.noreply.github.com> Date: Tue, 14 May 2024 12:11:26 -0700 Subject: [PATCH 3/9] Yet another sap and amber update --- mods/fossils.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/mods/fossils.js b/mods/fossils.js index 44f37da8..5a339710 100644 --- a/mods/fossils.js +++ b/mods/fossils.js @@ -171,7 +171,19 @@ elements.head.breakInto = ["blood","meat","skull"] elements.dead_bug.breakInto = ["calcium","calcium","calcium","quicklime"] -if (!elements.sap.reactions) { elements.sap.reactions = {} } +if (!elements.sap.reactions) { elements.sap.reactions = { + "dead_bug": { elem1:"amber", elem2:null, chance:0.1 }, + "ant": { elem1:"amber", elem2:null, chance:0.1 }, + "fly": { elem1:"amber", elem2:null, chance:0.1 }, + "flea": { elem1:"amber", elem2:null, chance:0.1 }, + "termite": { elem1:"amber", elem2:null, chance:0.1 }, + "worm": { elem1:"amber", elem2:null, chance:0.1 }, + "bee": { elem1:"amber", elem2:null, chance:0.1 }, + "firefly": { elem1:"amber", elem2:null, chance:0.1 }, + "stinkbug": { elem1:"amber", elem2:null, chance:0.1 }, + "slug": { elem1:"amber", elem2:null, chance:0.1 }, + "snail": { elem1:"amber", elem2:null, chance:0.1 }, +} } elements.sap.reactions.dead_bug = { elem1:"bug_amber", elem2:null, chance:0.1 }; elements.sap.reactions.ant = { elem1:"bug_amber", elem2:null, chance:0.1 }; elements.sap.reactions.fly = { elem1:"bug_amber", elem2:null, chance:0.1 }; @@ -184,6 +196,7 @@ if (!elements.sap.reactions) { elements.sap.reactions = {} } elements.sap.reactions.slug = { elem1:"bug_amber", elem2:null, chance:0.1 }; elements.sap.reactions.snail = { elem1:"bug_amber", elem2:null, chance:0.1 }; + if (!elements.bone.reactions) { elements.bone.reactions = {} } elements.bone.reactions.rock = { "elem1": "fossil", chance:0.00005 }; elements.bone.reactions.sand = { "elem1": "fossil", chance:0.000035 }; From 784fc46503bed6008686781fe85e40ef6251249b Mon Sep 17 00:00:00 2001 From: DoobieRalsei <163950752+DoobieRalsei@users.noreply.github.com> Date: Tue, 14 May 2024 12:18:01 -0700 Subject: [PATCH 4/9] Another amber fix --- mods/fossils.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/mods/fossils.js b/mods/fossils.js index 5a339710..27e5e5f5 100644 --- a/mods/fossils.js +++ b/mods/fossils.js @@ -171,19 +171,7 @@ elements.head.breakInto = ["blood","meat","skull"] elements.dead_bug.breakInto = ["calcium","calcium","calcium","quicklime"] -if (!elements.sap.reactions) { elements.sap.reactions = { - "dead_bug": { elem1:"amber", elem2:null, chance:0.1 }, - "ant": { elem1:"amber", elem2:null, chance:0.1 }, - "fly": { elem1:"amber", elem2:null, chance:0.1 }, - "flea": { elem1:"amber", elem2:null, chance:0.1 }, - "termite": { elem1:"amber", elem2:null, chance:0.1 }, - "worm": { elem1:"amber", elem2:null, chance:0.1 }, - "bee": { elem1:"amber", elem2:null, chance:0.1 }, - "firefly": { elem1:"amber", elem2:null, chance:0.1 }, - "stinkbug": { elem1:"amber", elem2:null, chance:0.1 }, - "slug": { elem1:"amber", elem2:null, chance:0.1 }, - "snail": { elem1:"amber", elem2:null, chance:0.1 }, -} } +if (!elements.sap.reactions) { elements.sap.reactions = {} } elements.sap.reactions.dead_bug = { elem1:"bug_amber", elem2:null, chance:0.1 }; elements.sap.reactions.ant = { elem1:"bug_amber", elem2:null, chance:0.1 }; elements.sap.reactions.fly = { elem1:"bug_amber", elem2:null, chance:0.1 }; From 437f6128576032a0157e01718908d23c3b6b3a8c Mon Sep 17 00:00:00 2001 From: voidapex11 <154328367+voidapex11@users.noreply.github.com> Date: Wed, 15 May 2024 11:40:50 +0100 Subject: [PATCH 5/9] Update pullers.js --- mods/pullers.js | 124 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 121 insertions(+), 3 deletions(-) diff --git a/mods/pullers.js b/mods/pullers.js index 70602c4a..c8c60552 100644 --- a/mods/pullers.js +++ b/mods/pullers.js @@ -2,6 +2,14 @@ // a sandboxels mod that adds pullers /* ==CHANGELOG== + Version 2.0.0 +@voidapex11 +~set max size of the mod description to 1 ++gravity cells ++black hole + it acts like void but it has gravity +~for modders, the gravity range of black holes and gravity cells is customisable + Version 1.2.1 @voidapex11 ~fixed error @@ -254,8 +262,8 @@ elements.up_puller = { state: "solid", } -if (enabledMods.includes("pushers.js")) { - console.log('compatibility with pushers.js and imovable objects coming in a later update of the pullers.js\neventualy...') +if (enabledMods.includes("mods/pushers.js")) { + console.info('compatibility with pushers.js and imovable objects coming in a later update of the pullers.js') } e_pullerColour='#c3a5d6' @@ -350,4 +358,114 @@ elements.up_e_puller = { hardness: 0.85, conduct: 1, state: "solid", -} \ No newline at end of file +} + +function removeItemOnce(arr, value) { + var index = arr.indexOf(value); + if (index > -1) { + arr.splice(index, 1); + console.log('hit') + } + return arr; +} + +elements.gravity_cell = { + color: pullerColour, + properties: { + range: 3, + }, + tick: function(pixel) { + pixel.color = ("#" + ((192 + Math.abs((pixelTicks * 4) % 64)).toString(16) + "e0ad").padStart(6, '0')); + for (j=0; j <=pixel.range; j++) { + + // generate the cooridinates that nabough the grav cell + cords=circleCoords(pixel.x, pixel.y, j) + for (i in cords) { + pos = cords[i] + if (!isEmpty(pos.x,pos.y)&&!(pos.x==pixel.x&&pos.y==pixel.y)){ + x = (pixel.x-pos.x) + y = (pixel.y-pos.y) + + if (x<0) { + x=-1 + } else if (x>0){ + x=1 + } + + if (y<0) { + y=-1 + } else if (y>0){ + y=1 + } + + try { + tryMove(pixelMap[pos.x][pos.y], pos.x+x, pos.y+y) + } catch (error) {}// if there is an error, its probably out of bounds, not my problem :) + } + } + } + doDefaults(pixel); + }, + category: "machines", + density: 10000, + hardness: 1, + conduct: 0, + state: "solid", +} + + +elements.black_hole = { + color: elements.void.color, + maxSize: 1, + properties: { + range: 10, + }, + tick: function(pixel) { + + for (j=0; j <=pixel.range; j++) { + + // generate the cooridinates that neighbour the black hole + cords=circleCoords(pixel.x, pixel.y, j) + for (i in cords) { + pos = cords[i] + if (!isEmpty(pos.x,pos.y)&&!(pos.x==pixel.x&&pos.y==pixel.y)){ + x = (pixel.x-pos.x) + y = (pixel.y-pos.y) + + if (x<0) { + x=-1 + } else if (x>0){ + x=1 + } + + if (y<0) { + y=-1 + } else if (y>0){ + y=1 + } + + try { + tryMove(pixelMap[pos.x][pos.y], pos.x+x, pos.y+y) + } catch (error) {}// if there is an error, its probably out of bounds, not my problem :) + } + } + } + + for (let i = -1; i < 2; i++) { + for (let j = -1; j < 2; j++) { + if (!isEmpty(pixel.x+j,pixel.y+i) && !outOfBounds(pixel.x+j,pixel.y+i)&&!((i==0)&&(j==0))) { + deletePixel(pixel.x+j,pixel.y+i) + } + } + } + + doDefaults(pixel); + }, + category: "machines", + density: 10000, + hardness: 1, + temp: -273.15, + insulate:true, + conduct: 0, + state: "solid", +} From 8cc3cd4924af99ed4be3e4daed7bfa1a68759a09 Mon Sep 17 00:00:00 2001 From: voidapex11 <154328367+voidapex11@users.noreply.github.com> Date: Wed, 15 May 2024 12:01:59 +0100 Subject: [PATCH 6/9] Update pullers.js --- mods/pullers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/pullers.js b/mods/pullers.js index c8c60552..1f88c621 100644 --- a/mods/pullers.js +++ b/mods/pullers.js @@ -419,6 +419,7 @@ elements.black_hole = { maxSize: 1, properties: { range: 10, + immovable: true, }, tick: function(pixel) { @@ -467,5 +468,8 @@ elements.black_hole = { temp: -273.15, insulate:true, conduct: 0, + excludeRandom: true, + noMix: true, state: "solid", + movable: false } From 3e22af05f1ab05b1d1b6eede9f32f2fb7714c457 Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Wed, 15 May 2024 12:53:21 -0400 Subject: [PATCH 7/9] 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 --- changelog.html | 123 ++ changelog.txt | 123 +- controls.html | 1 + controls.txt | 1 + fonts/PressStart2P-License-OFL.txt | 93 ++ fonts/VT323-License-OFL.txt | 93 ++ fonts/VT323-Regular.ttf | Bin 0 -> 149688 bytes index.html | 2072 +++++++++++++++++----------- mod-list.html | 1 + mods/building.js | 117 ++ mods/classic_textures.js | 8 +- mods/devtests.js | 98 +- style.css | 44 +- 13 files changed, 1948 insertions(+), 826 deletions(-) create mode 100644 fonts/PressStart2P-License-OFL.txt create mode 100644 fonts/VT323-License-OFL.txt create mode 100644 fonts/VT323-Regular.ttf create mode 100644 mods/building.js diff --git a/changelog.html b/changelog.html index c15e96dc..00f01e99 100644 --- a/changelog.html +++ b/changelog.html @@ -109,6 +109,129 @@

The original plain text version of this is still maintained.

+

[Version 1.9.5 - May 15, 2024 - Update of the Summer]

+ +

[Version 1.9.4.1 - April 8, 2024 - Eclipse Special]