init.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Ingots - allows the placemant of ingots in the world
  3. Copyright (C) 2018 Skamiz Kazzarch
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with this library; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  15. ]]--
  16. ingots = {}
  17. local conf = dofile(minetest.get_modpath("ingots").."/conf.lua")
  18. dofile(minetest.get_modpath("ingots").."/api.lua")
  19. --Here you can make individual choices per ingot on which variant will be used.
  20. --To disable the ability of an ingot to be placed just comment out it's registration line.
  21. ingots.register_ingots("default:copper_ingot", "ingot_copper.png", conf.is_big)
  22. ingots.register_ingots("default:bronze_ingot", "ingot_bronze.png", conf.is_big)
  23. ingots.register_ingots("default:steel_ingot", "ingot_steel.png", conf.is_big)
  24. ingots.register_ingots("default:gold_ingot", "ingot_gold.png", conf.is_big)
  25. ingots.register_ingots("default:clay_brick", "ingot_clay.png", conf.is_big)
  26. ingots.register_ingots("moreores:silver_ingot", "ingot_silver.png", conf.is_big)
  27. ingots.register_ingots("moreores:mithril_ingot", "ingot_mithril.png", conf.is_big)
  28. ingots.register_ingots("moreores:tin_ingot", "ingot_tin.png", conf.is_big)
  29. ingots.register_ingots("brass:ingot", "ingot_brass.png", conf.is_big)
  30. ingots.register_ingots("chromium:ingot", "ingot_chromium.png", conf.is_big)
  31. ingots.register_ingots("lead:ingot", "ingot_lead.png", conf.is_big)
  32. ingots.register_ingots("carbon_steel:ingot", "ingot_carbon_steel.png", conf.is_big)
  33. ingots.register_ingots("stainless_steel:ingot", "ingot_stainless_steel.png", conf.is_big)
  34. ingots.register_ingots("zinc:ingot", "ingot_zinc.png", conf.is_big)
  35. ingots.register_ingots("cast_iron:ingot", "ingot_cast_iron.png", conf.is_big)
  36. ingots.register_ingots("techcrafts:mixed_metal_ingot", "ingot_mixed_metal.png", conf.is_big)
  37. ingots.register_ingots("lapis:pyrite_ingot", "ingot_brass.png", conf.is_big)
  38. ingots.register_ingots("akalin:ingot", "gloopores_akalin_block.png", conf.is_big)
  39. ingots.register_ingots("alatro:ingot", "gloopores_alatro_block.png", conf.is_big)
  40. ingots.register_ingots("arol:ingot", "glooptest_arol_block.png", conf.is_big)
  41. ingots.register_ingots("kalite:ingot", "ingot_kalite.png", conf.is_big)
  42. ingots.register_ingots("talinite:ingot", "gloopores_talinite_block.png", conf.is_big)