Commit Graph

1180 Commits

Author SHA1 Message Date
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
SmallJoker f86fe84050
HTTP API: Allow binary downloads and headers (#8573)
Add minetest.features.httpfetch_binary_data
2022-05-21 16:17:00 +02:00
paramat 763d624c22
Dungeons: Settable density noise, move number calculation to mapgens (#8473)
Add user-settable noise parameters for dungeon density to each mapgen,
except V6 which hardcodes this noise parameter.

Move the calculation of number of dungeons generated in a mapchunk out
of dungeongen.cpp and into mapgen code, to allow mapgens to generate
any desired number of dungeons in a mapchunk, instead of being forced
to have number of dungeons determined by a density noise.

This is more flexible and allows mapgens to use dungeon generation to
create custom structures, such as occasional mega-dungeons.
2022-05-21 16:17:00 +02:00
ANAND 0b409ca993
builtin/../register.lua: Abort make_wrap_deregistration if param is invalid 2022-05-21 16:16:59 +02:00
paramat 249d1dd9a9
World start time: Move to first full light (day night ratio = 1000) (#8410)
6125 is the time of first full light according to 'get_node_light()',
and the time of first full light visually when basic shaders are on.
This is the optimum default new world start time, taking all possible
games into account.
The previous time assumed a game similar to Minetest Game. Games
should set this setting themselves according to their needs.
2022-05-21 16:16:59 +02:00
rubenwardy fefe71f8b0
Change pitch fly binding to 'P', add to change keys menu (#8314) 2022-05-21 16:16:58 +02:00
Desour aa0ee4cc03
Optimize core.after in a simple way (#8351) 2022-05-21 16:16:58 +02:00
paramat a623a888a7
Require 'waving = 3' in a nodedef to apply the liquid waving shader (#8418)
Makes the liquid waving shader per-nodedef like waving leaves/plants,
instead of being applied to all liquids.
Like the waving leaves/plants shaders, the liquid waving shader can
also be applied to meshes and nodeboxes.

Derived from a PR by t0ny2.
2022-05-21 16:16:58 +02:00
paramat 3c4a039697
Document 'highly unstable' mapgens instead of 'stable' mapgens (#8404) 2022-05-21 16:16:57 +02:00
paramat 02c763a3a7
num_emerge_threads: Fix documentation of automatic selection 2022-05-21 16:16:57 +02:00
ANAND a07575bd51
core.after: Improve assertion message (#8388) 2022-05-21 16:16:56 +02:00
ANAND 6cf1909254
Builtin: Add vector.angle(). Returns the angle between 2 vectors (#7738) 2022-05-21 16:16:56 +02:00
paramat e639e7a37b
num_emerge_threads: Warn of crashes when > 1 (#8357) 2022-05-21 16:16:56 +02:00
HybridDog 6be225b9fd
World config: Make depends easier to read (#7396)
* Do not always show every depends textfieds

When there are no dependencies, it does not longer show an empty list.

* Adjust the list height to avoid a scrollbar when possible

* change minimum height and no dependencies message

* Do not get depends for modpacks
2022-05-21 16:16:55 +02:00
paramat f50fc6a564
Change 'num_emerge_threads' default to 1 (#8303) 2022-05-21 16:16:55 +02:00
HybridDog 744d7a14b4
Add math.factorial (#8298) 2022-05-21 16:16:54 +02:00
Desour f1a228902a
Add sounds for falling and attached nodes (#7719)
* Add sounds for falling and attached nodes

The sound specified in `node_definition.sounds.fall` is used.
When a falling node is spawned at a position or an attached node drops, the sound is played at this position.

* allow all sorts of soundspecs
2022-05-21 16:16:54 +02:00
rubenwardy f205d99aa7
Hide uninstall package button on unmodifiable paths (#8255) 2022-05-21 16:16:53 +02:00
paramat 17fcbff308
Update minetest.conf.example and settings_translation_file.cpp (#8278) 2022-05-21 16:16:53 +02:00
paramat 31f311dff5
Settingtypes.txt: Remove 2 lines missed in a recent commit (#8277) 2022-05-21 16:16:53 +02:00