well I want it to turn into fire first and then turn into something else, I still want it to burn. If it matters it is a gas element, therefore it burns similar to O2 which is fine, but is there anyway to have it leave another element behind after it burns?
You have to do this: when that element burns, fire gets some tmp and decreasing life, when that tmp having fires life go to zero, it turns into that element you want. I cant tell how to do that, but fireworks might work somehow like this.
I know I can use Lua script to set an object's melting point to below the temperature of fire, set the material to be flammable, and set the material it turns into when "melted" to be something other than lava. like this:
Put this in the autorun.lua, and try to set fire to some diamond and see what happens.
it detects if somehting is turning to fire, you dont need to override it
However yours requires compiling in VC++. Not everybody know how (including myself), and not everybody would even want to bother to try.
My solution uses Lua script and does NOT require any compiling or learning C++. It will work perfectly on already compiled version of the latest beta copy of TPT.