init.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. local path = minetest.get_modpath("christmas_holiday_pack")
  2. -- Initialize our namespace.
  3. christmas_holiday_pack = {}
  4. -- Do these submodules.
  5. dofile(path .. "/bell.lua")
  6. dofile(path .. "/crafts.lua")
  7. dofile(path .. "/craftitems.lua")
  8. dofile(path .. "/nodes.lua")
  9. dofile(path .. "/paintings.lua")
  10. dofile(path .. "/presents_functions.lua")
  11. dofile(path .. "/presents_items.lua")
  12. dofile(path .. "/stocking.lua")
  13. dofile(path .. "/tools.lua")
  14. -- If the "3d_armor" mod is present, Candy Cane armor is registered.
  15. if minetest.get_modpath("3d_armor") then
  16. dofile(path .. "/armor.lua")
  17. dofile(path .. "/costumes.lua")
  18. end
  19. -- If the farming_redo mod is present, we add some crops.
  20. if minetest.get_modpath("farming") then
  21. dofile(path .. "/crops.lua")
  22. end
  23. -- If the mobs_npc mod is present (assumes mobs_redo is installed) we run mobs.
  24. if minetest.get_modpath("mobs_npc") then
  25. dofile(path .. "/mobs/candy_cane_man.lua")
  26. dofile(path .. "/mobs/christmas_tree_man.lua")
  27. dofile(path .. "/mobs/crampus_claus.lua")
  28. dofile(path .. "/mobs/gingerbread_man.lua")
  29. dofile(path .. "/mobs/mrs_claus.lua")
  30. dofile(path .. "/mobs/reindeer.lua")
  31. dofile(path .. "/mobs/santa_claus.lua")
  32. dofile(path .. "/mobs/zombie_elf.lua")
  33. end
  34. -- FINALIZE
  35. -- lootchest item table
  36. -- goodie bag item table
  37. -- stocking item table
  38. -- Christmas records had to be moved to the gramophone mod due to its global functions and modpath requirements.