mirror of
https://github.com/t-affeldt/climate_api.git
synced 2025-07-05 01:40:38 +02:00
Enable more options for particles, fix skybox reset, add new debug command, fix daylight influence
This commit is contained in:
@ -36,13 +36,19 @@ climate_api.register_influence("height", function(pos)
|
||||
end)
|
||||
|
||||
climate_api.register_influence("light", function(pos)
|
||||
pos = vector.add(pos, {x = 0, y = 1, z = 0})
|
||||
return minetest.env:get_node_light(pos)
|
||||
end)
|
||||
|
||||
climate_api.register_influence("daylight", function(pos)
|
||||
pos = vector.add(pos, {x = 0, y = 1, z = 0})
|
||||
return minetest.env:get_node_light(pos, 0.5)
|
||||
end)
|
||||
|
||||
climate_api.register_influence("time", function(_)
|
||||
return minetest.get_timeofday()
|
||||
end)
|
||||
|
||||
climate_api.register_influence("day_count", function(_)
|
||||
return minetest.get_day_count()
|
||||
end)
|
Reference in New Issue
Block a user