This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Mod: Ultimate Expansion Pack | |
| // Adds Better Humans, Super Bees, Plasma, Dark Matter, and varied items. | |
| // 1. Better Humans & Life | |
| elements.human_advanced = { | |
| color: ["#e0ac69", "#8d5524", "#c68642", "#f1c27d", "#ffdbac"], | |
| behavior: behaviors.POWDER, | |
| reactions: { | |
| "water": { elem1: null, elem2: "human_advanced", chance: 0.01 }, | |
| "food": { elem1: null, elem2: "human_advanced", chance: 0.1 }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Sandboxels Physics Toggle Mod - Reset Button Version | |
| (function() { | |
| // 1. The function that changes the physics | |
| function applyGlobalPhysics(type) { | |
| for (const name in elements) { | |
| const el = elements[name]; | |
| if (type === "gravity") { | |
| el.movable = true; | |
| el.behavior = behaviors.POWDER; | |
| } else if (type === "solid") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Sandboxels Physics Toggle Mod - V2 | |
| (function() { | |
| function setGlobalPhysics(type) { | |
| for (const name in elements) { | |
| const el = elements[name]; | |
| if (type === "gravity") { | |
| el.movable = true; | |
| el.behavior = behaviors.POWDER; | |
| } else { | |
| el.movable = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Sandboxels Physics Toggle Mod | |
| function setGlobalPhysics(type) { | |
| for (const name in elements) { | |
| const el = elements[name]; | |
| if (type === "gravity") { | |
| el.movable = true; | |
| el.behavior = behaviors.POWDER; | |
| } else { | |
| el.movable = false; | |
| el.behavior = behaviors.WALL; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Sandboxels Physics Changer Mod | |
| // Places buttons directly in the element category menu | |
| function applyGlobalPhysics(mode) { | |
| for (const name in elements) { | |
| const el = elements[name]; | |
| if (el.excludeFromPhysicsMod) continue; // Skip elements we don't want to break | |
| if (mode === "gravity") { | |
| el.movable = true; |