You are looking at a material called torch

The candle material reacts to the light and blow commands.

When lit, it will light the location, but shorten over time until health is gone.

If you create some candles, the singular class becomes 'candl'. This material detects and fixes it to 'candle' when lit.

If there are more than 1 candles (using the more command), then each time it burns out, qty will be reduced and health will go back to healthmax.
Code