You are looking at a material called candle

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.

The rate of shortening depends on the worth of a single candle. If you create 10 candles worth 100 then light the candles, each candle is worth 10 pennies and will shorten by 1 health every 1 out of 10 ticks until it burns out. The total worth is reduced by the worth of 1 at that time.

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