init.lua 781 B

123456789101112131415161718192021
  1. local groups = utility.dig_groups("mineral", {glowmineral=1})
  2. local nodes = {
  3. {name="glowstone_luxore", item="glowstone:luxore", texture="default_stone.png^glowstone_glowore.png", desc="Lux Ore", groups=groups},
  4. {name="glowstone_cobble", item="glowstone:cobble", texture="glowstone_cobble.png", desc="Sunstone Deposit", groups=groups},
  5. {name="glowstone_minerals", item="glowstone:minerals", texture="glowstone_minerals.png", desc="Radiant Minerals", groups=groups},
  6. {name="glowstone_glowtox", item="glowstone:glowstone", texture="glowstone_glowstone.png", desc="Toxic Glowstone", groups=groups},
  7. }
  8. for k, v in ipairs(nodes) do
  9. stairs.register_stair_and_slab(
  10. v.name,
  11. v.item,
  12. table.copy(v.groups),
  13. {v.texture},
  14. v.desc,
  15. default.node_sound_stone_defaults()
  16. )
  17. end