Advertisement
Guest User

Untitled

a guest
Oct 9th, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. local moreores = {}
  2.  
  3. local defaults = {
  4.     tin_chunk_size = 7,
  5.     silver_chunk_size = 11,
  6.     mithril_chunk_size = 11,
  7.     tin_ore_per_chunk = 3,
  8.     silver_ore_per_chunk = 4,
  9.     mithril_ore_per_chunk = 1,
  10.     tin_min_depth = -31000,
  11.     silver_min_depth = -31000,
  12.     mithril_min_depth = -31000,
  13.     tin_max_depth = 8,
  14.     silver_max_depth = -2,
  15.     mithril_max_depth = -512,
  16. }
  17.  
  18. for key, value in pairs(defaults) do
  19.     local newval = minetest.setting_get("moreores_" .. key)
  20.     if newval then newval = tonumber(newval) else newval = value end
  21.     moreores[key] = value
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement