Commit Graph

1199 Commits

Author SHA1 Message Date
rubenwardy ba458341b2
Item Entity: Add message to moveresult assertion (#9797) 2022-05-21 16:17:43 +02:00
Yaman Qalieh 2f24ef6909
Allow placing auto-rotating nodes on other nodes in on_rightclick (#9859) 2022-05-21 16:17:43 +02:00
Zughy e0550051b9
Document inf value in rollback commands (#9789) 2022-05-21 16:17:42 +02:00
Wuzzy 659fff44df
Add mapgen settings to world creation dialog (#9254) 2022-05-21 16:17:42 +02:00
Wuzzy 143f59d4ad
Add support for statbar “off state” icons (#9462)
This adds support for optional “off state” icons for statbars. “off state icons” can be used to denote the lack of something, like missing hearts or bubbles.

Add "off state" textures to the builtin statbars.

Co-authored-by: SmallJoker <mk939@ymail.com>
2022-05-21 16:17:41 +02:00
sfan5 e97eab644a
Enable collide_with_objects for falling entities
falling nodes intentionally still fall through players
fixes #5313
2022-05-21 16:17:41 +02:00
sfan5 789f464a4c
Rewrite falling entity to make use of collision info
fixes #4781, fixes #9293
2022-05-21 16:17:41 +02:00
sfan5 a40c1942a9
Update num_emerge_threads description 2022-05-21 16:17:40 +02:00
Wuzzy 755989d746
Change default keys for cam/minimap to C/V (#9779) 2022-05-21 16:17:40 +02:00
Loïc Blot e18e457a2b
Add MetricsBackend with prometheus counter support 2022-05-21 16:17:39 +02:00
ANAND 95ada50fdb
Fix breath_bar scaling; delay breath_bar hiding by one second (#8271)
PLAYER_MAX_BREATH_DEFAULT was earlier set to 11, so that 10 bubbles are shown before the breath bar disappears.

Now, PLAYER_MAX_BREATH_DEFAULT is set to 10, and the breath_bar scaling code in builtin has been tweaked to show all 10 bubbles before hiding the breath_bar
2022-05-21 16:17:39 +02:00
sfan5 66bd90809b
Rewrite builtin item entity to use collision info
fixes #8967
2022-05-21 16:17:38 +02:00
sfan5 93985fccf5
Expose collision information to LuaEntity on_step 2022-05-21 16:17:38 +02:00
sfan5 031321cbb8
builtin: Correctly indicate failure in /spawnentity 2022-05-21 16:17:38 +02:00
David Leal 346570ad2f
Add new command /revokeme <priv> (#9584) 2022-05-21 16:17:37 +02:00
HybridDog ddf381bffc
minetest.serialize: Reversible number serialization (#9722)
* minetest.serialize: Reversible number to string conversion

The %a format is not supported in Lua 5.1.
This commit also adds two tests for number serialization.
2022-05-21 16:17:37 +02:00
SmallJoker 3532df05f3
Add default stack size setting (#8873)
New setting "default_stack_max" to alter the default stack sizes of all items when desired.

Co-authored-by: Pascal Abresch <nep@packageloss.eu>
2022-05-21 16:17:36 +02:00
rubenwardy 3f7595d6ec
Fix delayed error message in start game tab 2022-05-21 16:17:36 +02:00
Desour 93f7ab4fa2
Allow to select en as language in settings menu (#9604)
fixes #9599
2022-05-21 16:17:36 +02:00
Hugo Locurcio dfa84c2322
Allow relative directories for `screenshot_path`, tweak default path (#9122)
This will likely be more intuitive for users and should play better
with sandboxed distributions such as Flatpak.

In addition, the screenshot directory will now be created if it doesn't
exist already.
2022-05-21 16:17:35 +02:00
Wren Turkal 3c04a4c31d
Add allowed_mapgens option in game.conf. (#9263)
The game.conf has a disallowed_mapgens option. However, some games
require a certain mapgen to be used, like the CTF plugin. This change
adds an option to specify allowed mapgens so that the setting can be
specified in a way that needn't be updated as map generators are added
to Minetest.
2022-05-21 16:17:35 +02:00
rubenwardy 998fdbdaf3
Update credits for 5.2.0 (#9593) 2022-05-21 16:17:34 +02:00
sfan5 fb880865e0
Builtin: Make item entities glow less (#9594)
minor adjustment to #9200
2022-05-21 16:17:34 +02:00
ANAND 8338e55fac
Ignore near_plane setting on non-Android platforms (#8749)
Camera's near-plane will be hard-coded to 0.1 on all non-Android platforms. The upper-bound of this setting has been reduced to 0.25, as 0.5 is just way too high.
2022-05-21 16:17:33 +02:00
Wuzzy 6a94a59520
Add comments for translators (#9510)
* Add translator comments for "special" strings

* Add translator comments for some "tricky" strings
2022-05-21 16:17:33 +02:00
Wuzzy e45995ad1c
Fix some chatcommands not returning a value (#9503) 2022-05-21 16:17:33 +02:00
Wuzzy 3dc79a8569
Cleanup global namespace pollution in builtin (#9451) 2022-05-21 16:17:32 +02:00
sfan5 7204509308
Fix potential security issue(s), documentation on minetest.deserialize() (#9369)
Also adds an unittest
2022-05-21 16:17:32 +02:00
Wuzzy 783098c161
Fix pathfinder bugs: returning nil frequently, broken A*, jump through solid nodes (#9339)
* Fix pathfinder fail when startpos is over air
* Note down pathfinder restrictions
* Implement real A* search
* Pathfinder: Implement buildPath non-recursively
* Update find_path documentation
* Pathfinder: Check if jump path is unobstructed
* Pathfinder: Fix drop check first checking upwards
* Pathfinder: Return nil if source or dest are solid
* Pathfinder: Use priority queue for open list
2022-05-21 16:17:31 +02:00
sfan5 8cfe6e3a31
Profiler: Fix wrong function name for entities 2022-05-21 16:17:31 +02:00
sfan5 36adf45697
Move core.get_connected_players() implementation to C++
Keeping the ObjectRefs around in a table isn't ideal and this allows
removing the somewhat nonsensical is_player_connected() added in 86ef7147.
2022-05-21 16:17:30 +02:00
Wuzzy a2983962f7
Falling nodes: Add support for facedir, colorfacedir, wallmounted, colorwallmounted, color, airlike, signlike, torchlike and glow (#9205) 2022-05-21 16:17:30 +02:00
SmallJoker 739965416b
Builtin: Fix error by digging unknown nodes 2022-05-21 16:17:30 +02:00
sfan5 d76e2848bb
Convert sound_play uses in builtin to ephemeral 2022-05-21 16:17:29 +02:00
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