init.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Every tasks should be in it's own file. If there are multiple tasks that are all varients
  3. of the same tasks it's okay to put them all the same file to allow for re-using local functions.
  4. Node's with infotexts should have two varients;
  5. info_repair : This is used when the task is available to complete.
  6. info_working : This is used when the task is completed and is waiting to become available.
  7. ]]
  8. tasks = {}
  9. tasks.player_config = {}
  10. --Helper functions/tools
  11. dofile(minetest.get_modpath('tasks')..'/functions.lua')
  12. dofile(minetest.get_modpath('tasks')..'/configurator.lua')
  13. dofile(minetest.get_modpath('tasks')..'/items.lua')
  14. dofile(minetest.get_modpath('tasks')..'/storage_locker.lua')
  15. --Actual tasks
  16. dofile(minetest.get_modpath('tasks')..'/beehive.lua')
  17. dofile(minetest.get_modpath('tasks')..'/campfire.lua')
  18. dofile(minetest.get_modpath('tasks')..'/code.lua')
  19. dofile(minetest.get_modpath('tasks')..'/engine_0.lua')
  20. dofile(minetest.get_modpath('tasks')..'/engine_1.lua')
  21. dofile(minetest.get_modpath('tasks')..'/example.lua')
  22. dofile(minetest.get_modpath('tasks')..'/food_crates.lua')
  23. dofile(minetest.get_modpath('tasks')..'/forcefield_gen.lua')
  24. dofile(minetest.get_modpath('tasks')..'/match.lua')
  25. dofile(minetest.get_modpath('tasks')..'/microscope.lua')
  26. dofile(minetest.get_modpath('tasks')..'/printing_press.lua')
  27. dofile(minetest.get_modpath('tasks')..'/radio_dish.lua')
  28. dofile(minetest.get_modpath('tasks')..'/rubbish.lua')
  29. dofile(minetest.get_modpath('tasks')..'/smoke_detector.lua')
  30. dofile(minetest.get_modpath('tasks')..'/torpedo_heater.lua')
  31. dofile(minetest.get_modpath('tasks')..'/transformer.lua')