config.lua 439 B

12345678910
  1. for i,attr in ipairs({"punch_fruits","dig_harvest"}) do
  2. xpfw.register_attribute(attr,{min=0,max=math.huge,default=0,hud=1})
  3. end
  4. farming_xpfw.dig_scale = tonumber(minetest.settings:get("farming_xpfw.dig_scale")) or 50
  5. farming_xpfw.punch_scale = tonumber(minetest.settings:get("farming_xpfw.punch_scale")) or 50
  6. farming_xpfw.log_dig_scale=math.log(farming_xpfw.dig_scale)
  7. farming_xpfw.log_punch_scale=math.log(farming_xpfw.punch_scale)