Commit Graph

330 Commits (master)

Author SHA1 Message Date
Maksym H 6e76ef4320
HUD: use the HUD API directly (#92)
Co-authored-by: luk3yx <luk3yx@users.noreply.github.com>
2022-08-29 21:20:56 +03:00
Maksim bd4b420ccd Minor changes and fixes 2022-08-08 00:31:01 +02:00
luk3yx 17f710bfd5 Send SSCSMs in singleplayer and add more APIs to SSCSM sandbox (#72) 2022-08-05 20:53:08 +02:00
luk3yx 7f85835a8f Re-add static_spawn.lua (fixes #81) 2022-08-03 14:01:36 +12:00
luk3yx 357d3aaf8e
Make /setspawn world specific (#67) 2022-07-06 22:15:27 +03:00
Maksim 2d0b2e7ea7 Minor changes and fixes 2022-05-28 15:39:25 +03:00
Maksim d48d6f8dc0 Hunger: disable for creative players 2022-05-27 23:14:45 +03:00
SmallJoker 915f986e3d Builtin: Sanity-check /time inputs
This enforces the documented bounds for the /time command.
2022-04-14 06:45:10 +12:00
Maksim 98f2fc92df Minor fixes and changes 2022-04-10 13:20:59 +02:00
HybridDog a5c86dd19b Restructure teleport command code 2022-03-25 20:26:05 +01:00
luk3yx 299c0d211c
SSCSM: update from upstream and report SSCSM errors to server (#40) 2022-02-26 10:02:26 +01:00
Maksim cdb68c2e0d Builtin: few minor patches 2022-02-16 18:17:51 +02:00
luk3yx bb25210dd0
Make core.item_drop work properly with pipeworks (#32)
get_player_velocity is deprecated
2022-02-13 14:46:27 +02:00
Maksim 2102765483 Show "motd" instead of server status when a player join 2022-02-13 13:49:32 +02:00
luk3yx dae831a223
Generate MT 0.4 character.b3d files at load time
These generated files are kept in RAM and not on disk.
2022-01-28 00:22:13 +01:00
MoNTE48 0dc4830be2 Write settings after executing `/set` command 2021-11-03 23:52:29 +01:00
sfence d40a598fe4 Add min_y and max_y checks for Active Block Modifiers (ABM) (#11333)
This check can be used by ABM to reduce CPU usage.
2021-11-03 23:49:48 +01:00
MoNTE48 e91813755c Builtin: minor fixes 2021-10-21 00:28:35 +02:00
luk3yx 0174b486f2 Fix hunger crash 2021-08-30 08:57:32 +12:00
luk3yx 05b757a9cb Hunger: make hunger.get_saturation return nil when metadata doesn't exist 2021-08-22 11:37:48 +03:00
MoNTE48 7ed95a454d Hunger: replace deprecated API methods 2021-08-07 11:02:12 +02:00
MoNTE48 0534d696f7 Merge MultiCraft Legacy changes 2021-07-25 12:06:24 +02:00
luk3yx 1aabc2ca14 Merge tag '5.4.1' into main
5.4.1
2021-06-08 10:37:38 +12:00
HybridDog 4fbfe9443b Add minetest.get_artificial_light and minetest.get_natural_light (#5680)
Add more detailed light detection functions, a function to get the artificial light (torches) and a function to get the sunlight as seen by the player (you can specify timeofday).

Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-05-10 13:40:25 +02:00
Elias Fleckenstein b2ab5fd161
Replace deprecated call to add_player_velocity in builtin (#10968) 2021-02-18 14:39:04 +00:00
rubenwardy a8f6befd39
Fix short_description fallback order (#10943) 2021-02-17 18:53:44 +00:00
MoNTE48 af540c389e Add MultiCraft builtin improvements 2021-02-14 09:58:28 +01:00
luk3yx 46a453012d Add client-side SSCSM support. 2021-02-14 09:58:28 +01:00
luk3yx 90211350a5 Add server-side SSCSM support. 2021-02-12 19:13:36 +01:00
rubenwardy 4db7fb4a3b Replace 'minetest.' with 'core.' in builtin 2021-02-11 10:18:22 +00:00
sfan5 40ad976753 Revise dynamic_add_media API to better accomodate future changes 2021-02-01 23:00:13 +01:00
rubenwardy 6e0e0324a4
Fix minetest.dig_node returning true when node isn't diggable (#10890) 2021-01-31 18:49:51 +00:00
sfan5 83229921e5 Rework use_texture_alpha to provide three opaque/clip/blend modes
The change that turns nodeboxes and meshes opaque when possible is kept,
as is the compatibility code that warns modders to adjust their nodedefs.
2021-01-29 17:34:41 +01:00
sfan5 edd8c3c664 Drop never documented 'alpha' property from nodedef
Includes minimal support code for practical reasons.
We'll need it for a slightly different purpose next commit.
2021-01-29 17:34:41 +01:00
Zughy 45ccfe26fb
Removed some obsolete code (#10562)
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2021-01-21 18:17:09 +00:00
luk3yx 7b37f2c1d8 Re-add protocol v25-33 support for servers. 2021-01-19 13:24:17 +01:00
JDiaz 08ee9794fb
Implement on_rightclickplayer callback (#10775)
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-01-11 18:03:31 +01:00
Wuzzy 535557cc2e
Fix fallnode rotation of wallmounted nodebox/mesh (#10643) 2020-12-22 14:54:27 +01:00
sfan5 ecd4f45318 Fix certain connected nodeboxes crashing when falling
fixes #10695
2020-12-04 11:28:45 +01:00
Wuzzy ee1853e9bc
Fix falling image of torchlike if paramtype2="none" (#10612) 2020-11-15 17:37:09 +01:00
sfan5 61bbdd6807 Copy position for can_dig
fixes #10514
2020-11-12 21:08:26 +01:00
DS be3fe161fc
Do not set a default for description in itemdef table (#10559)
* Do not set a default for description in itemdef table

* improve documentation
2020-11-10 21:03:10 +01:00
DS f3ae45b2b2
Add a short_description to be used by mods (#8980) 2020-10-09 19:11:21 +01:00
HybridDog 2f4037752b
Add minetest.get_artificial_light and minetest.get_natural_light (#5680)
Add more detailed light detection functions, a function to get the artificial light (torches) and a function to get the sunlight as seen by the player (you can specify timeofday).

Co-authored-by: rubenwardy <rw@rubenwardy.com>
2020-10-06 20:49:46 +02:00
rubenwardy 3250b37e32
Deprecate get_player_velocity and add_player_velocity (#10173) 2020-10-04 00:33:45 +01:00
Elijah Duffy 7d3641021b
Lua API: Add register_on_chatcommand to SSM and CSM (#7862)
Allows catching a chatcommand call just after the command and the
parameters are parsed but before its existence is checked and before the
corresponding function is run. Returning `true` from a callback function
will prevent default handling of the command leaving mods to handle the
command manually.
2020-10-03 17:38:08 +01:00
HybridDog 4b423ee9b1
Chatcommand: Show help message if func returns false without message
#9440
2020-10-03 17:33:43 +01:00
Pierre-Yves Rollo d3d218940b
Fix #10349 game crashing if dropped an item with undefined light_source (#10351) 2020-08-30 15:34:28 +02:00
LoneWolfHT c18dbadcb8
Fix dropped craftitems/tools not using light_source values (#9438) 2020-08-30 00:02:21 +01:00
Emojigit abfea69e5f
Change `last-login` command to show player name in output (#10263) 2020-08-06 19:30:41 +02:00