Assuming you are compiling it for windows,
You need to add your new element in the src/simulation/elements folder.
The files look like FIRE.cpp, WATR.cpp etc.
Just add your new element file there.
Adding new elements also requires you to define their IDs in meson.build file located in (src/simulation/elements/meson.build)
Just give it a number higher than the last one, for eg. 191
(As 190 is already assigned for ROCK.)
Once you are done, run the ninja command.
(I would suggest reading the tutorial for adding elements on wiki first, it definitely helps with various functions and properties that are used by elements.)
Hope this helps.
Hm, lemme try
Oh fu*k
I just found out that i wrote "SC_SOLID" while it must be "SC_SOLIDS"
lma0
YEE it works!!! I just added copper into my game!
Thanks @Cracker1000 for help