Gael-de-Sailly
dd12312b58
Add minetest.rgba function that returns ColorString from RGBA or RGB values
2022-05-21 16:14:57 +02:00
Ezhh
4bd4d2b3b7
Improve chatcommand params consistency ( #5985 )
...
* Fix and improve params consistency
* Move parenthesis requirement to descriptions
2022-05-21 16:14:56 +02:00
red-001
0aaa633975
Fix sending color codes to clients that don't support them. ( #5950 )
...
Also remove `disable_escape_sequences` since it's not needed anymore.
2022-05-21 16:14:54 +02:00
red-001
2f8ebed7cc
Add function to get player privileges ( #5933 )
...
* [CSM] Add function to get player privileges + move related help functions to common
* Added @Zeno- const
2022-05-21 16:14:52 +02:00
SmallJoker
3fe2935a57
Builtin: Fix subgame mod selection ( #5367 )
2022-05-21 16:14:48 +02:00
SmallJoker
7b4120ee9f
CSM: Document forgotten functions
2022-05-21 16:14:47 +02:00
SmallJoker
88c24db1a7
minetest.deserialize: Throw error when argument not string ( #5738 )
2022-05-21 16:14:46 +02:00
ShadowNinja
5030ce5f4b
Use a settings object for the main settings
...
This unifies the settings APIs.
This also unifies the sync and async registration APIs, since the async
registration API did not support adding non-functions to the API table.
2022-05-21 16:14:45 +02:00
MarkuBu
a99d95ee92
Pointed thing to face pos: Fix crash if opening door with slab or stair
...
Avoids crash caused when 'pointed thing -under' and '-above' are not
face-neighbours, for example in the case of pointing to the top half
of a door.
2022-05-21 16:14:41 +02:00
red-001
089bca3f7f
Use more gettext ( #5553 )
2022-05-21 16:14:39 +02:00
Auke Kok
9d9c4cc91f
minetest.after(): simplify further, pause in singleplayer ( #5500 )
...
Using the `dtime` value entirely, this will stop the clock
if the game is paused in singleplayer. Since most of the
clocks were fixed a long time ago, this should again be
safe to use.
2022-05-21 16:14:34 +02:00
MarkuBu
61efcfec7d
First commit for fine pointed ( #5485 )
2022-05-21 16:14:34 +02:00
Diego Martínez
67ca4f86c5
Add functions to strip color information. ( #5472 )
2022-05-21 16:14:34 +02:00
Loïc Blot
1bbcceb65c
Fix a type bug in colorize function
...
This bug was introduced by dd2f1d7551bfd70357ad4f3fb180704194272147 and reported by @kilbith
2022-05-21 16:14:33 +02:00
red-001
5943ad8975
Change command prefix to "." and add "help" command.
2022-05-21 16:14:32 +02:00
Loïc Blot
f436404054
Typo fix
2022-05-21 16:14:32 +02:00
red-001
acb03dc956
Add multiline support to colorize. ( #5444 )
2022-05-21 16:14:31 +02:00
red-001
52662dfcce
Block access to the `io` library
2022-05-21 16:14:31 +02:00
red-001
d210b6d2cf
Give CSM access to use `core.colorize()` ( #5113 )
2022-05-21 16:14:30 +02:00
red-001
fb042da4a5
Improve security for client-sided mods ( #5100 )
2022-05-21 16:14:28 +02:00
red-001
0412d35355
Add local formspecs. ( #5094 )
2022-05-21 16:14:27 +02:00
Loïc Blot
b38c00d90f
sound_play & sound_stop support + client_lua_api doc ( #5096 )
...
* squashed: CSM: Implement register_globalstep
* Re-use fatal error mechanism from server to disconnect client on CSM error
* Little client functions cleanups
* squashed: CSM: add core.after function
* core.after is shared code between client & server
* ModApiUtil get_us_time feature enabled for client
2022-05-21 16:14:27 +02:00
red-001
33b76809dd
Add client-sided chat commands ( #5092 )
2022-05-21 16:14:27 +02:00
Auke Kok
944e5ca4e9
Vector: Add vector.sort(a, b): return box edges
...
This function returns the box corners of the smallest box
that includes the two given coordinates.
2022-05-21 16:14:17 +02:00
sfan5
a75a5eb3eb
Revert "Adding particle blend, glow and animation ( #4705 )"
...
This reverts commit 93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.
2022-05-21 16:14:01 +02:00
Foghrye4
cfa39937f9
Adding particle blend, glow and animation ( #4705 )
2022-05-21 16:14:01 +02:00
Auke Kok
f5336937c7
Core.rotate_and_place: Remove unused call to get_look_pitch()
2022-05-21 16:13:58 +02:00
rubenwardy
94296a9d2a
Builtin: Add vector.floor helper function
2022-05-21 16:13:56 +02:00
HybridDog
6cbe7ef399
Only allow strings to be passed to minetest.global_exists ( #4253 )
...
Sometimes you accidentally forget the quotes when using global_exists, this makes minetest abort if you did so.
M builtin/common/strict.lua
2022-05-21 16:13:43 +02:00
Rui914
32752d2bc5
Faster insertion into table
2022-05-21 16:13:23 +02:00
ShadowNinja
8fc9b3b9cb
Refactor logging
...
- Add warning log level
- Change debug_log_level setting to enumeration string
- Map Irrlicht log events to MT log events
- Encapsulate log_* functions and global variables into a class, Logger
- Unify dstream with standard logging mechanism
- Unify core.debug() with standard core.log() script API
2022-05-21 16:12:54 +02:00
kwolekr
37a94ffa9d
Add /emergeblocks command and core.emerge_area() Lua API
2022-05-21 16:12:52 +02:00
sfan5
22c20ffd4d
Allow random menu images for subgames
2022-05-21 16:12:43 +02:00
est31
fea38f3780
Fix wrong replace from previous commit
2022-05-21 16:12:34 +02:00
est31
1c971d206e
Localize inside whole misc_helpers.lua
2022-05-21 16:12:34 +02:00
ShadowNinja
6e61c7d92a
Add minetest.global_exists()
2022-05-21 16:12:30 +02:00
ShadowNinja
53f255dbc9
Fix serialization of floating point numbers
2022-05-21 16:12:26 +02:00
est31
5a662882bf
Server: announce MIN/MAX protocol version supported to serverlist. Client: check serverlist
...
Client now informs about incompatible servers from the list, this permits to prevent the protocol movements.
Server announces its supported protocol versions to master server
2022-05-21 16:12:25 +02:00
est31
1052201620
Fix crash on passing false as value in table to table.copy(t)
...
Fixes #2293 .
2022-05-21 16:12:23 +02:00
rubenwardy
bd42a0c92e
Change assignment to global in a function to warning
2022-05-21 16:12:20 +02:00
ShadowNinja
32911a2064
Fix imprecise serialization of large numbers
2022-05-21 16:12:19 +02:00
kwolekr
5d9c758b13
Simplify deleteblocks chat command argument parsing
...
Add optional core.pos_to_string decimal place rounding
Move core.string_to_pos to builtin/common/misc_helpers.lua for consistency
2022-05-21 16:12:17 +02:00
Diego Martínez
d6acaced3f
Fix typo in `serialize.lua`.
2022-05-21 16:12:17 +02:00
Diego Martínez
c2450727a1
Fix off-by-one error in `string:split` implementation.
2022-05-21 16:12:13 +02:00
Diego Martínez
a88e2f410b
Faster string.split implementation.
2022-05-21 16:12:11 +02:00
Zeno-
64bc547162
Revert "Adjust the values of dirs1 and dirs2 so that rotate_and_place orients textures correctly"
...
This reverts commit 9878e8de4fdf232ebb77b396766c339786c01218.
See: https://github.com/minetest/minetest/issues/1939 and IRC log for discussion
2022-05-21 16:12:09 +02:00
paramat
1adec0e3c5
Fix undeclared globals in functions and shorten lines in misc_helpers.lua.
2022-05-21 16:12:08 +02:00
SmallJoker
2dba3fd295
Add Lua helper functions vector.apply(v) math.sign(x, tolerance)
2022-05-21 16:12:07 +02:00
SmallJoker
7fa045415f
Add minetest.copy_table(table) To get rid off the "table references"
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2022-05-21 16:12:06 +02:00
dvere
694e0d0781
Adjust the values of dirs1 and dirs2 so that rotate_and_place orients textures correctly
...
According to doc/lua_api.txt if paramtype2 == "facedir" the two least significant bits of parm2 orient the texture around the axis. For dirs1 (looking at a wall) these would be 0, 1, 2, 3 and for dirs2 (looking at the ceiling) 2, 1, 0, 3
2022-05-21 16:12:05 +02:00