animated.lua 1017 B

12345678910111213141516171819202122232425262728293031323334353637
  1. minetest.register_node('levels:lava_crust', {
  2. description = 'Lava Crust',
  3. tiles = {{name='levels_lava_crust_animated.png',
  4. animation = {type = 'vertical_frames', aspect_w = 32, aspect_h = 32, length = 1.5}}},
  5. light_source = 10,
  6. groups = {breakable=1},
  7. })
  8. for i = 1,10 do
  9. minetest.register_node('levels:fire_'..i, {
  10. description = 'Fire',
  11. drawtype = 'firelike',
  12. tiles = {
  13. {
  14. name = 'levels_fire_'..i..'.png',
  15. animation = {
  16. type = 'vertical_frames',
  17. aspect_w = 32,
  18. aspect_h = 32,
  19. length = 1
  20. },
  21. },
  22. },
  23. inventory_image = 'levels_fire_'..i..'.png^[verticalframe:10:1',
  24. paramtype = 'light',
  25. use_texture_alpha = 'blend',
  26. light_source = 13,
  27. walkable = false,
  28. buildable_to = true,
  29. sunlight_propagates = true,
  30. damage_per_second = 4,
  31. _sound = 'levels_fire',
  32. groups = {breakable=1, plays_sound=1},
  33. })
  34. end