Changed readme, cleaned up the code a bit.

This commit is contained in:
sloantothebone 2015-08-04 13:46:20 -06:00
parent 34046a61e5
commit 1454c8bd25
4 changed files with 8 additions and 24 deletions

1
README
View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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