diff --git a/README b/README index 4fd9905..3171114 100644 --- a/README +++ b/README @@ -1,5 +1,6 @@ Weather mod for Minetest (http://minetest.net/) Support for waterplus mod for rain added by sloantothebone +Also added a config file :D License: - Code: LGPL diff --git a/weather/rain.lua b/weather/rain.lua index 0622f71..2caefac 100644 --- a/weather/rain.lua +++ b/weather/rain.lua @@ -42,7 +42,6 @@ minetest.register_globalstep(function(dtime) end) -- Might want to comment this section out if you don't have a fast computer ---if RAIN_DROPS then if RAIN_DROPS and minetest.get_modpath("waterplus") then minetest.register_abm({ nodenames = {"group:crumbly", "group:snappy", "group:cracky", "group:choppy"}, @@ -56,11 +55,8 @@ minetest.register_abm({ local np = addvectors(pos, {x=0, y=1, z=0}) if minetest.env:get_node_light(np, 0.5) == 15 and minetest.env:get_node(np).name == "air" then - --if minetest.get_modpath("waterplus") then - --minetest.env:add_node(np, {name="waterplus:finite_1"}) - --else - minetest.env:add_node(np, {name="default:water_flowing"}) - --end + minetest.env:add_node(np, {name="waterplus:finite_1"}) + --minetest.env:add_node(np, {name="default:water_flowing"}) end end end diff --git a/weather/snow.lua b/weather/snow.lua index aec1080..de93e7e 100644 --- a/weather/snow.lua +++ b/weather/snow.lua @@ -83,11 +83,8 @@ minetest.register_abm({ local np = addvectors(pos, {x=0, y=1, z=0}) if minetest.env:get_node_light(np, 0.5) == 15 and minetest.env:get_node(np).name == "air" then - --if USE_DEFAULT_SNOW then - minetest.env:add_node(np, {name="default:snow"}) - --else - --minetest.env:add_node(np, {name="weather:snow_cover"}) - --end + minetest.env:add_node(np, {name="default:snow"}) + --minetest.env:add_node(np, {name="weather:snow_cover"}) end end end diff --git a/weather/weather.conf b/weather/weather.conf index 7d7c4a7..67990d8 100644 --- a/weather/weather.conf +++ b/weather/weather.conf @@ -1,16 +1,6 @@ ---This controls whether the ground is covered with precipitation. ---If the waterplus mod is activated, rain will drop waterplus:finite_1. ---Otherwise, it will use default:water_flowing which will most likely disappear immediately. ---It should look like rain drops soaking into the ground or something. - ---SNOW_COVER activates snow covering the ground when it falls. ---By default the mod uses its own snow, weather:snow_cover so I added the option USE_DEFAULT_SNOW which makes the mod use default:snow. - - ---Edit: I tested it and it really didnt seem to work. At least the default:water_flowing thing. So I commented things out. RAIN_DROPS requires waterplus, and by default SNOW_COVER is default:snow. Go into snow.lua to change it to weather:snow_cover. ---Here is a pastebin about this issue: http://pastebin.com/qYY1xT3j +-- This turns on and off stuff that appears on the ground when it rains/snows. Rain requires the waterplus mod, and snow uses a node which is included in the mod but you can change that to default:snow by editing snow.lua. +-- Here is a pastebin about some other features I tried to add to the .conf: http://pastebin.com/qYY1xT3j RAIN_DROPS = true - SNOW_COVER = true ---USE_DEFAULT_SNOW = false +