jacob1:
@Xyz (View Post)
There are two you can use, depending on what you want
https://powdertoy.co.uk/Wiki/W/Lua_API:Simulation.html#simulation.partCreate
https://powdertoy.co.uk/Wiki/W/Lua_API:Simulation.html#simulation.partChangeType
partChangeType will only change .type, leaving all properties the same. partCreate will spawn the element anew in the original element's place, so it will have it's default spawn properties.
That is the code equivalent, unless you are looking to change each element of a certain type?
if you make a custom element you could make it change 500 neighbors then delete itself