lhofhansl
d1624a5521
Switch MapBlock compression to zstd ( #10788 )
...
* Add zstd support.
* Rearrange serialization order
* Compress entire mapblock
Co-authored-by: sfan5 <sfan5@live.de>
2021-08-31 17:32:31 -07:00
Treer
149d8fc8d6
Add group-based tool filtering for node drops ( #10141 )
...
Supports both AND and OR requirements, e.g.
* "a tool that's in any of these groups"
* "a tool that's in all of these groups"
2021-08-27 20:23:20 +02:00
Wuzzy
63e8224636
Fix 6th line of infotext being cut off in half ( #11456 )
2021-08-23 22:13:17 +02:00
Wuzzy
2eec997e97
Clarify the meaning of "rightclick"/"use" in documentation ( #11471 )
2021-08-16 17:57:07 +02:00
Hugues Ross
47c146120a
Add disable_settings to game.conf to get rid of "Enable Damage"/"Creative Mode"/"Host Server" checkboxes ( #11524 )
...
This adds support for disable_settings to game.conf. In this you can specify a list of settings that should not be visible in the "local game" (or however it is called nowadays) tab. Enable Damage, Creative Mode and Host Server are supported.
Co-authored-by: Wuzzy <Wuzzy2@mail.ru>
Co-authored-by: Aaron Suen <warr1024@gmail.com>
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-08-12 20:08:12 +02:00
hecks
80d12dbedb
Add a simple PNG image encoder with Lua API ( #11485 )
...
* Add a simple PNG image encoder with Lua API
Add ColorSpec to RGBA converter
Make a safety wrapper for the encoder
Create devtest examples
Co-authored-by: hecktest <>
Co-authored-by: sfan5 <sfan5@live.de>
2021-07-29 05:10:10 +02:00
sfan5
6e8aebf432
Add bold, italic and monospace font styling for HUD text elements ( #11478 )
...
Co-authored-by: Elias Fleckenstein <eliasfleckenstein@web.de>
2021-07-27 19:11:46 +02:00
Wuzzy
216728cc5e
Improve documentation of tools ( #11128 )
2021-07-27 19:09:14 +02:00
random-geek
5d27cc5096
Document glasslikeliquidlevel merge bits ( #11479 )
2021-07-25 12:34:53 +02:00
Wuzzy
f4d8cc0f0b
Add wallmounted support for plantlike and plantlike_rooted nodes ( #11379 )
2021-07-15 21:19:59 +02:00
Hugues Ross
68143ed8ec
Fix documented default colors for set_sky
2021-07-14 17:14:45 +02:00
hecktest
29522017a3
Fix typo in lua_api.txt
2021-07-10 16:37:18 -07:00
Lean Rada
42fbc757b1
Use persistence
instead of persist
in NoiseParams examples
2021-07-10 14:19:33 +02:00
Warr1024
52128ae11e
Add API for mods to hook liquid transformation events ( #11405 )
...
Add API for mods to hook liquid transformation events
Without this API, there is no reliable way for mods to be
notified when liquid transform modifies nodes and mods are
forced to poll for changes. This allows mods to detect
changes to flowing liquid nodes and liquid renewal using
event-driven logic.
2021-07-09 09:08:40 -04:00
Wuzzy
b5c09ada79
Document hypertext escaping ( #11374 )
2021-06-22 13:42:40 +01:00
NeroBurner
a7143c2a8c
Move build/android directory to root of project ( #11283 )
2021-06-21 20:51:42 +01:00
sfence
b10091be9b
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-06-20 17:21:35 +02:00
rubenwardy
e1b297a14b
Add roadmap ( #10536 )
2021-06-17 04:15:30 +01:00
DS
8f085e02a1
Add metatables to lua vectors ( #11039 )
...
Add backwards-compatible metatable functions for vectors.
2021-06-04 21:22:33 +02:00
SmallJoker
c9144ae5e2
Add core.compare_block_status function ( #11247 )
...
Makes it possible to check the status of the mapblock in a future-extensible way.
2021-05-30 20:24:12 +02:00
Lars Müller
89f3991351
Fix base64 validation and add unittests ( #10515 )
...
Implement proper padding character checks
2021-05-30 20:23:12 +02:00
SmallJoker
5bf72468f3
UnitSAO: Prevent circular attachments
2021-05-29 11:44:48 +02:00
Wuzzy
1bb8449734
Improve liquid documentation ( #11158 )
2021-05-06 19:24:11 +02:00
Vincent Robinson
074e6a67de
Add minetest.colorspec_to_colorstring
( #10425 )
2021-04-23 21:37:24 +02:00
Wuzzy
90a7bd6a0a
Put torch/signlike node on floor if no paramtype2 ( #11074 )
2021-04-20 19:50:03 +02:00
benrob0329
a106bfd456
Also return the ObjectRef from minetest.spawn_falling_node() ( #11184 )
2021-04-13 20:02:43 +02:00
Wuzzy
4b8209d9a4
Modifying fall damage via armor group ( #11080 )
...
Adds a new fall_damage_add_percent armor group which influences the fall damage in addition to the existing node group.
2021-04-11 17:09:37 +02:00
DS
2332527765
Add vector.to_string and vector.from_string ( #10323 )
...
Writing vectors as strings is very common and should belong to `vector.*`. `minetest.pos_to_string` is also too long to write, implies that one should only use it for positions and leaves no spaces after the commas.
2021-04-05 15:55:56 +02:00
sfan5
34888a914e
Sort out cURL timeouts and increase default
2021-04-02 00:19:39 +02:00
Vincent Robinson
3560691c0a
Add math.round
and fix vector.round
( #10803 )
2021-04-02 00:18:58 +02:00
Lars Müller
88d1fcfe23
Block & report player self-interaction ( #11137 )
2021-03-30 21:49:50 +02:00
SmallJoker
f4118a4fde
Consistent title bar + render information in mainmenu ( #10764 )
2021-03-30 21:49:15 +02:00
sfan5
f345d00a43
Add entry in features table for degrotate changes
2021-03-30 14:40:09 +02:00
Vitaliy
3b78a22371
Degrotate support for mesh nodes ( #7840 )
2021-03-30 00:25:11 +02:00
Hugues Ross
afe988d83d
lua_api.txt: Fix style selector examples
2021-03-21 23:23:14 +01:00
Jean-Patrick Guerrero
285ba74723
GUIScene: Clear depth buffer + replace deprecated clearZBuffer calls
2021-03-16 23:28:16 +01:00
Lars Müller
b5eda416ce
Slap u64 on everything time-y ( #10984 )
2021-02-24 12:05:17 +01:00
sfan5
02d64a51ee
Continue with 5.5.0-dev
2021-02-23 19:50:44 +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
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
Zughy
2341a4aff1
Add ObjectRef:get_children() ( #10480 )
...
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2020-10-13 20:27:52 +01:00
DS
f3ae45b2b2
Add a short_description to be used by mods ( #8980 )
2020-10-09 19:11:21 +01:00
HybridDog
f0b6f7909a
Mention texture modifier colorspace ( #10112 )
2020-10-08 19:44:27 +02: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
Pierre-Yves Rollo
81c66d6efb
Minimap as HUD element with API control
...
Features:
* Define Minimap available modes (surface/radar, scale) from Lua, using player:set_minimap_modes()
* New HUD elements for displaying minimap with custom size and placing
* New minimap mode for displaying a texture instead of the map
2020-10-04 15:24:34 +02:00
Jordan Snelling
3068853e8a
Add First Person Attachments ( #10360 )
...
Fixes some other third person camera specific attachments.
Implements a single new flag for entities to be forced visible in first person mode.
Old mods do not need to be updated to use the new flag and are fully backwards compatible.
2020-10-04 15:10:34 +02:00
rubenwardy
3250b37e32
Deprecate get_player_velocity and add_player_velocity ( #10173 )
2020-10-04 00:33:45 +01:00
Wuzzy
41a6136f77
Document builtin entities ( #9453 )
...
This PR adds a new text file doc/builtin_entities.txt which explains how the two builtin entities __builtin:item and __builtin:falling_node work.
2020-10-03 19:01:38 +02:00
LoneWolfHT
9624387179
Add note to docs on how to override privileges ( #9792 )
2020-10-03 19:00:08 +02: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
tenplus1
34e3ede8ee
Ability to remove minetest.after once set ( #10103 )
2020-09-23 19:11:56 +02:00
Zughy
c8303f790c
lua_api.txt: author, release and title fields when downloading from ContentDB ( #10129 )
...
Co-authored-by: Marco <4279489-marco_a@users.noreply.gitlab.com>
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2020-09-16 15:47:20 +02:00
Lars Müller
050964bed6
Fix inventory swapping not calling all callbacks ( #9923 )
...
"Predicts" whether something will be swapped for allow callbacks, then calls callbacks a second time with swapped properties.
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2020-09-04 20:49:07 +02:00
DS
9ed84cfa85
Mark multiply and divide with two vectors as deprecated (Schur product and quotient) ( #10329 )
2020-09-01 20:18:10 +02:00
LoneWolfHT
c18dbadcb8
Fix dropped craftitems/tools not using light_source values ( #9438 )
2020-08-30 00:02:21 +01:00
EvidenceB
5c4b560b68
Add compass HUD element ( #9312 )
...
Co-authored-by: Jean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Co-authored-by: Pierre-Yves Rollo <dev@pyrollo.com>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2020-08-29 20:13:30 +02:00
HybridDog
386d5f778a
Document normalmap textures ( #10096 )
2020-08-29 16:43:09 +01:00
DS
28e87ce9d5
Add vector.offset ( #10321 )
2020-08-29 16:41:29 +01:00
karamel59
1eaff3dfa4
Improve set_texture_mod documentation ( #10339 )
...
Properly documents the select_x_by_camera values
2020-08-27 21:48:18 +02:00
DS
98faeac5a7
Load media from subfolders ( #9065 )
2020-08-20 22:25:29 +02:00
v-rob
83d0c360cc
Add gradients and borders to FormSpec boxes ( #8676 )
2020-08-19 18:14:47 -07:00
hecks
5bda36143f
Clean up sound_fade ( #10119 )
...
Add proper documentation and correct gain reduction calculations.
Co-authored-by: hecktest <>
2020-08-19 19:26:37 +02:00
ANAND
291a6b70d6
Allow binding dig, place actions to keys; remove LMB/RMB hardcoding
...
Co-authored-by: Sam Caulfield <sam@samcaulfield.com>
2020-08-15 12:19:20 +03:00
sfan5
fff0393187
Render nodeboxes with opaque material if possible ( #10122 )
2020-08-12 11:52:50 +02:00
Hugues Ross
93ecc589bc
Implement override.txt support for special tiles ( #10140 )
...
Add override targets for all special_tiles entries in node definitions, allowing texture packs to replace these textures. This makes overrides work properly with a variety of drawtypes.
The targets are named special1 through special6, covering the the current length of the special_tiles array.
2020-08-04 20:12:47 +02:00
sfan5
9bba52c400
content_cao: Support texture animation for upright_sprite ( #10020 )
2020-07-30 17:39:57 +02:00