This commit is contained in:
JustAGenericUsername 2024-01-07 12:42:53 -05:00
commit 3f2f53ffdd
11 changed files with 2045 additions and 115 deletions

View File

@ -200,6 +200,8 @@
<!----><tr><td class="modCat" colspan="3">Food & Cooking</td></tr><!---->
<tr><td>bananas.js</td><td>Adds bananas and banana plants</td><td>Alice</td></tr>
<tr><td>ketchup_mod.js</td><td>Adds a bunch of ketchup related stuff, plus a few other condiments</td><td>Nubo318 (main dev), Devi, Alice (contributors)</td></tr>
<tr><td>pizzasstuff.js</td><td>New animals, foods, and plants</td><td>_ilikepizza_</td></tr>
<tr><td>sbstuff.js</td><td>Adds Rice</td><td>Stefan Blox</td></tr>
<!----><tr><td class="modCat" colspan="3">Life & Nature</td></tr><!---->
<tr><td>apioforms_pre.js</td><td>An incomplete implementation of elements from the <a href="https://osmarks.net/apioform/">Apioform Game</a></td><td>Alice</td></tr>
@ -209,6 +211,7 @@
<tr><td>crimson.js</td><td>Adds elements relating to the Crimson from Terraria</td><td>Alice</td></tr>
<tr><td>fairy_chain.js</td><td>Adds way too many fairies to fey_and_more.js</td><td>Alice</td></tr>
<tr><td>fantastic_creatures.js</td><td>Adds various animals</td><td>Melecie</td></tr>
<tr><td>fantasy_elements.js</td><td>Fantasy creatures and substances</td><td>pixelegend4</td></tr>
<tr><td>fey_and_more.js</td><td>Adds fairies, magic, and a lot of other things</td><td>Melecie</td></tr>
<tr><td>fwibblen.js</td><td>Adds a flying creature that turns nickel into itself, and a second creature that does the same to the first one</td><td>Alice</td></tr>
<tr><td>human_edit.js</td><td>Improvements to humans</td><td>Alice</td></tr>
@ -216,10 +219,11 @@
<tr><td>mobs.js</td><td>Adds Creepers, Zombies, and Skeletons</td><td>Alice</td></tr>
<tr><td>nocancer.js</td><td>Removes cancer from the game one tick after it is created</td><td>mollthecoder</td></tr>
<tr><td>nocancer2.js</td><td>Removes cancer from the game altogether. May be incompatible with other mods that spawn cancer</td><td>mollthecoder</td></tr>
<tr><td>pizzasstuff.js</td><td>New animals, foods, and plants</td><td>_ilikepizza_</td></tr>
<tr><td>primordial_birthpool.js</td><td>A cross between Primordial Soup and Birthpool. Requires F&M</td><td>Alice</td></tr>
<tr><td>spring.js</td><td>Many nature elements, like sakura trees, butterflies, beehives, and more</td><td><a href="https://R74n.com" class="R74nLink">R74n</a></td></tr>
<tr><td>the_ground.js</td><td>Adds several rock types, worldgen settings, and gemstones</td><td>Alice</td></tr>
<tr><td>the_ground_og.js</td><td>Simplified and more stable version of the_ground.js</td><td>Alice</td></tr>
<tr><td>the_ground.js</td><td>Adds several rock types, worldgen settings, and gemstones</td><td>Alice</td></tr>
<tr><td>toothpaste.js</td><td>Teeth and paste</td><td>Alice</td></tr>
<!----><tr><td class="modCat" colspan="3">Fun & Games</td></tr><!---->

File diff suppressed because it is too large Load Diff

View File

