Changed readme, cleaned up the code a bit.
This commit is contained in:
parent
34046a61e5
commit
1454c8bd25
1
README
1
README
|
@ -1,5 +1,6 @@
|
||||||
Weather mod for Minetest (http://minetest.net/)
|
Weather mod for Minetest (http://minetest.net/)
|
||||||
Support for waterplus mod for rain added by sloantothebone
|
Support for waterplus mod for rain added by sloantothebone
|
||||||
|
Also added a config file :D
|
||||||
|
|
||||||
License:
|
License:
|
||||||
- Code: LGPL
|
- Code: LGPL
|
||||||
|
|
|
@ -42,7 +42,6 @@ minetest.register_globalstep(function(dtime)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Might want to comment this section out if you don't have a fast computer
|
-- 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
|
if RAIN_DROPS and minetest.get_modpath("waterplus") then
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"group:crumbly", "group:snappy", "group:cracky", "group:choppy"},
|
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})
|
local np = addvectors(pos, {x=0, y=1, z=0})
|
||||||
if minetest.env:get_node_light(np, 0.5) == 15
|
if minetest.env:get_node_light(np, 0.5) == 15
|
||||||
and minetest.env:get_node(np).name == "air" then
|
and minetest.env:get_node(np).name == "air" then
|
||||||
--if minetest.get_modpath("waterplus") then
|
minetest.env:add_node(np, {name="waterplus:finite_1"})
|
||||||
--minetest.env:add_node(np, {name="waterplus:finite_1"})
|
--minetest.env:add_node(np, {name="default:water_flowing"})
|
||||||
--else
|
|
||||||
minetest.env:add_node(np, {name="default:water_flowing"})
|
|
||||||
--end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -83,11 +83,8 @@ minetest.register_abm({
|
||||||
local np = addvectors(pos, {x=0, y=1, z=0})
|
local np = addvectors(pos, {x=0, y=1, z=0})
|
||||||
if minetest.env:get_node_light(np, 0.5) == 15
|
if minetest.env:get_node_light(np, 0.5) == 15
|
||||||
and minetest.env:get_node(np).name == "air" then
|
and minetest.env:get_node(np).name == "air" then
|
||||||
--if USE_DEFAULT_SNOW then
|
minetest.env:add_node(np, {name="default:snow"})
|
||||||
minetest.env:add_node(np, {name="default:snow"})
|
--minetest.env:add_node(np, {name="weather:snow_cover"})
|
||||||
--else
|
|
||||||
--minetest.env:add_node(np, {name="weather:snow_cover"})
|
|
||||||
--end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,16 +1,6 @@
|
||||||
--This controls whether the ground is covered with precipitation.
|
-- 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.
|
||||||
--If the waterplus mod is activated, rain will drop waterplus:finite_1.
|
-- Here is a pastebin about some other features I tried to add to the .conf: http://pastebin.com/qYY1xT3j
|
||||||
--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
|
|
||||||
|
|
||||||
RAIN_DROPS = true
|
RAIN_DROPS = true
|
||||||
|
|
||||||
SNOW_COVER = true
|
SNOW_COVER = true
|
||||||
--USE_DEFAULT_SNOW = false
|
|
||||||
|
|
Loading…
Reference in New Issue