Commit Graph

1418 Commits

Author SHA1 Message Date
Zughy
0f3f1a001c lua_api.txt: add missing backticks 2022-06-13 18:31:33 +02:00
sfan5
804c255941 Improve lua_api.txt a bunch 2022-06-13 18:31:03 +02:00
Lars Müller
e7d4ec6834 on_deactivate: distinguish removal and unloading ()
Sometimes you need to be able to do removal-related cleanup, such as removing files from disk, or entries from a database. staticdata obviously isn't suitable for large data. The data shouldn't be removed if the entity is unloaded, only if it is removed.
2022-06-11 20:01:14 +02:00
Jude Melton-Houghton
ba65e0ace7 Fix LBM docs 2022-06-11 00:41:26 +02:00
rubenwardy
4baf56520d Android: Add support for sharing debug.txt () 2022-06-05 17:42:09 +01:00
Lars Mueller
e82985c0a1 Document itemstrings with metadata 2022-06-05 15:20:13 +02:00
Wuzzy
6a6b579c54 Add helper functions to make tool usable n times () 2022-06-03 21:47:04 +02:00
Zughy
b72932b445 Docs: remove unimplemented preserve field in crafting recipes 2022-06-03 21:46:26 +02:00
sfan5
5cd7b0c6e4 Remove remains of video mode querying 2022-05-29 14:00:19 +02:00
sfan5
f195db2d14 Add API function to invoke player respawn
closes 
2022-05-29 14:00:19 +02:00
Zughy
c660218e43 Docs: clarify spawn_by for decorations 2022-05-23 22:49:48 +02:00
Wuzzy
fa682270a9 Add missing comma in example in lua_api.txt () 2022-05-22 15:23:04 -04:00
Wuzzy
ac5e8176b9 Add relative numbers for commands by prepending ~ ()
* Add relative numbers for commands by prepending ~

* Some builtin code cleanup

* Disallow nan and inf in minetest.string_to_area

* Remove unused local variable teleportee (makes Luacheck happy)

* Clean up core.string_to_pos

* Make area parsing less permissive

* Rewrite tests as busted tests

* /time: Fix negative minutes not working

Co-authored-by: Lars Mueller <appgurulars@gmx.de>
2022-05-22 10:28:24 -04:00
rubenwardy
4e9e230e34 Deprecate game.conf name, use title instead () 2022-05-21 16:23:30 +01:00
Zughy
4fb4991f5e Add doc to list breaking changes for the next major release 2022-05-10 22:36:50 +02:00
Lars Müller
53c70b5f27 Docs: Recommend self.name () 2022-05-09 20:41:47 +02:00
Lars Müller
ae7664597e Add vector.combine () 2022-05-04 07:44:14 -04:00
sfan5
e7659883cc Async environment for mods to do concurrent tasks () 2022-05-02 20:56:06 +02:00
Lars Müller
fccf1e2eac Support CSS Color Module Level 4 () 2022-04-27 17:00:02 -04:00
Lars Müller
48d1bca9b8 Fix typo: vector.check() ought to be vector.check(v) 2022-04-24 21:10:03 +02:00
Lars Müller
583257f093 Update docs to reference CSS Color Module Level 3
as the named color "rebeccapurple" is unavailable, Level 4 clearly isn't supported; the link should not point to a dev version of the spec either
2022-04-21 21:45:20 +02:00
Lars Müller
1f27bf6380 Remove unneeded ObjectRef setter return values () 2022-04-10 23:20:51 +02:00
ShadowNinja
7993909fab Spacing fixes 2022-04-08 14:55:21 +01:00
DS
8d387433b1 Fix the documentation of InvRef:get_lists() and clean up code () 2022-03-29 18:06:16 +02:00
x2048
0f25fa7af6 Add API to control shadow intensity from the game/mod ()
* Also Disable shadows when sun/moon is hidden. Fixes .
2022-03-26 16:58:26 +01:00
DS
8d55702d13 Improve lua vector helper class doumentation () 2022-03-19 12:06:55 +01:00
Lars Müller
b9e886726c Readd basic_debug as a HUD flag () 2022-03-05 22:16:17 +01:00
Zughy
44fc888bd6 Allow get_sky to return a table () 2022-03-05 22:15:41 +01:00
SmallJoker
f7311e0d97 Lua API documentation: Various fixes ()
Change 1: Clarify when on_step collision information is provided
Change 2: Document PostgreSQL and Redis settings
Change 3: Overall AreaStore documentation improvements including consistent parameter naming based on community suggestions
2022-02-23 21:21:37 +01:00
Lars Müller
0a0fb11c21 Lua API: Consistently use double vs. single quotes () 2022-02-22 19:17:08 +01:00
Wuzzy
10cf2f3edd Add support for 'seed' in disallow_mapgen_settings () 2022-02-12 20:23:58 +01:00
Dennis Jenkins
0cd9c5b5be Correct world_format.txt specification ()
The node timers appear at the end of a mapblock for map format version >= 25, not just map format version 25.
2022-02-12 20:23:46 +01:00
DS
a8707158a5 Allow to set the displayed item count and its alignment via meta ()
* Allow to set the displayed item count and its offset via meta

* fix rect constr call

* devtest: add dump_item chatcommand

* fix rect2 constr call (sdim is a position (typedef for v2s32), not a dimension) and remove background because it would work now

* add missing utf8 to wide conversion

* rename to count_meta
2022-02-10 06:17:52 -05:00
DS
d387e9b6d3 Add more documentation for the list[] fs element () 2022-02-03 11:43:28 +01:00
Lars Mueller
80812b86d6 Document moon orientation relative to sun 2022-01-31 07:36:39 -05:00
rubenwardy
128f6359e9 Use virtual paths to specify exact mod to enable () 2022-01-30 22:40:53 +00:00
sfan5
8c0331d244 Continue with 5.6.0-dev 2022-01-30 22:58:19 +01:00
Lars Müller
fe0b2d02bf Define control(bits) as "unset" for entities () 2022-01-27 22:22:58 +01:00
Vincent Robinson
95a775cd3a Bump formspec version () 2022-01-23 00:55:43 +01:00
sfan5
f8cef52ea0 Fix consistency of sky sun/moon texture behaviour
Also cleans up related code somewhat.
2022-01-22 11:18:34 -05:00
Zughy
37d80784dd Allow resetting celestial vault elements by leaving its arguments empty () 2022-01-22 12:42:49 +01:00
sfan5
76dbd0d2d0 Fully remove bitmap font support ()
Freetype is now a build requirement.
2022-01-08 14:53:25 +01:00
Jude Melton-Houghton
bf22569019 Use a database for mod storage () 2022-01-07 20:28:49 +02:00
Wuzzy
b81948a14c Fix damage wraparound if very high damage () 2022-01-06 21:16:35 +01:00
Aritz Erkiaga
85da2e284b Fix incorrect bit positions in paramtype documentation 2022-01-06 21:16:23 +01:00
Zughy
8910c7f8ae Better document sky_color scope () 2022-01-01 22:46:00 +01:00
Vincent Robinson
544b9d5c72 Add padding[] element to formspecs () 2021-12-30 12:54:47 -08:00
sfan5
0c4929f025 Remove wrong function from lua_api.txt 2021-12-19 17:03:16 +01:00
ROllerozxa
fcf86ded8f Disable inventory if player's inventory formspec is blank () 2021-12-13 17:43:29 +01:00
Francisco
a8c58d5cbb Add pauloue's ItemStack example to docs () 2021-12-10 12:24:42 +01:00