init.lua 376 B

123456789101112131415161718
  1. -- Register light
  2. minetest.register_node("light:light", {
  3. description = "Light",
  4. tiles = {"light_light.png"},
  5. paramtype = "light",
  6. light_source = 14,
  7. is_ground_content = false,
  8. groups = {dig_immediate = 2},
  9. })
  10. -- Give to new player
  11. --[[
  12. minetest.register_on_newplayer(function(player)
  13. local inv = player:get_inventory()
  14. inv:add_item("main", "light:light 64")
  15. end)]]