Commit Graph

1199 Commits

Author SHA1 Message Date
paramat 020412b3a2
Randomwalk caves: Add parameters for number, proportion flooded. Allow small caves (#8928)
Add mapgen parameters to set the range of the random number of
randomwalk caves per mapchunk, and to set the proportion that are
flooded with liquids.
Default values are, for now, unchanged from the previous hardcoded
values.

Add parameters to allow small randomwalk caves
Disabled by default for now as they have never been present in the
non-mgv6 mapgens.
2022-05-21 16:17:22 +02:00
sfan5 65ac2ba313
Improve documentation around banning (#9088)
* Fix ban chatcommand description
* Correct ban API documentation
2022-05-21 16:17:21 +02:00
Pierre-Yves Rollo 559893ecbe
Formspec: add hypertext element 2022-05-21 16:17:21 +02:00
Alistair Findlay 1e3ed331cb
Builtin: Improve /clearobjects message (#9084) 2022-05-21 16:17:20 +02:00
random-geek 6983312bb6
Change some usages of "deprecated" to "obsolete" (#9062)
"Deprecated" means that something is still in use, but is unsupported and needs to be removed.
"Obsolete" means it is already out of use.
2022-05-21 16:17:20 +02:00
Wuzzy e336781e49
Add help texts for settings that lack one (#9007) 2022-05-21 16:17:19 +02:00
paramat de46384c5b
Improve light curve parameter limits and documentation (#9054)
Revert gamma upper limit to 3.0 because that was raised based on
a misunderstanding and had no benefit. A sane upper limit is
needed as players on a competitive server tend to use the maximum.
Set gamma lower limit to 0.33 for consistency with 3.0.
Set sane limits on alpha, beta, boost and enforce these in code
to limit values entered in minetest.conf and to avoid easy cheating
by editing settingtypes.txt.
Improve documentation and 'readable' setting names.
Clarify that gamma does not significantly affect natural night light.
light.cpp: Various codestyle and comment improvements.
2022-05-21 16:17:19 +02:00
paramat ed42ec1ebc
Settingtypes.txt: Various improvements (#9047) 2022-05-21 16:17:18 +02:00
Aaron Suen 0010957299
Fix rotate_node to return the correct itemstack.
All on_* hooks that return an itemstack are NOT guaranteed to
modify and return the original stack.  We cannot count on the
behavior of the existing builtin definitions not to be overridden
by game/mod logic.
2022-05-21 16:17:18 +02:00
Warr1024 1e37f540e5
Merge pull request #8166 from Warr1024/fix7020
Fix (or workaround?) for 'Falling nodes with node inventory cause crash when unloaded'
2022-05-21 16:17:17 +02:00
Wuzzy b4241e1dc7
All Settings: Set min limit for crtitical settings (#9000) 2022-05-21 16:17:17 +02:00
Desour 241704049e
Allow grep-ing for on_grant and on_revoke (#8958)
Just two code comments are added.
2022-05-21 16:17:17 +02:00
srfqi 4ba095f2fb
All settings: Fix missing flags checkbox caused by 'possible flags' order (#8997)
Previously, the 'rivers' checkbox was missing for mgcarpathian, caused by the 'possible flags' order: 'caverns,nocaverns,rivers,norivers'.
Also reorder mgcarpathian 'possible flags', but only for consistency.
2022-05-21 16:17:16 +02:00
HybridDog a2a8ebd68f
Automatically enable depends of mods when enabling the mods in the world config menu (#3473) 2022-05-21 16:17:16 +02:00
Hugo Locurcio dea9dc1be6
Rename "private messages" to "direct messages" (#8971)
These messages can be read by server administrators, which makes them
not actually private.
2022-05-21 16:17:15 +02:00
sfan5 598a344d97
Punchwear (improved) (#8959) 2022-05-21 16:17:15 +02:00
SmallJoker e885b6b9bb
Fix AreaStore's IDs persistence (#8888)
Improve documentation
Read old formats
Fix free ID function. Return first gap in map
2022-05-21 16:17:15 +02:00
Tim Myers d6a5edd1d2
Also print help commands to chat for server terminal (#8869) 2022-05-21 16:17:14 +02:00
Hugo Locurcio 72d4f571d7
Improve undersampling settings
The setting now accepts values between 1 and 8 in the
Advanced Settings menu.
Values 0 and 1 now behave the same way (setting it to 1 won't
disable MSAA anymore), so there's no need to expose 0 as a value.

This closes #8939.
2022-05-21 16:17:14 +02:00
SmallJoker 59a71a1c24
Formspecs: Introduce formspec_version to mods 2022-05-21 16:17:13 +02:00
paramat 837b407a9b
Dungeons: Remove non-functional 'projecting dungeons' setting (#8897) 2022-05-21 16:17:13 +02:00
HybridDog b38e164694
Move debug.txt after it grows too big (#8904)
Before opening the file for writing, its file size is tested. If it exceeds 50 MB, it is moved to debut.txt.1, otherwise the log is appended to the old messages. An old debut.txt.1 is removed if it already exists.
2022-05-21 16:17:12 +02:00
sfan5 60c7b6bce0
Force item entities out of solid nodes (simpler) (#8885) 2022-05-21 16:17:12 +02:00
srfqi 39f576f43a
'All Settings': Don't use checkboxes for 'no...' mapgen flags (#7847) 2022-05-21 16:17:12 +02:00
paramat 0c38513668
Various settingtypes.txt improvements (#8867)
Improve 'readable' setting names for waving water settings.
Change 'near plane' to 'near clipping plane'.
Document physics settings.

mgv6_spflags:
Change 'new biome system' to 'snowbiomes flag' for clarity.
Add missing 'noflat' flag to default flags.
2022-05-21 16:17:11 +02:00
Wuzzy 5be4bf94f2
Fix default hand definition not using wieldhand.png 2022-05-21 16:17:11 +02:00
Desour 04ee4e442d
Fix undeclared global warning because of _ (#8798) 2022-05-21 16:17:10 +02:00
sfan5 92f1a1b43e
Add player knockback on punch to builtin 2022-05-21 16:17:10 +02:00
SmallJoker 3c0c3e0084
Builtin UI: Move box element to ensure correct draw order 2022-05-21 16:17:09 +02:00
ANAND 6002b4e6e7
Allow customizing chat message format (#8529) 2022-05-21 16:17:09 +02:00
Beha d669effb5a
Fix usage of wrong variable in builtin chat command handling (#8762)
This was introduced in commit 8e75785 and resulted in chat commands not
returning their output text.
2022-05-21 16:17:09 +02:00
rubenwardy d5c162fb03
Add luacheck to check builtin (#7895) 2022-05-21 16:17:08 +02:00
rubenwardy 7c95bad286
Add styles to most elements 2022-05-21 16:17:08 +02:00
rubenwardy bdbc9d2e93
Add style[] tag with button support 2022-05-21 16:17:07 +02:00
SmallJoker ccfc252728
Builtin: Forward old return values
Was forgotten in 69bf964.
2022-05-21 16:17:07 +02:00
SmallJoker acdb9067e8
Mainmenu: Use textarea in error formspecs 2022-05-21 16:17:06 +02:00
Wuzzy 4e5f856b77
Group "immortal" also protects players from damage
Document new meaning of immortal=1 for players

Disable breathing if player is immortal

Hide builtin statbars if player immortal (delayed)

Co-authored-by: ClobberXD <ClobberXD@gmail.com>
2022-05-21 16:17:06 +02:00
SmallJoker 8c94c1e813
Check for 'action' field in ABMs & LBMs 2022-05-21 16:17:06 +02:00
paramat 9df912fe08
Re-order mapgens in mainmenu and 'all settings' mapgen selection (#8705)
v6 always last to discourage selection.
Special mapgens flat, fractal, singlenode, next to last. Of these, singlenode
last to discourage selection.
Of the remaining, v5 last due to age, v7 first due to being the default.
2022-05-21 16:17:05 +02:00
paramat e053de8f15
Mgfractal: Make non-fractal terrain optional (#8702)
Enabled by default.
Only allow spawn on fractal, not on seabed terrain.
Various codestyle and comment improvements.
2022-05-21 16:17:05 +02:00
SmallJoker b7d341848b
Add /help formspec for commands and privileges (#8385)
* Trigger for 'all' as well
* Add description textarea, double-click to copy
2022-05-21 16:17:04 +02:00
paramat ba34c40564
Document the deprecation of hardcoded cave liquids (#8692) 2022-05-21 16:17:04 +02:00
HybridDog c8730d2591
Use vector.dot and vector.cross in vector.angle 2022-05-21 16:17:03 +02:00
HybridDog 7f7140bae1
Add vector.dot and vector.cross
Mostly copied from MarkuBu's code
2022-05-21 16:17:03 +02:00
SmallJoker 0c57db4cdc
Docs: Clarify where to check for 'protection_bypass' (#8675) 2022-05-21 16:17:03 +02:00
ANAND 07d849e691
Increase upper limit of display_gamma to 10 (#8618) 2022-05-21 16:17:02 +02:00
paramat f19c465a91
Mapgen Carpathian: Add optional rivers (#7977)
Rivers are disabled by default and will not be added to existing worlds.
Rewrite getSpawnLevelAtPoint() to be simpler and more consistent with
generateTerrain().
2022-05-21 16:17:02 +02:00
Paul Ouellette c44eb57c25
Use CDB author and name in installed package's config (#8550)
They are used for tracking the package, so should match ContentDB.
2022-05-21 16:17:01 +02:00
Thomas Rudin 5a43b3d41e
Save forceloaded blocks file periodically (#8535)
saves the forceloaded blocks periodically.
checks every 10 seconds if the forceloaded blocks got changed in-game
and persists them on-disk if that's the case
2022-05-21 16:17:01 +02:00
Desour f23995cb92
Remove modstore leftovers. Fix core.show_path_select_dialog documentation (#8572)
This was forgotten in #5852.
2022-05-21 16:17:01 +02:00