init.lua 787 B

123456789101112131415161718192021222324252627282930
  1. -- Minetest 0.4 mod: default
  2. -- See README.txt for licensing and other information.
  3. -- The API documentation in here was moved into game_api.txt
  4. -- Definitions made by this mod that other mods can use too
  5. if not minetest.global_exists("default") then default = {} end
  6. default.modpath = minetest.get_modpath("default")
  7. default.LIGHT_MAX = 15
  8. dofile(default.modpath .. "/cactus.lua")
  9. dofile(default.modpath .. "/papyrus.lua")
  10. dofile(default.modpath .. "/nodes.lua")
  11. dofile(default.modpath .. "/craftitems.lua")
  12. dofile(default.modpath .. "/crafting.lua")
  13. dofile(default.modpath .. "/tvine.lua")
  14. function default.lava_death_messages()
  15. return {
  16. "<player> melted into a crisp.",
  17. "<player> burnt to ash.",
  18. "<player> stepped in something hot.",
  19. "<player> did a Gollum.",
  20. }
  21. end