Skip to content

Commit b430f67

Browse files
committed
Make clouds flat by default
1 parent 3e81159 commit b430f67

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
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-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ default.get_translator = S
4141
-- falling sand/gravel
4242
-- investigate long vertical shafts (mgv6 fail?)
4343
-- some particle effects
44-
-- make clouds flat
4544
-- option to make mobs not perfectly flat? (think extruded mesh)
4645

4746
-- long-term TODOs?:
@@ -83,6 +82,8 @@ default.modernize = {
8382
pvp = false,
8483
-- Use engine's dynamic skybox with sun and moon
8584
new_skybox = false,
85+
-- Allow clients to use 3D clouds
86+
["3d_clouds"] = false,
8687

8788
-- TODO disable_rightclick_drop, allow_drop, glasslike_framed
8889
}
@@ -340,10 +341,14 @@ minetest.register_on_joinplayer(function(player)
340341
player:set_moon({ texture = "blank.png" })
341342
player:set_stars({ visible = false })
342343
end
343-
player:set_clouds({
344+
local clouds = {
344345
color = "#f0f0ff",
345346
speed = {x=-2, z=0},
346-
})
347+
}
348+
if not default.modernize["3d_clouds"] then
349+
clouds.thickness = 0.0005
350+
end
351+
player:set_clouds(clouds)
347352
end)
348353

349354
--

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)