@ -106,7 +106,7 @@ const inject = () => {
/**
*
* @param {string} menu Menu do be opened
* @param {string} menu Menu to be opened
* @param {boolean} [closeCurrent] Whether it should forcefully close the current screen
*/
const openMenu = (menu, closeCurrent = false) => {
@ -130,6 +130,7 @@ class MenuScreen {
this.showCloseButton = true;
this.closeButtonText = "-";
this.closeButtonClass = "XButton";
this.titleId = null;
}
/**
@ -141,6 +142,15 @@ class MenuScreen {
return this;
}
/**
* Sets screen title ID
* @param {string} [id] Screen title element ID
*/
setTitleId(id) {
this.titleId = id;
return this;
}
/**
* Sets close button visibility. When false the close button will not be added to the menu screen
* @param {boolean} show Visibility of the close button
@ -253,7 +263,7 @@ class MenuScreen {
const inner = document.createElement("div");
inner.className = this.innerDivClass ?? "menuScreen";
inner.innerHTML = `${this.showCloseButton ? `<button class="${this.closeButtonClass ?? "XButton"}" onclick="closeMenu();">${this.closeButtonText}` : ""}</button>
<span class="menuTitle">${this.title ?? "Menu Screen"}</span><br><br><div class="menuText">` + this.innerHtml + "</div>";
<span class="menuTitle"${this.titleId ? ` id="${this.titleId}"` : ""}>${this.title ?? "Menu Screen"}</span><br><br><div class="menuText">` + this.innerHtml + "</div>";
this.nodes.forEach(n => inner.querySelector(".menuText").appendChild(n));
parent.appendChild(inner);
document.getElementById(id).appendChild(parent);

View File

@ -1396,9 +1396,7 @@ class GameScreen {
}
onKey(ev) {
if (!this.menuScreen) {
player.update(ev);
} else {
if (this.menuScreen) {
this.menuScreen.onKey(ev);
}
}

243
mods/fantasy_elements.js Normal file
View File

@ -0,0 +1,243 @@
elements.dragon_breath = {
color: "#f94e4e",
behavior: behaviors.GAS,
category: "fantasy",
state: "gas",
density: 0.1,
weight: 1,
update: function(x, y) {
// Update the element's behavior
},
reactions: {
"oxygen": { elem1: "fire", elem2: "fire" },
"frostbite": { elem1: "pulsium", elem2: "pulsium" },
}
};
elements.frostbite = {
color: "#0000ff",
behavior: behaviors.SOLID,
category: "fantasy",
state: "solid",
density: 1.5,
weight: 100,
update: function(x, y) {
// Update the element's behavior
},
reactions: {
"water": { elem1: "ice", elem2: "ice" },
"dragon_breath": { elem1: "pulsium", elem2: "pulsium" },
}
};
elements.pulsium = {
color: "#ffff00",
behavior: behaviors.LIQUID,
category: "fantasy",
state: "liquid",
density: 1923,
weight: 100,
update: function(x, y) {
// Update the element's behavior
},
reactions: {
"molten_iron": { elem1: "pulsium_bar", elem2: "pulsium_bar" },
"molten_tin": { elem1: "pulsium_bar", elem2: "pulsium_bar" },
"water": { elem1: "sap", elem2: "sap" },
"magma": { elem1: "pulsium_bar", elem2: "pulsium_bar" },
}
};
elements.pulsium_bar = {
color: "#ffd700",
behavior: behaviors.SOLID,
category: "fantasy",
state: "solid",
density: 1700,
weight: 100,
update: function(x, y) {
// Update the element's behavior
}
};
elements.goblins_delight = {
color: "#00ff00",
behavior: behaviors.LIQUID,
category: "fantasy",
state: "solid",
density: 0.5,
weight: 50,
reactions: {
"liquid_light": { elem1: "water", elem2: "oil" },
"radiation": { elem1: "sauce", elem2: "sauce" },
}
};
elements.pheonix = {
color: ["#ff0000"],
tick: behaviors.FLY,
reactions: { "fire": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"salt": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"pulsium_bar": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"pulsium": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"dragon_breath": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
},
foodNeed: 5,
tempHigh: 999999,
stateHigh: "ash",
tempLow: 0,
category:"fantasy",
burn:100,
burnTime:19,
state: "solid",
density: 850,
conduct: 1,
baby: "baby_pheonix",
};
elements.phoenix_ash = {
color: "#a8a8a5",
behavior: behaviors.POWDER,
category: "fantasy",
state: "solid",
density: 1.5,
weight: 100,
reactions: {
"water": { elem1: "pheonix", elem2: "pheonix" },
}
};
elements.baby_pheonix = {
color: ["#ffdd00"],
tick: behaviors.FLY,
foodNeed: 5,
tempHigh: 999999,
stateHigh: "ash",
tempLow: 0,
category:"fantasy",
burn:100,
burnTime:19,
state: "solid",
stateLow: "iced_pheonix",
breakInto: "phoenix_ash",
density: 850,
conduct: 1,
};
elements.iced_pheonix = {
color: "#34baeb",
behavior: behaviors.SOLID,
category: "fantasy",
state: "solid",
breakInto: "ice",
density: 1.5,
weight: 100,
update: function(x, y) {
// Update the element's behavior
},
};
// New Fantasy Elements with Updated Reactions
elements.dragon_scale = {
color: "#8B4513",
behavior: behaviors.SOLID,
category: "fantasy",
state: "solid",
density: 0.8,
weight: 60,
update: function(x, y) {
// Update the element's behavior
},
reactions: {
"fire": { elem1: null, elem2: "dragon_breath" },
"plasma": { elem1: null, elem2: "dragon_breath" },
"goblins_delight": { elem1: "dragon_breath", elem2: null },
"pulsium": { elem1: "dragon_breath", elem2: null },
"oil": { elem1: null, elem2: "dragon_breath" },
"salt": { elem1: "dragon_breath", elem2: null },
"sap": { elem1: "dragon_breath", elem2: null },
"water": { elem1: "dragon_breath", elem2: null },
"laser": { elem1: null, elem2: "dragon_breath" },
"oxygen": { elem1: null, elem2: "dragon_breath" },
"wall": { elem1: "dragon_breath", elem2: null },
"glass": { elem1: null, elem2: "dragon_breath" },
"wood": { elem1: null, elem2: "dragon_breath" },
"charcoal": { elem1: null, elem2: "dragon_breath" },
},
};
elements.mystic_runes = {
color: "#9932CC",
behavior: behaviors.SOLID,
category: "fantasy",
state: "solid",
density: 0.8,
weight: 60,
update: function(x, y) {
// Update the element's behavior
},
reactions: {
"heat_ray": { elem1: null, elem2: "mystic_runes" },
"god_ray": { elem1: null, elem2: "mystic_runes" },
"laser": { elem1: null, elem2: "mystic_runes" },
"helium": { elem1: null, elem2: "mystic_runes" },
"oxygen": { elem1: null, elem2: "mystic_runes" },
"sugar": { elem1: null, elem2: "mystic_runes" },
"wall": { elem1: "mystic_runes", elem2: null },
"glass": { elem1: null, elem2: "mystic_runes" },
"wood": { elem1: null, elem2: "mystic_runes" },
"charcoal": { elem1: null, elem2: "mystic_runes" },
"diamond": { elem1: null, elem2: "mystic_runes" },
},
};
elements.enchanted_wood = {
color: "#923B70",
behavior: behaviors.SOLID,
category: "fantasy",
state: "solid",
density: 0.8,
weight: 60,
update: function(x, y) {
// Update the element's behavior
},
reactions: {
"fire": { elem1: null, elem2: "charcoal" },
"plasma": { elem1: null, elem2: "charcoal" },
"water": { elem1: null, elem2: "mystic_runes" },
},
};
// update 1.1 below
// adds 3 more extra elements
// by hackerpro908
// main game by R74N called sandboxels
elements.quartzium = {
color: "#51484f",
behavior: behaviors.SOLID,
category: "fantasy",
state: "solid",
density: 1065,
weight: 100,
reactions: {
"fire": { elem1: "quartz", elem2: "quartz" },
},
};
elements.quartz = {
color: "#ebedeb",
behavior: behaviors.SOLID,
category: "fantasy",
state: "solid",
density: 8076,
weight: 100,
};
elements.moonite = {
color: "#e6e6e6",
behavior: behaviors.SUPERFLUID,
category: "fantasy",
state: "solid",
density: 8076,
weight: 100,
};

31
mods/jaydsmods.js Normal file
View File

@ -0,0 +1,31 @@
elements.test_element = {
color: "#ff0000",
behavior: behaviors.POWDER,
category: "land",
state: "solid",
reactions: {
"dirt": { elem1: null, elem2: "mud" },
}
},
elements.tsar_bomba = {
color: "#524c41",
behavior: [
"XX|EX:150>plasma|XX",
"XX|XX|XX",
"M2|M1 AND EX:150>plasma|M2",
],
category: "weapons",
state: "solid",
density: 1300,
excludeRandom: true,
cooldown: defaultCooldown
}
elements.meese = {
color: "#996515",
behavior: [
"XX|XX|XX",
"XX|FX%0.25|M2%0.5 AND BO",
"XX|M1|XX",
],
category: "life"
}

47
mods/morefoodsmod.js Normal file
View File

@ -0,0 +1,47 @@
elements.chowder = {
color: "#c7c98b",
behavior: behaviors.POWDER,
category: "food",
state: "solid",
reactions: {
"water": { elem1: null, elem2: "soup" },
},
};
elements.soup = {
color: "#c28719",
behavior: behaviors.LIQUID,
category: "food",
state: "liquid",
stateHigh: "chowder",
tempHigh: 100
};
elements.rice = {
color: "#f6f8ed",
behavior: behaviors.POWDER,
category: "food",
state: "solid",
reactions: {
"broth": { elem1: "risotto", elem2: null },
"beans": { elem1: null, elem2: "feijoada"},
},
};
elements.risotto = {
color: "#f8f4e9",
behavior: behaviors.SUPPORTPOWDER,
category: "food",
state: "solid",
};
elements.feijoada = {
color: "#291800",
behavior: behaviors.LIQUID,
category: "food",
state: "liquid",
viscosity: 9
};
if (!elements.milk.reactions) elements.milk.reactions = {};
elements.milk.reactions.corn = { elem1: null, elem2: "chowder" }

57
mods/nastystuff.js Normal file
View File

@ -0,0 +1,57 @@
elements.poop = {
color: "#411900",
density: 200,
state: "solid",
burn: 5,
tempHigh: 400,
burnTime: 200,
burnInto: ["driedPoop"],
category: "gross stuff",
}
elements.driedPoop = {
behavior: behaviors.POWDER,
color: '#181100',
state: 'powder',
category: "gross stuff",
reactions: {
"water": { elem1: null, elem2: "wetPoop" },
"milk": { elem1: null, elem2: "poopyMilk" },
},
density: 10
}
elements.wetPoop = {
behavior: behaviors.LIQUID,
color: "#A9844F",
state: 'liquid',
category: 'gross stuff',
density: '25'
}
elements.poopyMilk = {
behavior: behaviors.LIQUID,
color: '#BEB2AD',
state: 'liquid',
category: "gross stuff",
density: 10
}
elements.peePee = {
behavior: behaviors.LIQUID,
color: '#f1ed00',
state: 'liquid',
category: "gross stuff",
tempHigh: 100,
stateHigh: ["ammonia", "fragrance"],
density: 25
}
elements.ammonia = {
behavior: behaviors.GAS,
color: '#E5E4E2',
category: 'gross stuff',
density: .86,
state: 'gas',
}

29
mods/obsidian.js Normal file
View File

@ -0,0 +1,29 @@
elements.obsidian = {
color: ["#343434", "#313639"],
behavior: behaviors.SOLID,
category: "solids",
state: "solid",
reactions: {
"sand": { elem1: "obsidian_shard" },
"dirt": { elem1: "obsidian_shard" },
"rock": { elem1: "obsidian_shard" },
"mudstone": { elem1: "obsidian_shard" },
"packed_snow": { elem1: "obsidian_shard" },
"gravel": { elem1: "obsidian_shard" },
"clay": { elem1: "obsidian_shard" },
"clay_soil": { elem1: "obsidian_shard" },
"permafrost": { elem1: "obsidian_shard" },
"mulch": { elem1: "obsidian_shard" },
"basalt": { elem1: "obsidian_shard" },
"tuff": { elem1: "mud" },
"limestone": { elem1: "obsidian_shard" },
"quicklime": { elem1: "obsidian_shard" },
"slaked_lime": { elem1: "obsidian_shard" },
}
},
elements.obsidian_shard = {
color: ["#343434" , "#313639"],
behavior: behaviors.POWDER,
category: "powders",
state: "solid",
}

332
mods/pizzasstuff.js Normal file
View File

@ -0,0 +1,332 @@
elements.fruit_slushy = {
color: "#b867cf",
behavior: behaviors.LIQUID,
category: "food",
state: "solid",
hidden: "TRUE",
};
elements.mold = {
color: "#86ab29",
behavior: behaviors.POWDER,
category: "food",
state: "solid",
hidden: "TRUE",
};
elements.chocolate_slushy = {
color: "#4f2e16",
behavior: behaviors.LIQUID,
category: "food",
state: "solid",
hidden: "TRUE",
};
elements.chocolate_sauce = {
color: "#754828",
behavior: behaviors.LIQUID,
category: "food",
state: "solid",
hidden: "TRUE",
};
elements.chocolate_ice_cream = {
color: "#704b3a",
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
hidden: "TRUE",
};
elements.fruit_ice_cream = {
color: "#de6ab7",
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
hidden: "TRUE",
};
elements.chocolate_yogurt = {
color: "#825c4b",
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
hidden: "TRUE",
tempLow: 0,
stateLow: "frozen_chocolate_yogurt",
};
elements.fruit_yogurt = {
color: "#f587d0",
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
hidden: "TRUE",
tempLow: 0,
stateLow: "frozen_fruit_yogurt",
};
elements.frozen_fruit_yogurt = {
color: "#ffc2ea",
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
hidden: "TRUE",
};
elements.frozen_chocolate_yogurt = {
color: "#ad8776",
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
hidden: "TRUE",
};
elements.cooking_oil = {
color: "#c4ab4f",
behavior: behaviors.LIQUID,
category: "liquids",
state: "solid",
reactions: {
"meat": { elem1: null, elem2: "chicken_nuggets" },
"potato": { elem1: null, elem2: "fries" },
}
};
elements.chicken_nuggets = {
color: "#967242",
behavior: behaviors.POWDER,
category: "food",
state: "solid",
hidden: "TRUE",
};
elements.fries = {
color: "#ebba34",
behavior: behaviors.POWDER,
category: "food",
state: "solid",
hidden: "TRUE",
};
elements.rose_sauce = {
color: "#f0340e",
behavior: behaviors.LIQUID,
category: "food",
state: "solid",
hidden: "TRUE",
};
elements.rose_sauce = {
color: "#f0340e",
behavior: behaviors.LIQUID,
category: "food",
state: "solid",
hidden: "TRUE",
};
elements.smashed_ice = {
color: "#c3d4e6",
behavior: behaviors.LIQUID,
category: "food",
state: "solid",
reactions: {
"grape": { elem1: null, elem2: "fruit_slushy" },
"green_grape": { elem1: null, elem2: "fruit_slushy" },
"cherry": { elem1: null, elem2: "fruit_slushy" },
"chocolate": { elem1: null, elem2: "chocolate_slushy" },
"juice": { elem1: null, elem2: "fruit_slushy" },
"chocolate_sauce": { elem1: null, elem2: "chocolate_slushy" },
},
density: 100,
tempHigh: 25,
stateHigh: "water",
tempLow: -100,
stateLow: "snow",
};
elements.moss = {
color: "#389639",
behavior: behaviors.STURDYPOWDER,
category: "life",
state: "solid",
burn: 5,
burnTime: 15,
density: 1400,
breakInto: "dead_plant",
tempHigh: 120,
stateHigh: "dead_plant",
tempLow: -4,
stateLow: "frozen_plant",
reactions: {
"dna": { elem1: "moth", elem2: null },
}
};
elements.moth = {
color: "#665233",
behavior: behaviors.BOUNCY,
category: "life",
state: "solid",
burn: 95,
burnTime: 25,
density: 600,
breakInto: "dead_bug",
tempHigh: 100,
stateHigh: "ash",
tempLow: 0,
stateLow: "dead_bug",
};
elements.cherry = {
color: "#c41428",
behavior: behaviors.POWDER,
category: "food",
state: "solid",
breakInto: "juice",
tempHigh: 256,
stateHigh: "steam",
breakIntoColor: "#450008",
};
elements.orange = {
color: "#ff9100",
behavior: behaviors.POWDER,
category: "food",
state: "solid",
breakInto: "juice",
tempHigh: 256,
stateHigh: "steam",
breakIntoColor: "#d69c4f",
};
elements.kiwi = {
color: "#34611a",
behavior: behaviors.POWDER,
category: "food",
state: "solid",
breakInto: "juice",
tempHigh: 256,
stateHigh: "steam",
breakIntoColor: "#517a38",
};
elements.green_grape = {
color: "#b6eb7f",
behavior: behaviors.POWDER,
category: "food",
state: "solid",
breakInto: "juice",
breakIntoColor: "#5f8536",
tempHigh: 256,
stateHigh: "steam",
};
if (!elements.lettuce.reactions) elements.lettuce.reactions = {};
elements.lettuce.reactions.ice_cream = { elem1: "moss", elem2: null }
if (!elements.ketchup.reactions) elements.ketchup.reactions = {};
elements.ketchup.reactions.yolk = { elem1: "rose_sauce", elem2: null }
if (!elements.bread.reactions) elements.bread.reactions = {};
elements.bread.reactions.rotten_cheese = { elem1: "mold", elem2: null }
if (!elements.bread.reactions) elements.bread.reactions = {};
elements.bread.reactions.dirty_water = { elem1: "mold", elem2: null }
if (!elements.toast.reactions) elements.toast.reactions = {};
elements.toast.reactions.rotten_cheese = { elem1: "mold", elem2: null }
if (!elements.toast.reactions) elements.toast.reactions = {};
elements.toast.reactions.dirty_water = { elem1: "mold", elem2: null }
if (!elements.baked_batter.reactions) elements.baked_batter.reactions = {};
elements.baked_batter.reactions.rotten_cheese = { elem1: "mold", elem2: null }
if (!elements.baked_batter.reactions) elements.baked_batter.reactions = {};
elements.baked_batter.reactions.dirty_water = { elem1: "mold", elem2: null }
if (!elements.bread.reactions) elements.bread.reactions = {};
elements.bread.reactions.worm = { elem1: "mold", elem2: null }
if (!elements.bread.reactions) elements.bread.reactions = {};
elements.bread.reactions.mud = { elem1: "mold", elem2: null }
if (!elements.toast.reactions) elements.toast.reactions = {};
elements.toast.reactions.worm = { elem1: "mold", elem2: null }
if (!elements.toast.reactions) elements.toast.reactions = {};
elements.toast.reactions.mud = { elem1: "mold", elem2: null }
if (!elements.baked_batter.reactions) elements.baked_batter.reactions = {};
elements.baked_batter.reactions.worm = { elem1: "mold", elem2: null }
if (!elements.baked_batter.reactions) elements.baked_batter.reactions = {};
elements.baked_batter.reactions.mud = { elem1: "mold", elem2: null }
elements.sugar_ice.breakInto = "smashed_ice"
elements.chocolate.breakInto = "chocolate_sauce"
if (!elements.ice_cream.reactions) elements.ice_cream.reactions = {};
elements.ice_cream.reactions.juice = { elem1: "fruit_ice_cream", elem2: null }
if (!elements.ice_cream.reactions) elements.ice_cream.reactions = {};
elements.ice_cream.reactions.grape = { elem1: "fruit_ice_cream", elem2: null }
if (!elements.ice_cream.reactions) elements.ice_cream.reactions = {};
elements.ice_cream.reactions.jelly = { elem1: "fruit_ice_cream", elem2: null }
if (!elements.ice_cream.reactions) elements.ice_cream.reactions = {};
elements.ice_cream.reactions.cherry = { elem1: "fruit_ice_cream", elem2: null }
if (!elements.ice_cream.reactions) elements.ice_cream.reactions = {};
elements.ice_cream.reactions.orange = { elem1: "fruit_ice_cream", elem2: null }
if (!elements.ice_cream.reactions) elements.ice_cream.reactions = {};
elements.ice_cream.reactions.kiwi = { elem1: "fruit_ice_cream", elem2: null }
if (!elements.ice_cream.reactions) elements.ice_cream.reactions = {};
elements.ice_cream.reactions.green_grape = { elem1: "fruit_ice_cream", elem2: null }
if (!elements.ice_cream.reactions) elements.ice_cream.reactions = {};
elements.ice_cream.reactions.chocolate = { elem1: "chocolate_ice_cream", elem2: null }
if (!elements.ice_cream.reactions) elements.ice_cream.reactions = {};
elements.ice_cream.reactions.chocolate_sauce = { elem1: "chocolate_ice_cream", elem2: null }
if (!elements.ice_cream.reactions) elements.ice_cream.reactions = {};
elements.ice_cream.reactions.melted_chocolate = { elem1: "chocolate_ice_cream", elem2: null }
if (!elements.yogurt.reactions) elements.yogurt.reactions = {};
elements.yogurt.reactions.grape = { elem1: "fruit_yogurt", elem2: null }
if (!elements.yogurt.reactions) elements.yogurt.reactions = {};
elements.yogurt.reactions.juice = { elem1: "fruit_yogurt", elem2: null }
if (!elements.yogurt.reactions) elements.yogurt.reactions = {};
elements.yogurt.reactions.green_grape = { elem1: "fruit_yogurt", elem2: null }
if (!elements.yogurt.reactions) elements.yogurt.reactions = {};
elements.yogurt.reactions.cherry = { elem1: "fruit_yogurt", elem2: null }
if (!elements.yogurt.reactions) elements.yogurt.reactions = {};
elements.yogurt.reactions.kiwi = { elem1: "fruit_yogurt", elem2: null }
if (!elements.yogurt.reactions) elements.yogurt.reactions = {};
elements.yogurt.reactions.orange = { elem1: "fruit_yogurt", elem2: null }
if (!elements.yogurt.reactions) elements.yogurt.reactions = {};
elements.yogurt.reactions.jelly = { elem1: "fruit_yogurt", elem2: null }
if (!elements.yogurt.reactions) elements.yogurt.reactions = {};
elements.yogurt.reactions.chocolate = { elem1: "chocolate_yogurt", elem2: null }
if (!elements.yogurt.reactions) elements.yogurt.reactions = {};
elements.yogurt.reactions.chocolate_sauce = { elem1: "chocolate_yogurt", elem2: null }
if (!elements.yogurt.reactions) elements.yogurt.reactions = {};
elements.yogurt.reactions.melted_chocolate = { elem1: "chocolate_yogurt", elem2: null }

276
mods/sbstuff.js Normal file
View File

@ -0,0 +1,276 @@
elements.burnt_rice = {
tempHigh: 999,
stateHigh: "ash",
density: 699,
color: "#242424",
behavior: behaviors.POWDER,
category: "food",
state: "liquid",
reactions: {
"water": { elem1: null, elem2: "dirty_water" }
}
};
elements.rice = {
isFood: true,
burnInto: "burnt_rice",
density: 696,
tempHigh: 232,
stateHigh: "burnt_rice",
color: "#d1d1d1",
behavior: behaviors.POWDER,
category: "food",
state: "liquid",
};
elements.moth = {
tempHigh: 500,
stateHigh: "ash",
color: "#57381a",
behavior: behaviors.GAS,
category: "life",
state: "solid",
};
elements.moss = {
tempHigh: 500,
stateHigh: "ash",
density: 1000,
color: "#2d571a",
behavior: behaviors.POWDER,
category: "land",
state: "solid",
};
elements.mc_donalds = {
tempHigh: 6969,
stateHigh: "void",
density: 69,
color: "#ff0000",
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
};
elements.maple_syrup = {
isFood: true,
tempHigh: 500,
stateHigh: "steam",
density: 1333,
hardness: 1,
color: "#9c6000",
behavior: behaviors.LIQUID,
category: "liquids",
state: "liquid",
};
elements.boiled_egg = {
isFood: true,
density: 700,
breakInto: "yolk",
tempHigh: 500,
stateHigh: "ash",
color: "#fff9d1",
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "liquid",
};
elements.dark_oak = {
breakInto: "dark_oak_wood",
tempHigh: 500,
stateHigh: "ash",
color: "#302216",
behavior: behaviors.WALL,
category: "solids",
state: "solid",
};
elements.dark_oak_wood = {
tempHigh: 500,
stateHigh: "ash",
color: "#573e28",
behavior: behaviors.SUPPORT,
category: "land",
state: "solid",
};
elements.avocado = {
isFood: true,
tempHigh: 500,
breakInto: "guacamole",
stateHigh: "ash",
color: "#254a22",
behavior: behaviors.SUPPORTPOWDER,
category: "food",
state: "liquid",
};
elements.guacamole = {
isFood: true,
tempHigh: 500,
stateHigh: "ash",
color: "#a2e09d",
behavior: behaviors.POWDER,
category: "food",
state: "liquid",
};
elements.watermelon = {
isFood: true,
tempHigh: 500,
stateHigh: "ash",
breakInto: "water_from_the_melon",
color: "#40993f",
behavior: behaviors.SUPPORT,
category: "food",
state: "solid",
};
elements.water_from_the_melon = {
isFood: true,
tempHigh: 500,
stateHigh: "steam",
color: "#ff5d47",
behavior: behaviors.LIQUID,
category: "liquids",
state: "liquid",
};
elements.nachos = {
isFood: true,
tempHigh: 500,
stateHigh: "ash",
color: "#bd7b26",
behavior: behaviors.SUPPORTPOWDER,
category: "food",
state: "solid",
};
elements.cherry = {
isFood: true,
tempHigh: 500,
stateHigh: "ash",
color: "#ff0f0f",
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
};
elements.green_cherry = {
isFood: true,
tempHigh: 500,
stateHigh: "ash",
color: "#5ce344",
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
};
elements.meth = {
hardness: 1,
tempHigh: 5000,
stateHigh: "steam",
color: "#0affef",
behavior: behaviors.POWDER,
category: "powders",
state: "solid",
};
elements.garlic = {
isFood: true,
tempHigh: 500,
stateHigh: "ash",
color: "#ffebbd",
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
reactions: {
"bread": { elem1: null, elem2: "garlic_bread" },
}
};
elements.garlic_bread = {
isFood: true,
breakInto: "crumb",
tempHigh: 500,
stateHigh: "ash",
color: ["#db9b56", "#288a0c", "#db9b56", "#db9b56", "#db9b56", "#db9b56"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
};
elements.kiwi = {
isFood: true,
tempHigh: 500,
stateHigh: "ash",
color: ["#0f4700", "#0f4700", "#0f4700", "#0f4700", "#0f4700", "#0f4700", "#0f4700", "#0f4700", "#0f4700", "#210a00"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
};
elements.peanut_butter = {
isFood: true,
tempHigh: 500,
stateHigh: "ash",
color: "#d4903d",
behavior: behaviors.POWDER,
category: "food",
state: "solid",
};
elements.poop = {
tempHigh: 500,
stateHigh: "ash",
color: "#331600",
behavior: behaviors.STURDYPOWDER,
category: "special",
state: "solid",
};
elements.marshmallow = {
tempHigh: 50,
stateHigh: "cooked_marshmallow",
color: "#ffe4e3",
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
};
elements.cooked_marshmallow = {
tempHigh: 150,
stateHigh: "burnt_marshmallow",
color: "#d49e9d",
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "liquid",
};
elements.burnt_marshmallow = {
tempHigh: 500,
stateHigh: "ash",
color: "#1c1212",
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
};
elements.ramen = {
tempHigh: 500,
stateHigh: "ash",
color: "#fae34d",
behavior: behaviors.POWDER,
category: "food",
state: "solid",
};
elements.cereal = {
tempHigh: 500,
stateHigh: "ash",
color: ["#ba3425", "#baa31e", "#26ba1e", "#1e9dba", "#6f1eba"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "liquid",
};