Commit Graph

1065 Commits

Author SHA1 Message Date
sfan5 6e956c9c07
Let node 'place' and 'dug' sounds be heard by other players 2022-05-21 16:17:29 +02:00
HybridDog 9c47c36741
Add table.shuffle (#8299) 2022-05-21 16:17:28 +02:00
rubenwardy a4076c69c0
Update settingtypes.txt for new languages 2022-05-21 16:17:28 +02:00
rubenwardy f81f909463
Add Lua unit tests to builtin using busted (#9184) 2022-05-21 16:17:28 +02:00
HybridDog 6a4a4fb737
Add table.key_value_swap (#9248) 2022-05-21 16:17:27 +02:00
paramat c6c2924273
Remove Mapgen V7 floatlands in preparation for new implementation (#9238)
Preserve the floatland flag of existing worlds, to be used again
when the new implementation is added.
2022-05-21 16:17:27 +02:00
Wuzzy e675431e87
Fix item eat sound not played if last item (#9239) 2022-05-21 16:17:26 +02:00
lhofhansl 29b09aec3e
Allow wave_heights up to two nodes. #9220 2022-05-21 16:17:26 +02:00
ANAND fab31e65e0
/privs: Delimit output list of privs with commas (#9224) 2022-05-21 16:17:25 +02:00
Wuzzy 87511649f7
Builtin: Make dropped light_source nodes glow (#9200) 2022-05-21 16:17:25 +02:00
Bluebird c928c4eb43
Make core.item_place_node return position of placed node. (#7713) 2022-05-21 16:17:25 +02:00
sfan5 0afb8b9450
Correct documentation around minetest.item_place
The code that calls minetest.item_place_object was removed
in 2013 in commit fc61c8809b9a1d47d9f117446764107a56cec956.
2022-05-21 16:17:24 +02:00
rubenwardy db5fed2cd6
Fix luacheck errors 2022-05-21 16:17:24 +02:00
ANAND 13bd22bb39
Use a safer implementation of gsub in core.chat_format_message (#9133)
This search-and-replace implementation does not use Lua pattern-matching
2022-05-21 16:17:23 +02:00
paramat 0fd9c533c6
Randomwalk cave liquids: Remove deprecated 'lava depth' parameter (#9105)
Low-disruption first step towards removing the hardcoded cave liquid
code. Since MT 5.0.0 cave liquids can be defined and located by
biome definitions instead.
In games that do not yet use biome definitions to define and locate
cave liquids (MTGame does), lava will now appear below
y = water_level - 256 instead of below 'lava depth' (usually y = -256).
Therefore no change in most mapgens if using the default 'lava depth'.
2022-05-21 16:17:23 +02:00
paramat 2e72d96513
Tunnels: Completely disable generation when 'cave width' >= 10.0 (#9093)
Previously, the only way to disable the 3D noise tunnels was to set
'cave width' > 1.0, however doing so did not disable the very intensive
noise calculations or the generation loop.
All the other types of cave generation (randomwalk caves, caverns)
can already be independently and completely disabled.
This feature is now needed more because the small randomwalk caves are
now available for use as an alternative to the 3D noise tunnels.
2022-05-21 16:17:22 +02:00
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