From 61473ec08d4563d9b4a8dd2ccd46efd44a01e7a4 Mon Sep 17 00:00:00 2001 From: henriquerosaconta2025-hue Date: Fri, 15 Aug 2025 19:16:55 -0300 Subject: [PATCH 1/3] Add files via upload --- mods/Elements.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 mods/Elements.js diff --git a/mods/Elements.js b/mods/Elements.js new file mode 100644 index 00000000..b01d163c --- /dev/null +++ b/mods/Elements.js @@ -0,0 +1,26 @@ +elements.boron = { +color: "#635F62", +category: "powders", +state: "solid", + +behavior: [ +"RL:radiation%0.001", +], + + +reactions: { +neutron: {elem2: null} +}, + +} + +elements.Graphite = { +color: "#635F62", +category: "powders", +state: "solid", + +behavior: [ +"RL:radiation%2, AND RL:neutron%5", +], + +} \ No newline at end of file From 60b0676810b6f827fad2453f260dd223917df088 Mon Sep 17 00:00:00 2001 From: henriquerosaconta2025-hue Date: Fri, 15 Aug 2025 19:22:36 -0300 Subject: [PATCH 2/3] Update Elements.js --- mods/Elements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/Elements.js b/mods/Elements.js index b01d163c..5a17e64a 100644 --- a/mods/Elements.js +++ b/mods/Elements.js @@ -23,4 +23,4 @@ behavior: [ "RL:radiation%2, AND RL:neutron%5", ], -} \ No newline at end of file +} From cc1b70dfa9fb3371dbaf654ac1dc21409f737a61 Mon Sep 17 00:00:00 2001 From: henriquerosaconta2025-hue Date: Wed, 20 Aug 2025 14:03:54 -0300 Subject: [PATCH 3/3] Create NuclearElems gama energy alpha energy beta energy ------------ graphite boron plutonium. --- NuclearElems | 205 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 205 insertions(+) create mode 100644 NuclearElems diff --git a/NuclearElems b/NuclearElems new file mode 100644 index 00000000..d1ea3899 --- /dev/null +++ b/NuclearElems @@ -0,0 +1,205 @@ +// energy: + +elements.gama = { + color: "#e78930", + tick: behaviors.BOUNCY, + category: "energy", + conduct: 1, + hardness: 0, + state: "gas", + name: "gama", + density: 0, + temp1: 100, + hidden: false, + + reactions: { + body: {elem1: "radiation"}, + head: {elem1: "radiation"}, + neutron: {elem1: "positron"}, + lead: {elem1: null, chance: 0.5}, + }, + + behavior: [ + "XX|XX|XX", + "XX|DL%0.2|XX", + "XX|XX|XX" + ], + + ignoreAir: true, +}; + +elements.alpha = { + color: "#ddda2a", + tick: behaviors.BOUNCY, + category: "energy", + state: "gas", + name: "alpha", + density: 0, + temp1: 50, + hidden: false, + conduct: 0, + hardness: 0, + + reactions: { + body: {elem1: "radiation"}, + head: {elem1: "radiation"}, + neutron: {elem1: "positron"}, + lead: {elem1: null}, + }, + + behavior: [ + "XX|XX|XX", + "XX|DL%0.2|XX", + "XX|XX|XX" + ], + + ignoreAir: true, +}; + +elements.beta = { + color: "#3ba0a3", + tick: behaviors.BOUNCY, + category: "energy", + state: "gas", + name: "beta", + density: 0.5, + temp1: 150, + conduct: 1, + hardness: 0.5, + hidden: false, + + reactions: { + body: {elem1: "radiation"}, + head: {elem1: "radiation"}, + neutron: {elem1: "positron"}, + lead: {elem1: null}, + }, + + behavior: [ + "XX|XX|XX", + "XX|DL%0.2|XX", + "XX|XX|XX" + ], + + ignoreAir: true, +}; + +// nuclear: +elements.graphite = { + color: "#8a8383", + density: 2.3, + state: "solid", + conduct: 0, + hardness: 1, + name: "graphite", + hidden: false, + category: "solids", + + tempHigh: 3626, + stateHigh: "molten_graphite", + + behavior: [ + "RL:neutron%2 AND RL:radiation%1" + ], + + reactions: { + neutron: {elem2: null, chance: 0.8} + }, +}; + +elements.boron = { + color: "#948d8d", + density: 2.37, + conduct: 0, + hardness: 1, + name: "boron", + category: "solids", + + tempHigh: 2076, + stateHigh: "molten_boron", + + reactions: { + neutron: {elem2: null, chance: 0.9}, + }, + + behavior: [ + "RL:radiation%0.01" + ], +}; + +elements.plutonium = { + color: "#c5a61d", + density: 19.86, + conduct: 0, + hardness: 1, + category: "solids", + name: "plutonium", + state: "SOLID", + + tempHigh: 375, + stateHigh: "molten_plutonium", + + behavior: [ + "RL:gama%0.2 AND RL:alpha%0.3 AND RL:beta%0.05 AND RL:radiation%0.2", + ], + + reactions: { + neutron: {temp1: 150, elem2: "radiation"} + }, + +}; + +// states: + +elements.molten_boron = { + color: "#b88c2e", + density: 2.3, + state: "MOLTEN", + category: "liquids", + hidden: true, + tick: behaviors.MOLTEN, + + tempLow: 2056, + stateLow: "boron", + + behavior: [ + "RL:radiation%1 AND RL:neutron%0.05" + ], + +}; + +elements.molten_graphite = { + color: "#d18719", + density: 2.3, + state: "MOLTEN", + category: "liquids", + hidden: true, + tick: behaviors.MOLTEN, + + tempLow: 3580, + stateLow: "graphite", + + behavior: [ + "RL:radiation%3 AND RL:neutron%5" + ], + +}; + +elements.molten_plutonium = { + + color: "#ffd900", + state: "MOLTEN", + category: "liquids", + hidden: true, + + behavior: behaviors.MOLTEN, + + tempLow: 350, + stateLow: "plutonium", + + tick: function(pixel) { + if (pixel.temp > 600) { + changePixel(pixel, "n_explosion") + } + }, +};