Elements in Sandboxels can also have custom functions that those pixels run each tick (JavaScript functions in the "tick" property), like with haseulite vents. What are some properties that could be implemented with such function
Elements in Sandboxels can have custom functions that are defined in their "tick" property. These functions are run each game tick, allowing elements to have unique behaviors that are not shared by other elements. Some examples of properties that could be implemented with a custom tick function include:
Movement: Elements with a custom tick function could be programmed to move in a specific way. For example, an element might move in a straight line, or it might follow a specific path or pattern.
Interactions with other elements: Elements with a custom tick function could be programmed to interact with other elements in specific ways. For example, an element might be able to absorb or repel other elements, or it might be able to change the properties of other elements when they come into contact with it.
Temperature changes: Elements with a custom tick function could be programmed to change their temperature over time. For example, an element might become hotter or colder depending on its surroundings or the other elements it is interacting with.
State changes: Elements with a custom tick function could be programmed to change their state (solid, liquid, or gas) based on specific conditions. For example, an element might become a gas when it reaches a certain temperature, or it might change from a solid to a liquid when it comes into contact with another element.
Overall, custom tick functions can provide elements with unique behaviors and properties that are not possible with the default elements in the game. These functions can be used to create a wide range of interesting and complex interactions between elements, allowing players to experiment with different combinations and see how they behave

heejinitoidTick() when he wakes up
)clf3.js
chem.js

) dependencies



//[excerpt from haseulite.js]
function heejinitoidTick(pixel) {
if(pixel.oldColor === null) { pixel.oldColor = pixel.color };
var color = rgbStringToHSL(convertColorFormats(pixel.oldColor,"rgb"),"json");
var heejiniteHueSpread = 30 + (pixel.temp/9.25)
var hueOffset = (Math.sin(pixelTicks / 11) * heejiniteHueSpread) + 15; color.h += hueOffset;
var color = convertHslObjects(color,"rgb");
pixel.color = color;
};