init.lua 1.4 KB

123456789101112131415161718192021222324252627282930
  1. if not minetest.global_exists("morechests") then morechests = {} end
  2. morechests.modpath = minetest.get_modpath("morechests")
  3. dofile(morechests.modpath .. "/nodes.lua")
  4. dofile(morechests.modpath .. "/crafts.lua")
  5. if minetest.get_modpath("easyvend") then
  6. easyvend.register_chest("morechests:woodchest_locked_open", "main", "owner")
  7. easyvend.register_chest("morechests:woodchest_locked_closed", "main", "owner")
  8. easyvend.register_chest("morechests:copperchest_locked_open", "main", "owner")
  9. easyvend.register_chest("morechests:copperchest_locked_closed", "main", "owner")
  10. easyvend.register_chest("morechests:diamondchest_locked_open", "main", "owner")
  11. easyvend.register_chest("morechests:diamondchest_locked_closed", "main", "owner")
  12. easyvend.register_chest("morechests:ironchest_locked_open", "main", "owner")
  13. easyvend.register_chest("morechests:ironchest_locked_closed", "main", "owner")
  14. easyvend.register_chest("morechests:goldchest_locked_open", "main", "owner")
  15. easyvend.register_chest("morechests:goldchest_locked_closed", "main", "owner")
  16. easyvend.register_chest("morechests:silverchest_locked_open", "main", "owner")
  17. easyvend.register_chest("morechests:silverchest_locked_closed", "main", "owner")
  18. easyvend.register_chest("morechests:mithrilchest_locked_open", "main", "owner")
  19. easyvend.register_chest("morechests:mithrilchest_locked_closed", "main", "owner")
  20. end