From 2154c4a57e45a164a1e83c4863a3a386d2c7be5c Mon Sep 17 00:00:00 2001 From: HACKERPRO908 <130792075+HACKERPRO908@users.noreply.github.com> Date: Thu, 4 Jan 2024 16:13:29 +0000 Subject: [PATCH] Add files via upload Signed-off-by: HACKERPRO908 <130792075+HACKERPRO908@users.noreply.github.com> --- mods/fantasy_elements.js | 138 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 mods/fantasy_elements.js diff --git a/mods/fantasy_elements.js b/mods/fantasy_elements.js new file mode 100644 index 00000000..07b58981 --- /dev/null +++ b/mods/fantasy_elements.js @@ -0,0 +1,138 @@ +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" }, + } +}; + +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", + density: 1.5, + weight: 100, + update: function(x, y) { + // Update the element's behavior + }, +}; + +