Commit Graph

1181 Commits (master)

Author SHA1 Message Date
AFCMS fdd2efbbbe Add `minetest.settings` to CSM API and allow CSMs to provide `settingtypes.txt` (#12131)
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2022-08-04 11:39:06 +12:00
luk3yx fb78a8a0cd
Add update reminder (#49)
Co-authored-by: Maksym <Maksym48@pm.me>
Co-authored-by: ubulem <berkut87@gmail.com>
2022-08-02 09:48:01 +02:00
luk3yx 357d3aaf8e
Make /setspawn world specific (#67) 2022-07-06 22:15:27 +03:00
Vincent Robinson 0bfc98fe26 Backport (II): "FormSpec: 9-slice images, animated_images, and fgimg_middle (#12453)"
* FormSpec: 9-slice images and animated_images

* Add fgimg_middle; clean up code

* Address issues, add tests

* Fix stupid error; bump formspec version

* Re-add image[] elements without a size
2022-07-03 21:31:56 +03:00
Maksim fbd1c6b88d Backport: "FormSpec: 9-slice images, animated_images, and fgimg_middle (#10265)"
Co-Authored-By: Vincent Robinson <robinsonvincent89@gmail.com>
2022-06-15 10:45:38 +03:00
Lars Müller 00063a721b Slap u64 on everything time-y (#10984) 2022-05-25 19:03:55 +12:00
luk3yx f91eca1e5e
Add platform information to get_player_information (#50) 2022-04-27 09:24:40 +03: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
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
Lars Müller 847860fc5c Block & report player self-interaction (#11137) 2021-04-05 16:01:27 +02:00
Jean-Patrick Guerrero b5672f20f6 Customizable scrollbar 2021-03-15 10:45:24 +01:00
DS 4abe4b87b5
Allow overwriting media files of dependencies (#10752) 2021-02-23 19:39:15 +01:00
rubenwardy f85e9ab925
Add nametag background setting and object property (#10937) 2021-02-17 19:51:28 +00:00
rubenwardy a8f6befd39
Fix short_description fallback order (#10943) 2021-02-17 18:53:44 +00:00
Lars 9f8c34c357 Remove all bump mapping and parallax occlusion related code. 2021-02-14 09:58:29 +01:00
MoNTE48 2aa0400bd2 Backport MultiCraft Engine changes 2021-02-14 09:58:28 +01:00
luk3yx 90211350a5 Add server-side SSCSM support. 2021-02-12 19:13:36 +01:00
rubenwardy 3a8c37181a
Use consistent temp folder path (#10892) 2021-02-07 15:27:24 +00:00
Wuzzy 8c19823aa7
Fix documentation of formspec sound style (#10913) 2021-02-04 21:43:12 +01:00
sfan5 40ad976753 Revise dynamic_add_media API to better accomodate future changes 2021-02-01 23:00:13 +01:00
sfan5 a01a02f7a1 Preserve immortal group for players when damage is disabled 2021-01-31 20:38:12 +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
Graham Northup e6e5910cb4
Clarify key_value_swap's edge case (#10799)
In compiler design especially, leaving behavior as "undefined" is a _strong_ condition that basically states that all possible integrity is violated; it's the kind of thing that happens when, say, dereferencing a pointer with unknown provenance, and most typically leads to a crash, but can result in all sorts of spectacular errors--thus, "it is undefined" how your program will melt down.

The pure-Lua implementation of `key_value_swap` does not permit UB _per se_ (assuming the implementation of Lua itself is sound), but does deterministically choose the value to which a key is mapped (the last in visitation order wins--since visitation order is arbitrary, _some_ value _will_ be chosen). Most importantly, the program won't do something wildly unexpected.
2021-01-29 17:34:00 +01:00
Zughy 44a9510c81
Consistently use "health points" (#10868) 2021-01-27 18:42:02 +00:00
Vincent Robinson 009e39e73b
FormSpec: Add list spacing, slot size, and noclip (#10083)
* Add list spacing, slot size, and noclip

* Simplify StyleSpec

* Add test cases

Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-01-23 12:46:19 -08:00
rubenwardy 67aa75d444
Use JSON for favorites, move server list code to Lua (#10085)
Co-authored-by: sfan5 <sfan5@live.de>
2021-01-22 15:08:57 +00: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
Zughy ea5d6312c1
ObjectRef: fix some v3f checks (#10602) 2021-01-21 18:37:38 +01:00
M.K e86c93f0bf
Fix double word "true" in minetest.is_nan explanation (#10820) 2021-01-18 01:45:32 +01:00
Zughy 1946835ee8
Document how to make nametags background disappear on players' head (#10783)
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2021-01-11 18:03:46 +01:00
JDiaz 08ee9794fb
Implement on_rightclickplayer callback (#10775)
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-01-11 18:03:31 +01:00
rubenwardy edd0836011
ContentDB: Add overwrite dialog when content is already installed (#10768) 2021-01-04 15:18:31 +00:00
hecks dd5a732fa9
Add on_deactivate callback for luaentities (#10723) 2021-01-02 15:14:29 +01:00
OgelGames ad58fb2206
Clarify documentation of minetest.get_modpath and minetest.get_modnames (#10771) 2021-01-02 15:13:53 +01:00
Elias Fleckenstein 9250b5205a
Add minetest.get_objects_in_area (#10668) 2020-12-29 16:50:09 +01:00
rubenwardy 664f5ce960
Add open user data button to main menu (#10579) 2020-12-19 13:27:15 +00:00
DS 6f8a1c99d5
Documentation for highest formspec_version[] and changelog (#10592) 2020-12-18 19:38:07 +01:00
Thomas--S d0a38f694d
Formspec: Allow to specify frame loop for model[] (#10679)
Add the ability to specify an animation frame loop range for the model[] formspec element.
2020-12-15 19:06:36 +01:00
wsor4035 3ed940ff13
lua_api.txt: Add mod_orgin to node def (#10697) 2020-12-15 19:05:55 +01:00
SmallJoker af073438fd
Various documentation fixes (#10692)
set_sky: New feature, keep note about the old syntax
get_us_time: Document overflow
localplayer: Document "nil" behaviour before initialization
collision_box: Safe limit of "1.45"
2020-12-10 20:59:24 +01:00
Oblomov 08c9d1a669
Cross-reference the node level manipulation functions (#10633)
This can help developers find the correct functions to access and manipulate the fluid level.
2020-12-04 20:16:53 +01:00
Pierre-Yves Rollo 78273027bf Add sound to press event of some formspecs elements (#10402) 2020-11-23 21:28:25 +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
rubenwardy 7589cbe086
Fix object interaction distance not being checked (#10547) 2020-11-09 11:55:15 +01:00
SmallJoker 3356da0151
Add model[] formspec element (#10320)
Formspec element to display models, written by @kilbith, rebased and tweaked.

Co-authored-by: Jean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Co-authored-by: sfan5 <sfan5@live.de>
2020-11-04 21:46:18 +01:00
Zughy 33b2c5f5b1
Clean up l_object.cpp (#10512)
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2020-10-22 16:18:01 +01:00
sfan5 660115c1ab
Decouple entity minimap markers from nametags replacing with show_on_minimap property (#10443) 2020-10-19 20:38:15 +02:00
Lars ed22260822 Remove all bump mapping and parallax occlusion related code. 2020-10-17 13:09:16 -07:00