minetest.register_node('levels:lava_crust', {
   description = 'Lava Crust',
   tiles = {{name='levels_lava_crust_animated.png',
         animation = {type = 'vertical_frames', aspect_w = 32, aspect_h = 32, length = 1.5}}},
   light_source = 10,
   groups = {breakable=1},
})

for i = 1,10 do

   minetest.register_node('levels:fire_'..i, {
      description = 'Fire',
      drawtype = 'firelike',
      tiles = {
         {
            name = 'levels_fire_'..i..'.png',
            animation = {
               type = 'vertical_frames',
               aspect_w = 32,
               aspect_h = 32,
               length = 1
            },
         },
      },
      inventory_image = 'levels_fire_'..i..'.png^[verticalframe:10:1',
      paramtype = 'light',
      use_texture_alpha = 'blend',
      light_source = 13,
      walkable = false,
      buildable_to = true,
      sunlight_propagates = true,
      damage_per_second = 4,
      _sound = 'levels_fire',
      groups = {breakable=1, plays_sound=1},
   })
end
