Name: FILL
Full Name: Filler
Description: Filler is similar to INVS in that it's invisible to most particles, however it is in this state at all times, regardless of temperature or pressure. Filler can be solid to a single element determined by its ctype.
Why?: When making piston contraptions, it would be nice to have bits and pieces that don't collide with other particles while still providing structure to complex shaped objects you want to move. This would allow for that to happen without needing to apply high pressure, which breaks many fragile materials.
This would also be good for making a decorative backdrop for saves, if it could be decorated and the saving process tweaked to make sure that layered elements stay in the right quantities.
I was also thinking of a STRT (strut) element similar to this, although yours is more generic.
local fill = elements.allocate("Jacob1", "FILL")
if fill == -1 then return end
elements.element(fill, elements.element(elements.DEFAULT_PT_DMND))
elements.property(fill, "Name", "FILL")
if tpt.version.jacob1s_mod then
elements.property(fill, "Description", "Filler, invisible to all particles and can't be destroyed.")
else
elements.property(fill, "Description", "Filler, invisible to all particles.")
end
elements.property(fill, "Color", 0xFF2020E0)
for i=1,255 do
sim.can_move(i,fill,2)
end