Skip to content

Commit 5d82d14

Browse files
committed
Make clouds flat by default
1 parent 13bafb8 commit 5d82d14

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Unlike the original it has (optional) support for:
1616
* Engine features such as the modern skybox, waving or shadows
1717
* Modern creative inventory and per-player creative mode
1818

19+
To enable some of the modern features check out "Modernize flags" in the settings menu.
20+
1921
This is a game for the [Minetest engine](https://www.minetest.net/), install
2022
at least version 5.5.0 to play it.
2123

mods/default/init.lua

+8-2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ default.modernize = {
8383
pvp = false,
8484
-- Use engine's dynamic skybox with sun and moon
8585
new_skybox = false,
86+
-- Allow clients to use 3D clouds
87+
["3d_clouds"] = false,
8688

8789
-- TODO disable_rightclick_drop, allow_drop, glasslike_framed
8890
}
@@ -338,10 +340,14 @@ minetest.register_on_joinplayer(function(player)
338340
player:set_moon({ texture = "blank.png" })
339341
player:set_stars({ visible = false })
340342
end
341-
player:set_clouds({
343+
local clouds = {
342344
color = "#f0f0ff",
343345
speed = {x=-2, z=0},
344-
})
346+
}
347+
if not default.modernize["3d_clouds"] then
348+
clouds.thickness = 0.001
349+
end
350+
player:set_clouds(clouds)
345351
end)
346352

347353
--

settingtypes.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ no_mob_griefing (No mob griefing) bool false
1616
# modern engine features is enabled.
1717
# Note that some differences in behaviour are unavoidable or miniscule, not
1818
# everything is configurable.
19-
modernize (Modernize flags) flags node_waving,glasslike,drowning,allow_shadows,new_item_entity,disable_oerkki_delete,fix_textures,sounds,wieldhand node_waving,glasslike,drowning,lava_non_renewable,allow_shadows,allow_minimap,allow_zoom,new_item_entity,disable_oerkki_delete,fix_textures,sounds,wieldhand,pvp
19+
modernize (Modernize flags) flags node_waving,glasslike,drowning,allow_shadows,new_item_entity,disable_oerkki_delete,fix_textures,sounds,wieldhand node_waving,glasslike,drowning,lava_non_renewable,allow_shadows,allow_minimap,allow_zoom,new_item_entity,disable_oerkki_delete,fix_textures,sounds,wieldhand,pvp,3d_clouds
2020

2121
# If enabled, players leave footprints when walking over grass.
2222
footprints (Footprints) bool false

0 commit comments

Comments
 (0)