From 5e2cf79157cb329f08db703e3e8726f8f9bbdc84 Mon Sep 17 00:00:00 2001 From: SquareScreamYT <134925668+SquareScreamYT@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:45:00 +0800 Subject: [PATCH 01/26] A Chef's Dream 1.7! --- mods/aChefsDream.js | 547 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 542 insertions(+), 5 deletions(-) diff --git a/mods/aChefsDream.js b/mods/aChefsDream.js index 19a628b3..a9a90bbf 100644 --- a/mods/aChefsDream.js +++ b/mods/aChefsDream.js @@ -2,7 +2,7 @@ Created by SquareScreamYT <@918475812884344852> and RealerRaddler <@914371295561535508> Thanks to Alice <@697799964985786450>, nousernamefound <@316383921346707468>, Adora the Transfem <@778753696804765696> and Fioushemastor <@738828785482203189> for helping :) -v1.6 +v1.7 me trying to come up with stuff not in plants.js: @@ -18,13 +18,11 @@ Upcoming Features: - stainless steel - chili - pepper plants -- pineapples - mint - vanilla - cocoa beans and hot chocolate - normal cookies and cookie dough - cows and beef -- mangoes and passionfruits - celery - marshmallows, normal, cooked and burnt - broccoli @@ -251,6 +249,20 @@ Changelog (v1.6) +Changelog (v1.7) + - added chocolate chips + - added sprinkles + - added banana milk (yellow fruit milk) + - added passion fruits + - added passion fruit vines and seeds (new climbing vines feature!) + - added mangoes + - added mango juice + - added mango wood, branch, leaves and seeds + - added pineapples + - added pineapple leaves, seed and juice + + + */ @@ -603,10 +615,10 @@ elements.raw_chicken = { behavior: behaviors.STURDYPOWDER, category: "food", state: "solid", - burnInto: "cook_chicken", + burnInto: "cooked_chicken", temp:25, tempHigh: 600, - stateHigh: ["ash", "smoke"], + stateHigh: ["cooked_chicken"], reactions: { "batter": { elem1: "battered_raw_chicken", elem2: null }, "smoke": {elem1: "smoked_chicken"}, @@ -1584,6 +1596,7 @@ elements.cooked_salmon = { tempHigh: 600, stateHigh: ["ash", "smoke"], isFood: true, + hidden: true, } elements.smoked_salmon = { @@ -1594,6 +1607,7 @@ elements.smoked_salmon = { temp:55, tempHigh: 600, stateHigh: ["ash", "smoke"], + hidden: true, isFood: true, } @@ -1604,6 +1618,7 @@ elements.steamed_salmon = { state: "solid", temp:60, tempHigh: 600, + hidden: true, stateHigh: ["ash", "smoke"], isFood: true, } @@ -1615,6 +1630,7 @@ elements.boiled_salmon = { state: "solid", temp:70, tempHigh: 600, + hidden: true, stateHigh: ["ash", "smoke"], isFood: true, } @@ -1626,6 +1642,7 @@ elements.fried_salmon = { state: "solid", temp:70, tempHigh: 600, + hidden: true, stateHigh: ["ash", "smoke"], isFood: true, } @@ -1653,6 +1670,7 @@ elements.cooked_tuna = { behavior: behaviors.STURDYPOWDER, category: "food", state: "solid", + hidden: true, temp:50, tempHigh: 600, stateHigh: ["ash", "smoke"], @@ -1666,6 +1684,7 @@ elements.smoked_tuna = { state: "solid", temp:55, tempHigh: 600, + hidden: true, stateHigh: ["ash", "smoke"], isFood: true, } @@ -1677,6 +1696,7 @@ elements.steamed_tuna = { state: "solid", temp:60, tempHigh: 600, + hidden: true, stateHigh: ["ash", "smoke"], isFood: true, } @@ -1686,6 +1706,7 @@ elements.boiled_tuna = { behavior: behaviors.STURDYPOWDER, category: "food", state: "solid", + hidden: true, temp:70, tempHigh: 600, stateHigh: ["ash", "smoke"], @@ -1697,6 +1718,7 @@ elements.fried_tuna = { behavior: behaviors.STURDYPOWDER, category: "food", state: "solid", + hidden: true, temp:70, tempHigh: 600, stateHigh: ["ash", "smoke"], @@ -4176,6 +4198,7 @@ elements.cut_banana = { breakInto: "banana_juice", state: "solid", density: 1050, + hidden: true } elements.banana_juice = { color: "#dbc440", @@ -4200,6 +4223,9 @@ elements.banana_juice = { }, reactions: { "bread": { elem1:"banana_bread", elem2:null, chance:0.35 }, + "milk": { elem1: "fruit_milk", elem2: "fruit_milk", chance: 0.35, color1:"#ede59a", color2:"#ede59a"}, + "coconut_milk": { elem1: "fruit_milk", elem2: "fruit_milk", chance: 0.35, color1:"#ede59a", color2:"#ede59a"}, + "nut_milk": { elem1: "fruit_milk", elem2: "fruit_milk", chance: 0.35, color1:"#ede59a", color2:"#ede59a"} }, tempLow: 0 }; @@ -4220,3 +4246,514 @@ elements.banana_bread = { density: 233.96, isFood: true } +elements.sprinkles = { + color: ["#eb726a", "#ebca6a", "#88eb6a", "#6aaceb", "#eb6ade"], + behavior: behaviors.POWDER, + category: "food", + state: "solid", + desc: "colorful edible sand", + hidden: false, + isFood: true, + burn: 30, + burnTime: 200, + burnInto: ["smoke","smoke","smoke","ash"], + breakInto: "sugar", + breakIntoColor: ["#fb827a", "#fbda7a", "#98fb7a", "#7abcfb", "#fb7aee"], + tempHigh: 176, + stateHigh: "caramel", + density: 277, + cooldown: 2 +} +elements.chocolate_chips = { + color: "#6e4c1d", + behavior: behaviors.POWDER, + tempHigh: 31, + stateHigh: "melted_chocolate", + category: "food", + state: "solid", + density: 1325, + isFood: true, + desc: "chocolate chips yum", + cooldown: 2 +} +elements.chocolate.breakInto = "chocolate_chips" +//elements.fruit_milk.stateLowColorMultiplier = 0.9 + +elements.passion_fruit_vine = { + color: "#00df00", + behavior: [ + "ST:wood|ST:wood|ST:wood", + "ST:wood AND CR:passion_fruit%0.02|XX|ST:wood AND CR:passion_fruit%0.02", + "ST:wood|ST:wood AND M1|ST:wood", + ], + reactions: { + "vinegar": { elem1:"dead_plant", elem2:null, chance:0.035 }, + "baking_soda": { elem1:"dead_plant", elem2:null, chance:0.01 }, + "bleach": { elem1:"dead_plant", elem2:null, chance:0.05 }, + "alcohol": { elem1:"dead_plant", elem2:null, chance:0.035 }, + "mercury": { elem1:"dead_plant", elem2:null, chance:0.01 }, + "stench": { elem2:null, chance:0.25 }, + "carbon_dioxide": { elem2:"oxygen", chance:0.25 }, + }, + category:"life", + tempHigh: 100, + stateHigh: "dead_plant", + tempLow: -1.66, + stateLow: "frozen_plant", + burn:15, + burnTime:60, + burnInto: "dead_plant", + state: "solid", + density: 1050, + breakInto: "dead_plant" +} +elements.passion_fruit_seed = { + color: "#6b4f36", + tick: function(pixel) { + if (Math.random() < 0.1 && pixel.age > 50 && pixel.temp < 100) { + if (!outOfBounds(pixel.x,pixel.y+1)) { + var dirtPixel = pixelMap[pixel.x][pixel.y+1]; + if (dirtPixel.element === "dirt" || dirtPixel.element === "mud" || dirtPixel.element === "sand" || dirtPixel.element === "wet_sand" || dirtPixel.element === "clay_soil" || dirtPixel.element === "mycelium") { + changePixel(dirtPixel,"root"); + } + } + if (isEmpty(pixel.x,pixel.y-1)) { + if (!isEmpty(pixel.x+1,pixel.y-1) || !isEmpty(pixel.x-1,pixel.y-1)) { + movePixel(pixel,pixel.x,pixel.y-1); + createPixel("passion_fruit_vine",pixel.x,pixel.y+1); + } + } + if (!isEmpty(pixel.x+2,pixel.y-1) && isEmpty(pixel.x+1,pixel.y-1)) { + movePixel(pixel,pixel.x+1,pixel.y-1); + createPixel("passion_fruit_vine",pixel.x-1,pixel.y+1); + } + if (!isEmpty(pixel.x-2,pixel.y-1) && isEmpty(pixel.x-1,pixel.y-1)) { + movePixel(pixel,pixel.x-1,pixel.y-1); + createPixel("passion_fruit_vine",pixel.x+1,pixel.y+1); + } + if (!isEmpty(pixel.x,pixel.y-1) && !isEmpty(pixel.x+1,pixel.y) && isEmpty(pixel.x+1,pixel.y-1)) { + movePixel(pixel,pixel.x+1,pixel.y-1); + createPixel("passion_fruit_vine",pixel.x-1,pixel.y+1); + } + if (!isEmpty(pixel.x,pixel.y-1) && !isEmpty(pixel.x-1,pixel.y) && isEmpty(pixel.x-1,pixel.y-1)) { + movePixel(pixel,pixel.x-1,pixel.y-1); + createPixel("passion_fruit_vine",pixel.x+1,pixel.y+1); + } + /*if (pixelMap[pixel.x+1][pixel.y-1].element !== "wood" && pixelMap[pixel.x-1][pixel.y-1].element !== "wood") { + movePixel(pixel,pixel.x,pixel.y-1); + createPixel("passion_fruit_vine",pixel.x,pixel.y+1); + if (isEmpty(pixel.x+1,pixel.y-1) && pixelMap[pixel.x+2][pixel.y-1].element === "wood") { + movePixel(pixel,pixel.x+1,pixel.y-1); + createPixel("passion_fruit_vine",pixel.x-1,pixel.y+1); + } + if (isEmpty(pixel.x-1,pixel.y-1) && pixelMap[pixel.x-2][pixel.y-1].element === "wood") { + movePixel(pixel,pixel.x-1,pixel.y-1); + createPixel("passion_fruit_vine",pixel.x+1,pixel.y+1); + } + }*/ + } + else if (pixel.age > 400 && Math.random() < 0.1) { + changePixel(pixel,"passion_fruit_vine"); + } + pixel.age++; + doDefaults(pixel); + }, + properties: { + "age":0, + }, + tempHigh: 100, + stateHigh: "dead_plant", + tempLow: -2, + stateLow: "frozen_plant", + burn: 65, + burnTime: 15, + category: "life", + state: "solid", + density: 1500, + cooldown: defaultCooldown, + seed: true, + behavior: [ + "ST:wood,passion_fruit_vine|ST:wood,passion_fruit_vine|ST:wood,passion_fruit_vine", + "ST:wood,passion_fruit_vine|XX|ST:wood,passion_fruit_vine", + "ST:wood,passion_fruit_vine|M1|ST:wood,passion_fruit_vine", + ], +}; + +elements.passion_fruit = { + color: "#78236f", + behavior: [ + "ST:passion_fruit_vine%95|ST:passion_fruit_vine%95|ST:passion_fruit_vine%95", + "ST:passion_fruit_vine%95|XX|ST:passion_fruit_vine%95", + "ST:passion_fruit_vine%95|M1|ST:passion_fruit_vine%95", + ], + category:"food", + tempHigh: 100, + stateHigh: "dead_plant", + burn:65, + burnTime:60, + burnInto: "dead_plant", + breakInto: ["passion_fruit_juice","passion_fruit_juice",/*"passion_fruit_seed"*/], + state: "solid", + density: 1050, + cutInto: "passion_fruit_flesh", + temp:20 +} +elements.passion_fruit_flesh = { + color: "#ffe205", + behavior: behaviors.LIQUID, + category:"food", + tempHigh: 100, + stateHigh: "dead_plant", + burn:65, + burnTime:60, + viscosity: 999, + burnInto: "dead_plant", + breakInto: ["passion_fruit_juice","passion_fruit_juice",/*"passion_fruit_seed"*/], + state: "solid", + density: 1050, + hidden: true, + temp: 20 +} +elements.passion_fruit_juice = { + color: "#d6bf2b", + behavior: behaviors.LIQUID, + category: "liquids", + tempHigh: 100, + stateHigh: ["steam","sugar"], + burn: 70, + burnTime: 300, + burnInto: ["steam", "smoke"], + state: "liquid", + density: 825, + hidden: true, + temp: 20, + onMix: function(pixel) { + if (shiftDown) { + if (Math.random() < 0.2) { + changePixel(pixel,"juice") + pixel.color = pixelColorPick(pixel,"#d6bf2b") + } + } + }, + tempLow: 0 +}; +eLists.JUICEMIXABLE.push("passion_fruit_juice"); + +elements.mango_wood = { + color: "#966435", + behavior: behaviors.WALL, + tempHigh: 400, + stateHigh: ["ember","charcoal","fire","fire","fire"], + category: "solids", + burn: 5, + burnTime: 300, + burnInto: ["ember","charcoal","fire"], + state: "solid", + hardness: 0.15, + breakInto: "sawdust", + breakIntoColor: ["#dba66e","#cc8a64"], + hidden: true +} +elements.mango_branch = { + color: "#966435", + behavior: [ + "CR:mango_leaves,mango_branch%2|CR:mango_leaves,mango_branch%2|CR:mango_leaves,mango_branch%2", + "XX|XX|XX", + "XX|XX|XX", + ], + tempHigh: 100, + stateHigh: "mango_wood", + tempLow: -30, + stateLow: "mango_wood", + category: "life", + burn: 40, + burnTime: 50, + burnInto: ["sap","ember","charcoal"], + hidden: true, + state: "solid", + density: 1500, + hardness: 0.15, + breakInto: ["sap","sawdust"], +} +elements.mango_leaves = { + color: ["#61b535","#5fba2f"], + behavior: [ + "XX|XX|XX", + "XX|XX|XX", + "XX|CR:mango%0.1|XX", + ], + reactions: { + "vinegar": { elem1:"dead_plant", elem2:null, chance:0.035 }, + "baking_soda": { elem1:"dead_plant", elem2:null, chance:0.01 }, + "bleach": { elem1:"dead_plant", elem2:null, chance:0.05 }, + "alcohol": { elem1:"dead_plant", elem2:null, chance:0.035 } + }, + category:"life", + tempHigh: 100, + stateHigh: "dead_plant", + tempLow: -1.66, + stateLow: "frozen_plant", + burn:65, + burnTime:60, + burnInto: "dead_plant", + breakInto: "dead_plant", + state: "solid", + density: 1050, + hidden: true +} +elements.mango = { + color: ["#cc5b3f","#cc8a3f","#ccb93f","#abcc3f"], + behavior: behaviors.POWDER, + reactions: { + "vinegar": { elem1:"dead_plant", elem2:null, chance:0.035 }, + "baking_soda": { elem1:"dead_plant", elem2:null, chance:0.01 }, + "bleach": { elem1:"dead_plant", elem2:null, chance:0.05 }, + "alcohol": { elem1:"dead_plant", elem2:null, chance:0.035 } + }, + category:"food", + tempHigh: 100, + stateHigh: "dead_plant", + burn:65, + burnTime:60, + burnInto: "dead_plant", + breakInto: "mango_juice", + cutInto: "cut_mango", + state: "solid", + density: 1050, +} + +elements.cut_mango = { + color: "#ebcb2d", + behavior: behaviors.STURDYPOWDER, + category:"food", + tempHigh: 100, + stateHigh: ["sugar","steam"], + burn:65, + burnTime:60, + burnInto: "dead_plant", + breakInto: "mango_juice", + state: "solid", + density: 1050, + hidden: true, +} + +elements.mango_seed = { + color: "#9e8951", + tick: function(pixel) { + if (isEmpty(pixel.x,pixel.y+1)) { + movePixel(pixel,pixel.x,pixel.y+1); + } + else { + if (Math.random() < 0.02 && pixel.age > 50 && pixel.temp < 100) { + if (!outOfBounds(pixel.x,pixel.y+1)) { + var dirtPixel = pixelMap[pixel.x][pixel.y+1]; + if (dirtPixel.element === "dirt" || dirtPixel.element === "mud" || dirtPixel.element === "sand" || dirtPixel.element === "wet_sand" || dirtPixel.element === "clay_soil" || dirtPixel.element === "mycelium") { + changePixel(dirtPixel,"root"); + } + } + if (isEmpty(pixel.x,pixel.y-1)) { + movePixel(pixel,pixel.x,pixel.y-1); + createPixel(Math.random() > 0.5 ? "mango_wood" : "mango_branch",pixel.x,pixel.y+1); + } + } + else if (pixel.age > 1000) { + changePixel(pixel,"mango_wood"); + } + pixel.age++; + } + doDefaults(pixel); + }, + properties: { + "age":0 + }, + tempHigh: 100, + stateHigh: "dead_plant", + tempLow: -2, + stateLow: "frozen_plant", + burn: 65, + burnTime: 15, + category: "life", + state: "solid", + density: 1500, + cooldown: defaultCooldown, + seed: true, + behavior: [ + "XX|XX|XX", + "XX|FX%10|XX", + "XX|M1|XX", + ], +}; + +elements.mango_juice = { + color: "#f0c348", + onMix: function(pixel) { + if (shiftDown) { + if (Math.random() < 0.2) { + changePixel(pixel,"juice") + pixel.color = pixelColorPick(pixel,"#f0c348") + } + } + }, + behavior: behaviors.LIQUID, + category: "liquids", + tempHigh: 100, + stateHigh: ["steam","sugar"], + burn: 70, + burnTime: 300, + burnInto: ["steam", "smoke"], + state: "liquid", + density: 825, + hidden: true, + temp: 30, + tempLow: 0 +}; +eLists.JUICEMIXABLE.push("mango_juice"); + +elements.pineapple_leaves = { + color: "#3aab11", + behavior: [ + "XX|XX|XX", + "XX|XX|XX", + "XX|XX|XX", + ], + reactions: { + "vinegar": { elem1:"dead_plant", elem2:null, chance:0.035 }, + "baking_soda": { elem1:"dead_plant", elem2:null, chance:0.01 }, + "bleach": { elem1:"dead_plant", elem2:null, chance:0.05 }, + "alcohol": { elem1:"dead_plant", elem2:null, chance:0.035 } + }, + category:"life", + tempHigh: 100, + stateHigh: "dead_plant", + tempLow: -1.66, + stateLow: "frozen_plant", + burn:65, + burnTime:60, + burnInto: "dead_plant", + breakInto: "dead_plant", + state: "solid", + density: 1050, + hidden: true +} +elements.pineapple = { + color: "#e8bc38", + behavior: behaviors.STURDYPOWDER, + category:"food", + tempHigh: 100, + stateHigh: "dead_plant", + burn:65, + burnTime:60, + burnInto: "dead_plant", + breakInto: "pineapple_juice", + state: "solid", + density: 1050, + temp:20 +} +elements.pineapple_seed = { + color: "#695531", + tick: function(pixel) { + if (isEmpty(pixel.x,pixel.y+1)) { + movePixel(pixel,pixel.x,pixel.y+1); + } + else { + if (pixel.temp < 100 && pixel.temp > 20) { + if (Math.random() < 0.02 && pixel.age > 50) { + if (!outOfBounds(pixel.x,pixel.y+1)) { + var dirtPixel = pixelMap[pixel.x][pixel.y+1]; + if (dirtPixel.element === "dirt" || dirtPixel.element === "mud" || dirtPixel.element === "sand" || dirtPixel.element === "wet_sand" || dirtPixel.element === "clay_soil" || dirtPixel.element === "mycelium") { + changePixel(dirtPixel,"root"); + if (isEmpty(pixel.x,pixel.y-1) && pixel.leafgrown==false) { + movePixel(pixel,pixel.x,pixel.y-1); + createPixel("pineapple_leaves",pixel.x,pixel.y+1); + if (isEmpty(pixel.x+1,pixel.y) && isEmpty(pixel.x-1,pixel.y)) { + createPixel("pineapple_leaves",pixel.x+1,pixel.y); + createPixel("pineapple_leaves",pixel.x-1,pixel.y); + if (isEmpty(pixel.x-2,pixel.y-1) && isEmpty(pixel.x+2,pixel.y-1)) { + createPixel("pineapple_leaves",pixel.x+2,pixel.y-1); + createPixel("pineapple_leaves",pixel.x-2,pixel.y-1); + if (isEmpty(pixel.x,pixel.y-1) && isEmpty(pixel.x+1,pixel.y-1) && isEmpty(pixel.x-1,pixel.y-1)) { + createPixel("pineapple",pixel.x,pixel.y-1); + createPixel("pineapple",pixel.x+1,pixel.y-1); + createPixel("pineapple",pixel.x-1,pixel.y-1); + if (isEmpty(pixel.x,pixel.y-2) && isEmpty(pixel.x+1,pixel.y-2) && isEmpty(pixel.x-1,pixel.y-2)) { + createPixel("pineapple",pixel.x,pixel.y-2); + createPixel("pineapple",pixel.x+1,pixel.y-2); + createPixel("pineapple",pixel.x-1,pixel.y-2); + if (isEmpty(pixel.x,pixel.y-3) && isEmpty(pixel.x+1,pixel.y-3) && isEmpty(pixel.x-1,pixel.y-3)) { + createPixel("pineapple",pixel.x,pixel.y-3); + createPixel("pineapple",pixel.x+1,pixel.y-3); + createPixel("pineapple",pixel.x-1,pixel.y-3); + if (isEmpty(pixel.x,pixel.y-4) && isEmpty(pixel.x+1,pixel.y-4) && isEmpty(pixel.x-1,pixel.y-4)) { + createPixel("pineapple",pixel.x,pixel.y-4); + createPixel("pineapple",pixel.x+1,pixel.y-4); + createPixel("pineapple",pixel.x-1,pixel.y-4); + if (isEmpty(pixel.x,pixel.y-5) && isEmpty(pixel.x+1,pixel.y-6) && isEmpty(pixel.x-1,pixel.y-6)) { + createPixel("pineapple_leaves",pixel.x,pixel.y-5); + createPixel("pineapple_leaves",pixel.x+1,pixel.y-6); + createPixel("pineapple_leaves",pixel.x-1,pixel.y-6); + pixel.leafgrown = true + } + } + } + } + } + } + } + } + } + } + } + else if (pixel.age > 500 && pixel.leafgrown == true && Math.random() < 0.1) { + changePixel(pixel,"pineapple_leaves"); + } + } + pixel.age++; + } + doDefaults(pixel); + }, + properties: { + "age":0, + "leafgrown":false, + }, + tempHigh: 100, + stateHigh: "dead_plant", + tempLow: -2, + stateLow: "frozen_plant", + burn: 65, + burnTime: 15, + category: "life", + state: "solid", + density: 1500, + cooldown: defaultCooldown, + seed: true, + temp:25, + behavior: [ + "XX|XX|XX", + "XX|XX|XX", + "XX|M1|XX", + ], +}; +elements.pineapple_juice = { + color: "#d9ba32", + onMix: function(pixel) { + if (shiftDown) { + if (Math.random() < 0.2) { + changePixel(pixel,"juice") + pixel.color = pixelColorPick(pixel,"#d9ba32") + } + } + }, + behavior: behaviors.LIQUID, + category: "liquids", + tempHigh: 100, + stateHigh: ["steam","sugar"], + burn: 70, + burnTime: 300, + burnInto: ["steam", "smoke"], + state: "liquid", + density: 825, + hidden: true, + temp: 30, + tempLow: 0 +}; +eLists.JUICEMIXABLE.push("pineapple_juice"); From e471d926f2f76644170fa75954779cb9deb1ef6c Mon Sep 17 00:00:00 2001 From: sb <155691462+stefanblox@users.noreply.github.com> Date: Wed, 21 Feb 2024 12:45:07 -0300 Subject: [PATCH 02/26] sbstuff 2.7.1 veri small update and select grass --- mods/sbstuff.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/mods/sbstuff.js b/mods/sbstuff.js index 41ee6af0..a9a0480c 100644 --- a/mods/sbstuff.js +++ b/mods/sbstuff.js @@ -1736,12 +1736,28 @@ elements.unstain = { state: "solid", }; +elements.antmatter = { + color: "#5f4a4a", + behavior: [ + "M2|DB%50 AND M2 AND EX:8>ant%10|M2", + "M1|XX|M1", + "M1|DB%50 AND M1 AND EX:8>ant%10|M1", + ], + category: "others", + state: "gas", + density: 6.9, + desc: "first ever others category element i guess" +}; + elements.incinerate.category = "tools", elements.cook.category = "tools", elements.room_temp.category = "tools", elements.beans.tempHigh = 349, elements.beans.stateHigh = "burnt_beans" +elements.grass.onSelect = function() { + logMessage("go touch this"); +} if (!elements.radiation.reactions) elements.egg.reactions = {}; elements.radiation.reactions.meat = { elem1: null, elem2: "radioactive_meat" }, From b9beeedb67604f730946515f1aacdd171a632eff Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Wed, 21 Feb 2024 11:11:55 -0500 Subject: [PATCH 03/26] Update CONTRIBUTING.md --- .github/CONTRIBUTING.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 0a8abf80..a6b9d61e 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -1 +1,10 @@ Contributions to the main index.html file will be ignored. Use this repository to officially publish your Sandboxels mods. + +Rules for publishing mods: +1. Must not focus on something NSFW or illegal. +2. Must be tested beforehand on your own. This repo does not accept mods for the sole purpose of you testing them. +3. Must contain some meaningful content. + +Failure to follow these rules may result in your pull request being ignored! + +Learn more about [submitting your mod](https://sandboxels.wiki.gg/wiki/Modding_tutorial#Putting_it_online). From eefb68a1e3bcaf85cc524e167308a601dd63235f Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Wed, 21 Feb 2024 11:14:38 -0500 Subject: [PATCH 04/26] Update SUPPORT.md --- .github/SUPPORT.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/SUPPORT.md b/.github/SUPPORT.md index 987626cf..4b35a9cc 100644 --- a/.github/SUPPORT.md +++ b/.github/SUPPORT.md @@ -1,9 +1,9 @@ Controls for Sandboxels are listed underneath [the game](https://sandboxels.R74n.com). -Join our [Discord server](https://discord.gg/ejUc6YPQuS) for support, suggestions, or bug reports. +Use the [feedback form](https://sandboxels.r74n.com/feedback) linked under the game for suggestions or bug reports. You can also join our [Discord server](https://discord.gg/ejUc6YPQuS) for support and everything else. -You can also report issues on this GitHub repository [here](https://github.com/R74nCom/sandboxels/issues). +This isn't preferred, but you can also report issues on this GitHub repository [here](https://github.com/R74nCom/sandboxels/issues). -For help with creating mods, there's a channel on the Discord for that! +For help with creating mods, read the [Modding Tutorial](https://sandboxels.wiki.gg/wiki/Modding_tutorial). For help with specific mods, the mod's creator is likely in the Discord. Ask around and you'll be directed to them. From 6f92a13ad16570fa098c59e381ba336b81d5d2a8 Mon Sep 17 00:00:00 2001 From: sb <155691462+stefanblox@users.noreply.github.com> Date: Fri, 23 Feb 2024 23:46:23 -0300 Subject: [PATCH 05/26] sbstuff 2.8 --- mods/sbstuff.js | 54 ++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 42 insertions(+), 12 deletions(-) diff --git a/mods/sbstuff.js b/mods/sbstuff.js index a9a0480c..3f924ecd 100644 --- a/mods/sbstuff.js +++ b/mods/sbstuff.js @@ -592,6 +592,7 @@ elements.cocaine = { }; elements.zombie = { + excludeRandom: true, tempHigh: 500, stateHigh: "ash", color: "#114700", @@ -784,6 +785,7 @@ elements.fart = { behavior: behaviors.DGAS, category: "joke", state: "gas", + excludeRandom: true }; elements.chips = { @@ -998,7 +1000,7 @@ elements.incinerator = { insulate: true, excludeRandom: true, reactions: { - "fart": { elem1: null, elem2: "ohio" }, + "fart": { elem1: null, elem2: "kaboom" }, } }; @@ -1211,7 +1213,7 @@ elements.dark_energy = { excludeRandom: true }; -elements.ohio = { +elements.kaboom = { hidden: true, hardness: 1, hidden: true, @@ -1380,15 +1382,6 @@ elements.yoylecake = { state: "liquid", }; -elements.banana = { - tempHigh: 300, - stateHigh: "ash", - color: "#f06c0e", - behavior: behaviors.STURDYPOWDER, - category: "food", - state: "liquid", -}; - elements.cool_ray = { color: ["#0cdaed","#baf9ff"], tick: function(pixel) { @@ -1692,7 +1685,8 @@ elements.liquid_filler = { "M1|M1 AND CH:liquid_filler%50|M1", ], category: "special", - state: "liquid" + state: "liquid", + excludeRandom: true }; elements.antimony = { @@ -1749,6 +1743,42 @@ elements.antmatter = { desc: "first ever others category element i guess" }; +elements.thermal_paste = { + viscosity: 10000, + tempHigh: 200, + stateHigh: [null, "thermal_paste"], + color: "#c5cfd3", + behavior: [ + "XX|CO:1|XX", + "CO:1 AND M2|XX|CO:1 AND M2", + "M1|CO:1 AND M1|M1", + ], + category: "liquids", + state: "liquid", +}; + +elements.sam = { + name: "sam's sperm i think", + viscosity: 10000, + color: "#0e0e0e", + behavior: behaviors.LIQUID, + category: "joke", + state: "liquid", + desc: "begs the question; did he censor himself?" +}; + +elements.glitch = { + color: ["#ff0000", "#c300ff", "#bbff00", "#1100ff", "#00ffaa"], + behavior: [ + "XX|XX|XX", + "XX|CC:ff0000,c300ff,bbff00,1100ff,00ffaa|XX", + "XX|XX|XX" + ], + category: "special", + conduct: 0.5, + movable: false +}; + elements.incinerate.category = "tools", elements.cook.category = "tools", elements.room_temp.category = "tools", From 50ae470d6962c89937be33b92d7c576413176332 Mon Sep 17 00:00:00 2001 From: sb <155691462+stefanblox@users.noreply.github.com> Date: Sat, 24 Feb 2024 13:20:24 -0300 Subject: [PATCH 06/26] sbstuff 2.8.1 something new in special category... --- mods/sbstuff.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/mods/sbstuff.js b/mods/sbstuff.js index 3f924ecd..f768af8e 100644 --- a/mods/sbstuff.js +++ b/mods/sbstuff.js @@ -1779,6 +1779,35 @@ elements.glitch = { movable: false }; +elements.sound = { + color: ["#1464b4","#aeeb82"], + currentSound: null, + onSelect: function() { + var file = document.createElement("input"); + file.type = "file"; + file.accept = "audio/*"; + file.onchange = function() { + setTimeout(function(){ + var reader = new FileReader(); + reader.onload = function(e) { + if (elements.sound.currentSound) { + elements.sound.currentSound.pause(); + } + elements.sound.currentSound = new Audio(); + elements.sound.currentSound.src = e.target.result; + elements.sound.currentSound.play(); + file.value = ""; + } + reader.readAsDataURL(file.files[0]); + },500); + } + file.click(); + }, + onUnselect: function() {}, + tool: function() {}, + category: "special", +}; + elements.incinerate.category = "tools", elements.cook.category = "tools", elements.room_temp.category = "tools", From bce56d69b17984583cd0d58536598cc3fc31cdb4 Mon Sep 17 00:00:00 2001 From: GGod <46885632+GGodPL@users.noreply.github.com> Date: Sun, 25 Feb 2024 18:18:36 +0100 Subject: [PATCH 07/26] Create video.js --- mods/video.js | 124 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 mods/video.js diff --git a/mods/video.js b/mods/video.js new file mode 100644 index 00000000..ce21ee24 --- /dev/null +++ b/mods/video.js @@ -0,0 +1,124 @@ +{ +let currentVideoFrames = []; +let videoFrame = 0; +let processed = 0; +let started = false; +let videoWidth = 0; +let videoHeight = 0; +let FPS = tps / 2; + +const splitHex = (hex) => hex.slice(1).match(/../g).map(a => Math.floor(parseInt(a, 16))); +const hexify = (rgb) => "#" + rgb.map(a => Math.floor(a).toString(16).padStart(2, "0")).join(""); +function colorLerp(color_, color2_, t) { + const color = splitHex(color_); + const color2 = splitHex(color2_); + const r = (1 - t) * color[0] + t * color2[0]; + const g = (1 - t) * color[1] + t * color2[1]; + const b = (1 - t) * color[2] + t * color2[2]; + return hexify([r, g, b]); +} + +elements.video_pixel = { + color: "#ffffff", + hidden: true, + category: "special", + canPlace: false, + tool: () => {}, + tick: (pixel) => { + if (started && pixelTicks % (tps / FPS) == 0) { + processed++; + if (processed >= videoWidth * videoHeight) { + videoFrame++; + processed = 0; + } + if (videoFrame >= currentVideoFrames.length) { + started = false; + processed = 0; + currentVideoFrames = []; + videoFrame = 0; + } + + pixel.color = currentVideoFrames[videoFrame % currentVideoFrames.length][pixel.y][pixel.x - Math.floor((width - videoWidth) / 2)]; + } + } +} + +const chunk = (arr, size) => arr.map((_, i) => i % size == 0 ? arr.slice(i, i + size) : null).filter(a => a) + +elements.video = { + color: ["#78bbff","#5bb81a"], + onSelect: () => { + if (!localStorage.getItem("video.js/tutorial")) { + alert("Videos might take a while (up to a few minutes with larger videos) to load. During that time, do not delete any video pixels"); + localStorage.setItem("video.js/tutorial", true); + } + const file = document.createElement("input"); + file.type = "file"; + file.accept = "video/*"; + file.click(); + file.onchange = () => { + setTimeout(() => { + const video = document.createElement("video"); + video.preload = "auto"; + const url = URL.createObjectURL(file.files[0]); + video.src = url; + video.load(); + + let canvas = document.createElement("canvas", { + willReadFrequently: true + }); + let ctx = canvas.getContext("2d"); + video.onloadeddata = async () => { + const w = video.videoWidth; + const h = video.videoHeight; + const newHeight = height; + const newWidth = Math.floor((w / h) * newHeight); + canvas.width = video.videoWidth; + canvas.height = video.videoHeight; + videoWidth = newWidth; + videoHeight = newHeight; + + const videoLength = video.duration * FPS; + const seekBy = video.duration / videoLength; + + for (let i = 0; i < newWidth; i++) { + for (let y = 0; y < newHeight; y++) { + const x = Math.floor((width - newWidth) / 2) + i; + if (pixelMap[x][y]) deletePixel(x, y); + createPixel("video_pixel", x, y); + } + }; + + video.currentTime = 0; + + video.onseeked = () => { + ctx.drawImage(video, 0, 0, newWidth, newHeight); + const imageData = chunk(chunk(Array.from(ctx.getImageData(0, 0, newWidth, newHeight).data), 4), newWidth); + const frame = []; + for (let y = 0; y < newHeight; y++) { + frame[y] = []; + for (let x = 0; x < newWidth; x++) { + frame[y][x] = `#${imageData[y][x].slice(0, 3).map(a => a.toString(16).padStart(2, "0")).join("")}` + } + } + currentVideoFrames.push(frame); + + if (currentVideoFrames.length >= videoLength) { + const audio = new Audio(); + audio.src = url; + audio.play(); + + started = true; + videoFrame = 0; + } else { + video.currentTime += seekBy; + } + } + } + }, 500); + } + }, + tool: () => {}, + category: "special" +} +} \ No newline at end of file From df94f0bf43dd9d21209eab2c180537691c602a5b Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:21:58 +0200 Subject: [PATCH 08/26] Create kopalstuff.js --- mods/kopalstuff.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 mods/kopalstuff.js diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js new file mode 100644 index 00000000..ea4ae4eb --- /dev/null +++ b/mods/kopalstuff.js @@ -0,0 +1,10 @@ +elements.lemon = { + color: "#fcc603", + behavior: behaviors.POWDER, + category: "first", + state: "solid", + breakInto: "Juice", + reactions = { + "sugar": { elem1: null, elem2: "candy" } + } +}; From 007aeae7a454358a2da395b8211781c475f742f3 Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:24:40 +0200 Subject: [PATCH 09/26] Update kopalstuff.js --- mods/kopalstuff.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index ea4ae4eb..74ffd76c 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -1,10 +1,10 @@ elements.lemon = { - color: "#fcc603", - behavior: behaviors.POWDER, - category: "first", - state: "solid", + color: "#fcc603", + behavior: behaviors.POWDER, + category: "first", + state: "solid", breakInto: "Juice", reactions = { "sugar": { elem1: null, elem2: "candy" } - } + }, }; From c88ab0a6a1b46d27cc57d57719414564c870d9cc Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:28:21 +0200 Subject: [PATCH 10/26] Update kopalstuff.js --- mods/kopalstuff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index 74ffd76c..db1a042f 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -1,7 +1,7 @@ elements.lemon = { color: "#fcc603", behavior: behaviors.POWDER, - category: "first", + category: "food", state: "solid", breakInto: "Juice", reactions = { From f8f793b8273f164715247280e8b659f59c9b636b Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:32:19 +0200 Subject: [PATCH 11/26] Update kopalstuff.js --- mods/kopalstuff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index db1a042f..8184c140 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -4,7 +4,7 @@ elements.lemon = { category: "food", state: "solid", breakInto: "Juice", - reactions = { + reactions: { "sugar": { elem1: null, elem2: "candy" } }, }; From a2ccad2a6305d32e283345d4028aad9e0111e684 Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:33:07 +0200 Subject: [PATCH 12/26] Update kopalstuff.js --- mods/kopalstuff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index 8184c140..fa8bd476 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -3,7 +3,7 @@ elements.lemon = { behavior: behaviors.POWDER, category: "food", state: "solid", - breakInto: "Juice", + breakInto: "juice", reactions: { "sugar": { elem1: null, elem2: "candy" } }, From 5a52d2db2a46a67e6e2980268e36baec14f8baf2 Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:34:14 +0200 Subject: [PATCH 13/26] Update kopalstuff.js --- mods/kopalstuff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index fa8bd476..06e0ee88 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -1,7 +1,7 @@ elements.lemon = { color: "#fcc603", behavior: behaviors.POWDER, - category: "food", + category: "kopalfood", state: "solid", breakInto: "juice", reactions: { From 1aef96717387c167e0af2c15818d3c1f981ec565 Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:35:31 +0200 Subject: [PATCH 14/26] Update kopalstuff.js --- mods/kopalstuff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index 06e0ee88..fa8bd476 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -1,7 +1,7 @@ elements.lemon = { color: "#fcc603", behavior: behaviors.POWDER, - category: "kopalfood", + category: "food", state: "solid", breakInto: "juice", reactions: { From 9f61e8f2458525a4368fc432cc27d992df681cba Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:38:51 +0200 Subject: [PATCH 15/26] Update kopalstuff.js --- mods/kopalstuff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index fa8bd476..8252be4d 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -5,6 +5,6 @@ elements.lemon = { state: "solid", breakInto: "juice", reactions: { - "sugar": { elem1: null, elem2: "candy" } + "sugar": { elem1: "candy", elem2: null } }, }; From 5980f8cc830f6ceadaacacdb815d623c42fd8bd8 Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:42:17 +0200 Subject: [PATCH 16/26] Update kopalstuff.js --- mods/kopalstuff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index 8252be4d..a4311480 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -5,6 +5,6 @@ elements.lemon = { state: "solid", breakInto: "juice", reactions: { - "sugar": { elem1: "candy", elem2: null } + "sugar": { elem1: "candy", elem2: "candy" } }, }; From fc45e5535c2f01dc79e996469bf829bd84f81b07 Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:45:52 +0200 Subject: [PATCH 17/26] Update kopalstuff.js --- mods/kopalstuff.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index a4311480..7c134c5d 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -5,6 +5,15 @@ elements.lemon = { state: "solid", breakInto: "juice", reactions: { - "sugar": { elem1: "candy", elem2: "candy" } + "sugar": { elem1: null, elem2: "candypowder" } }, }; + +elements.candypowder = { + color: "#cffaf1", + behavior: behaviors.POWDER, + category: null, + state: "solid", +}; + +elements.candy.breakInto: "candypowder" From dab17f0bc3f3e6cfa182b7141824b3d667721fdf Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:48:12 +0200 Subject: [PATCH 18/26] Update kopalstuff.js --- mods/kopalstuff.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index 7c134c5d..ad5a4564 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -1,3 +1,10 @@ +elements.candypowder = { + color: "#cffaf1", + behavior: behaviors.POWDER, + category: null, + state: "solid", +}; + elements.lemon = { color: "#fcc603", behavior: behaviors.POWDER, @@ -8,12 +15,3 @@ elements.lemon = { "sugar": { elem1: null, elem2: "candypowder" } }, }; - -elements.candypowder = { - color: "#cffaf1", - behavior: behaviors.POWDER, - category: null, - state: "solid", -}; - -elements.candy.breakInto: "candypowder" From 9c3abd620344c69bf1e5f837de0719a083ae8daf Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:49:32 +0200 Subject: [PATCH 19/26] Update kopalstuff.js --- mods/kopalstuff.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index ad5a4564..03b5c56c 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -1,4 +1,4 @@ -elements.candypowder = { +elements.candy_powder = { color: "#cffaf1", behavior: behaviors.POWDER, category: null, @@ -12,6 +12,6 @@ elements.lemon = { state: "solid", breakInto: "juice", reactions: { - "sugar": { elem1: null, elem2: "candypowder" } + "sugar": { elem1: null, elem2: "candy_powder" } }, }; From 086aa2548becd4380490f86d6ffdeb6e983965ef Mon Sep 17 00:00:00 2001 From: Jayd-Rubies <155784127+Jayd-Rubies@users.noreply.github.com> Date: Sun, 25 Feb 2024 16:19:16 -0500 Subject: [PATCH 20/26] weapons.js update --- mods/weapons.js | 66 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/mods/weapons.js b/mods/weapons.js index 61af71be..d7d770e9 100644 --- a/mods/weapons.js +++ b/mods/weapons.js @@ -185,4 +185,70 @@ elements.left_bullet = { state: "solid", conduct: 1, density: 1300, +}, + elements.auto_rocket_launcher_left = { + color: "#C0C0C0", + behavior: [ + "XX|XX|XX", + "CR:left_rocket|XX|XX", + "XX|XX|XX", + ], + category: "weapons", + state: "solid", + density: 1300, +}, + elements.auto_rocket_launcher_right = { + color: "#C0C0C0", + behavior: [ + "XX|XX|XX", + "XX|XX|CR:right_rocket", + "XX|XX|XX", + ], + category: "weapons", + state: "solid", + density: 1300, +}, +elements.left_rocket = { + color: "#4c4e42", + behavior: [ + "XX|XX|XX", + "M1 AND EX:10|XX|XX", + "XX|XX|XX", + ], + category:"weapons", +}, + elements.right_rocket = { + color: "#4c4e42", + behavior: [ + "XX|XX|XX", + "XX|XX|M1 AND EX:10", + "XX|XX|XX", + ], + category:"weapons", +}, + elements.e_rocket_launcher_left = { + color: "#C0C0C0", + behavior: behaviors.WALL, + behaviorOn: [ + "XX|XX|XX", + "CR:left_rocket|XX|XX", + "XX|XX|XX", + ], + category: "weapons", + state: "solid", + conduct: 1, + density: 1300, +}, + elements.e_rocket_launcher_right = { + color: "#C0C0C0", + behavior: behaviors.WALL, + behaviorOn: [ + "XX|XX|XX", + "XX|XX|CR:right_rocket", + "XX|XX|XX", + ], + category: "weapons", + state: "solid", + conduct: 1, + density: 1300, }; \ No newline at end of file From 0ad6798bc18d12ceaa4d05e76d6e05c9eff987fb Mon Sep 17 00:00:00 2001 From: Jayd-Rubies <155784127+Jayd-Rubies@users.noreply.github.com> Date: Sun, 25 Feb 2024 16:31:55 -0500 Subject: [PATCH 21/26] Add files via upload --- mods/jaydstuff.js | 56 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 44 insertions(+), 12 deletions(-) diff --git a/mods/jaydstuff.js b/mods/jaydstuff.js index 75c752bb..b077c121 100644 --- a/mods/jaydstuff.js +++ b/mods/jaydstuff.js @@ -50,9 +50,9 @@ elements.liquid_deuterium = { elements.tritium = { color: "#558bcf", behavior: [ - "M2|M1 AND CR:radiation%1|M2", + "M2|M1 AND CR:radiation%0.125|M2", "M1|XX|M1", - "M2|M1 AND CR:radiation%0.5|M2", + "M2|M1 AND CR:radiation%0.05125|M2", ], reactions: { "oxygen": { elem1:null, elem2:"tritiated_steam", tempMin:500 }, @@ -73,7 +73,7 @@ elements.tritium = { elements.liquid_tritium = { color: "#97afcf", behavior: [ - "XX|CR:radiation%1|XX", + "XX|CR:radiation%0.125|XX", "M2|XX|M2", "M1|M1|M1", ], @@ -157,7 +157,7 @@ elements.heavy_ice = { elements.tritiated_water = { color: "#2167ff", behavior: [ - "XX|CR:radiation%1|XX", + "XX|CR:radiation%0.125|XX", "M2|XX|M2", "M1|M1|M1", ], @@ -189,9 +189,9 @@ elements.tritiated_water = { elements.tritiated_steam = { color: "#abd6ff", behavior: [ - "M2|M1 AND CR:radiation%1|M2", + "M2|M1 AND CR:radiation%0.125|M2", "M1|XX|M1", - "M2|M1 AND CR:radiation%0.5|M2", + "M2|M1 AND CR:radiation%0.05125|M2", ], reactions: { "copper": { elem1:"oxygen", elem2:"oxidized_copper", chance:0.01 }, @@ -216,9 +216,9 @@ elements.tritiated_steam = { elements.tritiated_ice = { color: "#b2daeb", behavior: [ - "XX|CR:radiation%0.25|XX", - "CR:radiation%0.25|XX|CR:radiation%0.25", - "XX|CR:radiation%0.25|XX", + "XX|CR:radiation%0.125|XX", + "CR:radiation%0.125|XX|CR:radiation%0.125", + "XX|CR:radiation%0.125|XX", ], temp: -5, tempHigh: 5, @@ -262,9 +262,9 @@ elements.fluoroantimonic_acid = { elements.tritium_ice = { color: "#b5d2ff", behavior: [ - "XX|CR:radiation%0.25|XX", - "CR:radiation%0.25|XX|CR:radiation%0.25", - "XX|CR:radiation%0.25|XX", + "XX|CR:radiation%0.125|XX", + "CR:radiation%0.125|XX|CR:radiation%0.125", + "XX|CR:radiation%0.125|XX", ], temp: -259, tempHigh: -256, @@ -283,4 +283,36 @@ elements.unstain = { y: pixel.y }) } +}, +elements.legacy_hydrogen = { + color: "#558bcf", + behavior: behaviors.GAS, + reactions: { + "oxygen": { elem1:null, elem2:"steam", tempMin:500 }, + "hydrogen": { elem1:"neutron", elem2:"helium", tempMin:10000, temp1:10000, temp2:10000 }, + "nitrogen": { elem1:null, elem2:"oxygen", tempMin:10000 }, + "sulphur": { elem1:null, elem2:"chlorine", tempMin:10000 }, + "neon": { elem1:null, elem2:"sodium", tempMin:10000 } + }, + category: "gases", + burn: 100, + burnTime: 2, + tempLow: -253, + stateLow: "liquid_hydrogen", + state: "gas", + density: 0.08375, + conduct: 0.02, + colorOn: "#d6462d" +}, +elements.ultimate_reset = { + color: "#ff0000", + behavior: [ + "XX|XX|XX", + "XX|EX:10000>flash AND CR:ultimate_reset%0.01|XX", + "XX|XX|XX", + ], + category: "tools", + state: "solid", + excludeRandom: true, + cooldown: defaultCooldown }; \ No newline at end of file From 12dbde77a205025f8c5b69432b8705788068d806 Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:01:29 +0200 Subject: [PATCH 22/26] Update kopalstuff.js --- mods/kopalstuff.js | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index 03b5c56c..ea8c7a91 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -1,17 +1,37 @@ -elements.candy_powder = { - color: "#cffaf1", - behavior: behaviors.POWDER, - category: null, +elements.sweetwater = { + color: "#8ae7eb", + behavior: behaviors.liquid, + category: "davko", + state: "solid", + reactions: { + "soda": { elem1: null, elem2: "syrup" } + }, +}; + +elements.syrup = { + color: "#d9d2c3", + behavior: behaviors.liquid, + category: "davko", state: "solid", }; -elements.lemon = { - color: "#fcc603", - behavior: behaviors.POWDER, - category: "food", +elements.orangesoda = { + color: "#b8820d", + behavior: behaviors.liquid, + category: "davko", + state: "solid", + reactions: { + "sugar": { elem1: null, elem2: "syrup" } + }, +}; + +elements.orange = { + color: "#eda813", + behavior: behaviors.powder, + category: "davko", state: "solid", breakInto: "juice", reactions: { - "sugar": { elem1: null, elem2: "candy_powder" } + "syrup": { elem1: null, elem2: "orangesoda" } }, }; From df8aaedc5a0be0a39b0b9ef2f288926c350d402a Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:04:40 +0200 Subject: [PATCH 23/26] Update kopalstuff.js --- mods/kopalstuff.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index ea8c7a91..5cfc610b 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -1,7 +1,7 @@ elements.sweetwater = { color: "#8ae7eb", behavior: behaviors.liquid, - category: "davko", + category: "liquids", state: "solid", reactions: { "soda": { elem1: null, elem2: "syrup" } @@ -11,14 +11,14 @@ elements.sweetwater = { elements.syrup = { color: "#d9d2c3", behavior: behaviors.liquid, - category: "davko", + category: "food", state: "solid", }; elements.orangesoda = { color: "#b8820d", behavior: behaviors.liquid, - category: "davko", + category: "food", state: "solid", reactions: { "sugar": { elem1: null, elem2: "syrup" } @@ -28,7 +28,7 @@ elements.orangesoda = { elements.orange = { color: "#eda813", behavior: behaviors.powder, - category: "davko", + category: "food", state: "solid", breakInto: "juice", reactions: { From bc853b7bba58c79f17f81be0c0faf6eb774fcb44 Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:17:13 +0200 Subject: [PATCH 24/26] Update kopalstuff.js --- mods/kopalstuff.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index 5cfc610b..9c764c7f 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -2,7 +2,7 @@ elements.sweetwater = { color: "#8ae7eb", behavior: behaviors.liquid, category: "liquids", - state: "solid", + state: "liquid", reactions: { "soda": { elem1: null, elem2: "syrup" } }, @@ -12,14 +12,14 @@ elements.syrup = { color: "#d9d2c3", behavior: behaviors.liquid, category: "food", - state: "solid", + state: "liquid", }; elements.orangesoda = { color: "#b8820d", behavior: behaviors.liquid, category: "food", - state: "solid", + state: "liquid", reactions: { "sugar": { elem1: null, elem2: "syrup" } }, @@ -29,7 +29,7 @@ elements.orange = { color: "#eda813", behavior: behaviors.powder, category: "food", - state: "solid", + state: "powder", breakInto: "juice", reactions: { "syrup": { elem1: null, elem2: "orangesoda" } From 49daaee9b5c6863e11e00ea917e8f201dcabfa13 Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:35:39 +0200 Subject: [PATCH 25/26] Update kopalstuff.js --- mods/kopalstuff.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index 9c764c7f..5f1e17cb 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -1,6 +1,6 @@ elements.sweetwater = { color: "#8ae7eb", - behavior: behaviors.liquid, + behavior: behaviors.LIQUID, category: "liquids", state: "liquid", reactions: { @@ -10,14 +10,14 @@ elements.sweetwater = { elements.syrup = { color: "#d9d2c3", - behavior: behaviors.liquid, + behavior: behaviors.LIQUID, category: "food", state: "liquid", }; elements.orangesoda = { color: "#b8820d", - behavior: behaviors.liquid, + behavior: behaviors.LIQUID, category: "food", state: "liquid", reactions: { @@ -27,7 +27,7 @@ elements.orangesoda = { elements.orange = { color: "#eda813", - behavior: behaviors.powder, + behavior: behaviors.POWDER, category: "food", state: "powder", breakInto: "juice", From 0c65518ff0dbd3ad9b90d383c9bf4c98cc770e7a Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Mon, 26 Feb 2024 18:37:36 +0200 Subject: [PATCH 26/26] Add files via upload --- mods/kopalstuff.js | 206 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 203 insertions(+), 3 deletions(-) diff --git a/mods/kopalstuff.js b/mods/kopalstuff.js index 5f1e17cb..6b8e6e50 100644 --- a/mods/kopalstuff.js +++ b/mods/kopalstuff.js @@ -1,10 +1,26 @@ +/* + +Also checkout sbstuff.js by sb! Without it, this mod wouldn't be possible! + +Discords of people that helped me: +usecit - UseCit.psd +nousernamefound - nousernamefound + +Credits: +Saschas - Waterpowder idea + + +*/ + elements.sweetwater = { color: "#8ae7eb", behavior: behaviors.LIQUID, category: "liquids", state: "liquid", + tempHigh: 100, + stateHigh: "water", reactions: { - "soda": { elem1: null, elem2: "syrup" } + "sugar": { elem1: null, elem2: "syrup" } }, }; @@ -13,6 +29,11 @@ elements.syrup = { behavior: behaviors.LIQUID, category: "food", state: "liquid", + tempHigh: 100, + stateHigh: "fire", + reactions: { + "cell": {elem1: null, elem2: "incubationjuice"} + } }; elements.orangesoda = { @@ -20,9 +41,24 @@ elements.orangesoda = { behavior: behaviors.LIQUID, category: "food", state: "liquid", + tempHigh: 100, + stateHigh: "water", reactions: { - "sugar": { elem1: null, elem2: "syrup" } - }, + "deadflyingcreature": { elem1: "dirty_orangesoda" }, + "deadcreature": { elem1: "dirty_orangesoda" }, + "dirty_water": { elem1: "dirty_orangesoda" }, + "infection": { elem1: "dirty_orangesoda" }, + "dirty_orangesoda": { elem1: "dirty_orangesoda" }, + } +}; + +elements.dirty_orangesoda = { + color: "#20991a", + behavior: behaviors.LIQUID, + category: null, + state: "liquid", + tempHigh: 80, + stateHigh: "orangesoda", }; elements.orange = { @@ -31,7 +67,171 @@ elements.orange = { category: "food", state: "powder", breakInto: "juice", + tempHigh: 100, + stateHigh: "charcoal", reactions: { "syrup": { elem1: null, elem2: "orangesoda" } }, }; + + +elements.incubationjuice = { + color: "#daf5ef", + behavior: behaviors.LIQUID, + category: "life", + state: "liquid", + breakInto: "blood", + reactions: { + "flydna": { elem1: "blood", elem2: "flyingcreature"}, + "antdna": { elem1: "blood", elem2: "creature"}, + "alcohol": { elem1: "cancer", elem2: "antiartificialjuice"} + }, +}; + +elements.creature = { + color: "#d073d9", + behavior: behaviors.CRAWLER, + category: "life", + state: "crawler", + tempHigh: 175, + stateHigh: "deadcreature", + breakInto: "deadcreature", + reactions: { + "ant": { elem2: "meat" }, + "meat": { elem2: "creature" }, + "artificialmeat": { elem2: "cell" }, + "syrup": { elem2: "creature" }, + "cell": { elem2: "creature" }, + }, +}; + +elements.flyingcreature = { + color: "#d073d9", + behavior: behaviors.FLY, + category: "life", + state: "fly", + tempHigh: 175, + stateHigh: "deadflyingcreature", + breakInto: "deadflyingcreature", + reactions: { + "antiartificialjuice": { elem1: "deadflyingcreature", elem2: null }, + "fly": { elem2: "meat" }, + "meat": { elem2: "flyingcreature" }, + "artificialmeat": { elem2: "cell" }, + "syrup": { elem2: "flyingcreature" }, + "cell": { elem2: "flyingcreature" }, + }, +}; + +elements.deadcreature = { + color: "#86428c", + behavior: behaviors.POWDER, + category: null, + state: "powder", + tempHigh: 225, + stateHigh: "smoke", + breakInto: "artificialmeat", + reactions: { + "antiartificialjuice": { elem1: "artificialmeat", elem2: "dna" }, + "ant": { elem1: "artificialmeat" }, + }, +}; + +elements.deadflyingcreature = { + color: "#86428c", + behavior: behaviors.POWDER, + category: null, + state: "powder", + tempHigh: 225, + stateHigh: "smoke", + breakInto: "artificialmeat", + reactions: { + "antiartificialjuice": { elem1: "artificialmeat", elem2: "dna" }, + "fly": { elem1: "artificialmeat" }, + }, +}; + +elements.artificialmeat = { + color: "#b38a5f", + behavior: behaviors.POWDER, + category: "food", + state: "powder", + tempHigh: 215, + stateHigh: "smoke", + reactions: { + "antiartificialjuice": { elem1: null, elem2: null }, + "ant": { elem1: null }, + "rat": { elem1: null }, + }, +}; + +elements.antiartificialjuice = { + color: "#b38a5f", + behavior: behaviors.LIQUID, + category: "life", + state: "liquid", + tempHigh: 215, + stateHigh: "smoke", + reactions: { + "flyingcreature": { elem1: "alcohol", elem2: "deadflyingcreature" }, + "creature": { elem1: "alcohol", elem2: "deadcreature" }, + }, +}; + +elements.antiartificialspray = { + color: "#b38a5f", + behavior: behaviors.DGAS, + category: "life", + state: "gas", + tempHigh: 215, + density: 4000, + stateHigh: "smoke", + reactions: { + "flyingcreature": { elem1: "alcohol", elem2: "deadflyingcreature" }, + "creature": { elem1: "alcohol", elem2: "deadcreature" }, + }, +}; + +elements.antdna = { + color: "#b38a5f", + behavior: behaviors.POWDER, + category: "life", + state: "powder", + tempHigh: 215, + stateHigh: "smoke", +}; + +elements.flydna = { + color: "#b38a5f", + behavior: behaviors.POWDER, + category: "life", + state: "powder", + tempHigh: 215, + stateHigh: "smoke", +}; + +elements.waterpowder = { + color: elements.water.color, + behavior: behaviors.POWDER, + category: "powders", + state: "powder", + tempHigh: 40, + stateHigh: "water", +}; + +elements.waterpowderer = { + color: "#e3e1dc", + behavior: behaviors.POWDER, + category: "powders", + state: "powder", + reactions: { + "water": { elem1: null, elem2: "waterpowder" } + } +}; + +elements.ant.breakInto = "antdna" +elements.fly.breakInto = "flydna" +elements.water.reactions["sugar"] = { elem1: null, elem2: "sweetwater" }; +elements.water.reactions["deadflyingcreature"] = { elem1: "dirty_water"}; +elements.water.reactions["deadcreature"] = { elem1: "dirty_water"}; +elements.water.reactions["dirty_water"] = { elem1: "dirty_water"}; \ No newline at end of file