Commit Graph

1255 Commits

Author SHA1 Message Date
Graham Northup
e6e5910cb4
Clarify key_value_swap's edge case ()
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" () 2021-01-27 18:42:02 +00:00
Vincent Robinson
009e39e73b
FormSpec: Add list spacing, slot size, and noclip ()
* 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 ()
Co-authored-by: sfan5 <sfan5@live.de>
2021-01-22 15:08:57 +00:00
Zughy
45ccfe26fb
Removed some obsolete code ()
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 () 2021-01-21 18:37:38 +01:00
M.K
e86c93f0bf
Fix double word "true" in minetest.is_nan explanation () 2021-01-18 01:45:32 +01:00
Zughy
1946835ee8
Document how to make nametags background disappear on players' head ()
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 ()
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 () 2021-01-04 15:18:31 +00:00
hecks
dd5a732fa9
Add on_deactivate callback for luaentities () 2021-01-02 15:14:29 +01:00
OgelGames
ad58fb2206
Clarify documentation of minetest.get_modpath and minetest.get_modnames () 2021-01-02 15:13:53 +01:00
Elias Fleckenstein
9250b5205a
Add minetest.get_objects_in_area () 2020-12-29 16:50:09 +01:00
rubenwardy
664f5ce960
Add open user data button to main menu () 2020-12-19 13:27:15 +00:00
DS
6f8a1c99d5
Documentation for highest formspec_version[] and changelog () 2020-12-18 19:38:07 +01:00
Thomas--S
d0a38f694d
Formspec: Allow to specify frame loop for model[] ()
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 () 2020-12-15 19:05:55 +01:00
SmallJoker
af073438fd
Various documentation fixes ()
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 ()
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 () 2020-11-23 21:28:25 +01:00
DS
be3fe161fc
Do not set a default for description in itemdef table ()
* 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 () 2020-11-09 11:55:15 +01:00
SmallJoker
3356da0151
Add model[] formspec element ()
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 ()
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 () 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() ()
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 () 2020-10-09 19:11:21 +01:00
HybridDog
f0b6f7909a
Mention texture modifier colorspace () 2020-10-08 19:44:27 +02:00
HybridDog
2f4037752b
Add minetest.get_artificial_light and minetest.get_natural_light ()
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 ()
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 () 2020-10-04 00:33:45 +01:00
Wuzzy
41a6136f77
Document builtin entities ()
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 () 2020-10-03 19:00:08 +02:00
Elijah Duffy
7d3641021b
Lua API: Add register_on_chatcommand to SSM and CSM ()
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
2020-10-03 17:33:43 +01:00
tenplus1
34e3ede8ee
Ability to remove minetest.after once set () 2020-09-23 19:11:56 +02:00
Zughy
c8303f790c
lua_api.txt: author, release and title fields when downloading from ContentDB ()
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 ()
"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) () 2020-09-01 20:18:10 +02:00
LoneWolfHT
c18dbadcb8
Fix dropped craftitems/tools not using light_source values () 2020-08-30 00:02:21 +01:00
EvidenceB
5c4b560b68
Add compass HUD element ()
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 () 2020-08-29 16:43:09 +01:00
DS
28e87ce9d5
Add vector.offset () 2020-08-29 16:41:29 +01:00
karamel59
1eaff3dfa4
Improve set_texture_mod documentation ()
Properly documents the select_x_by_camera values
2020-08-27 21:48:18 +02:00
DS
98faeac5a7
Load media from subfolders () 2020-08-20 22:25:29 +02:00
v-rob
83d0c360cc
Add gradients and borders to FormSpec boxes () 2020-08-19 18:14:47 -07:00
hecks
5bda36143f
Clean up sound_fade ()
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 () 2020-08-12 11:52:50 +02:00
Hugues Ross
93ecc589bc
Implement override.txt support for special tiles ()
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 () 2020-07-30 17:39:57 +02:00
Lejo
715a123a33
Add PUT and DELETE request + specific method value to HTTP API () 2020-07-29 23:16:21 +02:00
Wuzzy
ae83edd165
Play place_failed sound if occupied or cannot attach () 2020-07-27 19:40:33 +02:00
Wuzzy
808fa5ecb3
Improve default inventory+wield images of node drawtypes () 2020-07-23 19:54:58 +02:00
sfan5
4b4513a67d
Implement grouped mode for find_nodes_in_area ()
plus general improvements to find_node_* functions
2020-07-14 22:36:53 +02:00
LoneWolfHT
88ffd64124 Add object crosshair, disable entity selectionboxes by default ()
Adds new object crosshair base pack texture
2020-07-14 19:13:04 +02:00
v-rob
2bec83eec0
Add FormSpec font styling options ()
* Add FormSpec font styling options

* Change multiplication to stof

* Remove extraneous check
2020-07-12 09:48:50 +02:00
v-rob
e0499731a8
Allow FormSpec elements to be focused with set_focus ()
This allows you to specify a FormSpec element to set the focus of with "set_focus[<name>;<always set>]".
2020-07-12 09:47:05 +02:00
v-rob
b1ff04e06d
Formspec: Make dropdowns optionally return event based on index, not value () 2020-07-10 12:11:26 +02:00
sfan5
2384c10e10 Continue with 5.4.0-dev 2020-07-09 22:04:22 +02:00
v-rob
f7c78993f6
Document deprecation of *_hovered and *_pressed styles () 2020-06-23 17:59:02 +01:00
oilboi
a1b444bb61
Fix typo () 2020-06-17 18:59:02 +01:00
Danila Shutov
3a6dfda358
Make shading of CAOs optional () 2020-06-16 20:48:31 +01:00
Lars Müller
e7e065f553
Exposing the zoom key to Lua API ()
Co-authored-by: Raul Ferriz <raul.ferriz@gmail.com>
2020-06-13 22:46:20 +02:00
sfan5
2424dfe007
Server pushing media at runtime () 2020-06-13 19:03:26 +02:00
luk3yx
982a030f33
Add LevelDB player database () 2020-06-12 18:54:20 +02:00
NetherEran
7148834440
Some vector functions useful for working with rotations ()
* added vector.rotate

* added vector.forward_from_rotation and vector.up_from_rotation

* added vector.forward_up_to_rotatiton

* fixed some bugs and formatting with vector functions

* shortened name of some new vector functions and added documentation

* made vector.rotate not require a unit vector as axis

* fixed crash with vector.forward_up_to_rot

* renamed new vector functions, made vector.rotate apply a rotation matrix, old vector.rotate is now called vector.rotate_around_axis

* documented vector function changes

* removed some whitespace to appease luacheck

* implemented and fixed optimization of vector.rotate_around_axis by SmallJoker

* added some unit tests for rotation vector functions

* clarified that rotation vectors are in radians and according to the left hand rule

* hopefully appeased luacheck

* renamed rotation_to_horizontal to forward_at_rotation, rotation_to_vertical to up_at_rotation

* handled cases where sin or cos are 0 in rotation vector functions

* added more comments

* clarified documentation of rotation vector functions

* added more unit tests

* changed way in which vector.rotate_around_axis is adjusted for left handed coordinate systems

* made vector.rotate_around_axis actually left handed

* unrolled matrix multiplication

* removed vector.forward_at_rotation and vector.up_at_rotation

* prettified vector.rotate_around_axis, made previous commits not break anything

* removed references to removed vector.forward_at_rotation and vector.up_at_rotation

* removed documentation of removed vector functions

* clarified documentation and fixed styling of rotation vector functions

* restyled comments minorly

* spelling fixes and some hopefully better comments

* allowed 'up' to be missing from vector.directions_to_rotation and removed requirement for unit vectors as arguments

* made vector.rotate_around_axis() right handed again for consistency

* documented previous changes

* made matrix multiplication actually multiply

* renamed vector.directions_to_rotation() to vector.dir_to_rotation()

* optimized a distance comparison

* Fixed potential false positive in unit tests.

Co-authored-by: NetherEran <nethereran@hotmail.com>
2020-06-09 19:38:39 +02:00
Vitaliy
e746607d0f
Restore visual_scale support for nodeboxes (and allfaces) () 2020-06-06 22:25:18 +02:00
rubenwardy
60bab8b2d7
Add HTTP API to main menu () 2020-06-06 17:17:08 +01:00
MoNTE48
34862a6442 Add disable_jump check for the player's feet 2020-05-29 22:53:58 +02:00
Wuzzy
65a6a316d0 Add minetest.is_creative_enabled 2020-05-29 22:45:40 +02:00
Wuzzy
083b285f43
Rename “Minimal development test” to “Development Test” () 2020-05-26 00:17:52 +02:00
ANAND
8ee2ece3c9
lua_api.txt: Fix minor typo () 2020-05-24 11:48:19 +02:00
sfan5
9d6e7e48d6 Implement spawning particles with node texture appearance 2020-05-23 22:52:21 +02:00
sorcerykid
15ba75e4cf Add on_authplayer callback and 'last_login' to on_joinplayer ()
Replace on_auth_fail callback with more versatile on_authplayer
    Better clarify account login process in Lua API documentation
    Change initial timestamp for newly registered accounts to -1
2020-05-23 13:25:29 +02:00
Lejo1
e79bc40c0a Check for valid base64 before decoding () 2020-05-22 14:26:22 +02:00
Paramat
42fcfb75e8
Allow more than 255 biomes, document new maximum ()
Change biomemap data type from u8 to u16.
New technical (not practical) maximum is 65535 biomes.
2020-05-20 22:16:14 +01:00
Wuzzy
c94d37827d
Rework functionality of leveled nodes ()
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2020-05-19 21:08:37 +02:00
LoneWolfHT
7d3972a504
Add ability to scale HUD text ()
Add 'size' property to HUD text elements that is used for relative font size calculations.
2020-05-19 19:10:39 +02:00
rubenwardy
a9c3a42323
Add core.open_url() to main menu API () 2020-05-17 19:09:10 +01:00
ANAND
c1ce4be756
Make automatic_rotate relative, allow setting rotation ()
automatic_rotate does not make sense if it is absolute. Make it relative.

To avoid bouncing, set_rotation did not update the client when automatic_rotate was set. That's no longer necessary because the new spinning method applies the rotation on top of the current one, and the updates are necessary for set_rotation to actually transform the object.

Co-authored-by: ANAND <ClobberXD@gmail.com>

Co-authored-by: Pedro Gimeno <pgimeno@users.noreply.notabug.org>
2020-05-16 21:42:31 +02:00
sfan5
36d35f2fe3
CSM: Bugfixes to camera:get_pos() and camera:get_fov()
closes 
2020-05-14 21:16:45 +02:00
Wuzzy
7ec76e530d
Add mapgen settings to world creation dialog () 2020-05-12 02:52:52 +01:00
Lars Müller
9ba24f89f5
Damage texture modifier ()
Adds a new object property "damage_texture_modifier"
2020-05-11 21:41:36 +02:00
Wuzzy
6e1372bd89
Add support for statbar “off state” icons ()
This adds support for optional “off state” icons for statbars. “off state icons” can be used to denote the lack of something, like missing hearts or bubbles.

Add "off state" textures to the builtin statbars.

Co-authored-by: SmallJoker <mk939@ymail.com>
2020-05-11 21:40:45 +02:00
v-rob
664800b2ad
FormSpec: Add universal style selector * () 2020-05-06 19:36:02 +02:00
sfan5
b6b80f55c8 Expose collided objects in moveresult
closes 
2020-05-06 14:03:52 +02:00
SmallJoker
1b6f40c356 Rename moveresult speed to velocity 2020-05-05 08:37:04 +02:00
oilboi
3ed5619d9a
Fix small typo () 2020-05-05 08:35:55 +02:00
Hugues Ross
cb9a44ef89
Add 'content_offset' and 'padding' style properties for buttons ()
* Add padding and content_offset style properties to buttons
2020-05-02 13:32:02 +02:00
Wuzzy
5c96f57782
Add a convention about z_index () 2020-05-02 13:12:02 +02:00
ANAND
e0ea87f1f3
set_fov: Add support for time-based transitions () 2020-05-02 12:52:11 +02:00
sfan5
ac368af4fe
Allow connection info to be missing from minetest.get_player_information() ()
fixes 
This reverts commit 23c907befea02005e2c0c87fca0131b60aace18a.
2020-05-01 21:44:28 +02:00
Lejo
74d9b6010f
Give the online lua mainmenu also the client_list and mods () 2020-05-01 16:47:17 +02:00
sfan5
3475759d1a Expose collision information to LuaEntity on_step 2020-04-27 20:45:46 +02:00
EvidenceB Kidscode
cee3c5e73d
Add server side translations capability ()
* Add server side translations capability
2020-04-25 07:20:00 +02:00
Paramat
4e2473ec49
Document which noise APIs add world seed to noiseparams seed () 2020-04-17 10:24:51 +02:00
Maksim
62ae7adab2
Android: add Android Studio support, completely redone java part () 2020-04-15 16:27:40 +02:00
DS
62c62f3829
Add all src folders to doxygen () 2020-04-14 21:22:49 +02:00
Hugues Ross
5cf6318117
Refactor texture overrides and add new features ()
* Refactor texture overrides, and add new features:

- Texture overrides can support multiple targets in one line
- Texture override files can have comment lines
- Item images/wield images can be overridden

* Formatting changes

* Address soime feedback

- Pass vectors by const reference
- Log syntax errors as warnings
- Remove 'C' prefix from TextureOverrideSource

* Simplify override target checks with an inline helper function

* make linter happy

* Apply feedback suggestions

Co-Authored-By: rubenwardy <rw@rubenwardy.com>

* Remove remaining != 0 checks

* Update copyright notice

Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2020-04-14 20:41:29 +02:00
SmallJoker
27d611fe55
Add default stack size setting ()
New setting "default_stack_max" to alter the default stack sizes of all items when desired.

Co-authored-by: Pascal Abresch <nep@packageloss.eu>
2020-04-13 10:53:10 +02:00
DS
0ac999ded7
Add scroll_container formspec element (redo) ()
New formspec elements:

 - `scroll_container[<X>,<Y>;<W>,<H>;<scrollbar name>;<orientation>;<scroll factor>]`
 - `scroll_container_end[]`

Other elements can be embedded in this element. Scrollbar must be placed manually.
2020-04-13 10:50:07 +02:00
Wuzzy
a24d3b3600
Play 'player_jump' when player jumps () 2020-04-12 00:50:40 +01:00
Lars Müller
af2e6a6a10
Improve waypoints and add image variant () 2020-04-11 22:09:46 +01:00
Hugues Ross
f780bae05c
Formspecs: Add state-selection to style elements () 2020-04-11 21:39:30 +01:00
Paul Ouellette
840b17ce63
Update API site build () 2020-04-11 20:38:39 +02:00
sfan5
1292bdbbce Various features and fixes 2020-04-11 13:12:51 +02:00
sfan5
5f3a17eb65 Implement minetest.sound_fade() 2020-04-11 13:12:51 +02:00
rubenwardy
143a37e947
Clarify use of minetest.request_insecure_environment() () 2020-04-06 16:54:27 +02:00
Wren Turkal
f91124a0c0
Add allowed_mapgens option in game.conf. ()
The game.conf has a disallowed_mapgens option. However, some games
require a certain mapgen to be used, like the CTF plugin. This change
adds an option to specify allowed mapgens so that the setting can be
specified in a way that needn't be updated as map generators are added
to Minetest.
2020-04-06 16:06:16 +02:00
Wuzzy
faedde08f9
Some minor Lua API documentation clarifications ()
See 
2020-04-06 16:05:27 +02:00
sfan5
528b162d9f Continue with 5.3.0-dev 2020-04-05 18:31:52 +02:00
Paramat
45a2ca0af2
Add warning to set_sky() docs about unstable dawn and night sky colours ()
Also clean up confusing double meaning usage of the word 'skybox'.
2020-04-03 02:57:15 +01:00
v-rob
9953145a4e
Formspec: Mark hypertext and markup language as unstable 2020-03-28 21:54:19 +01:00
sfan5
3c0d309643 Improve documentation of minetest.get_node_drops()
Also remove the comment saying it could be removed or modified.
2020-03-26 20:35:05 +01:00
Dave Chu
f7c7353a9a
Fix small typos in lua_api.txt () 2020-03-25 11:44:20 +01:00
v-rob
13ad8e2a09
Formspecs: Add starting frame to animated_image () 2020-03-16 22:56:48 +01:00
Jordan Snelling
b9a0626d88
Fix star visilibity and documentation (since 946c03c6)
Fix memory leak (unused allocation)
Fix star rendering
Rename sky color struct
Fix stars on android
Remove extraneous .data() from android star draw
2020-03-08 16:13:36 +01:00
sfan5
e774d8ca2f Fixes around ServerActiveObject on_punch handling 2020-03-05 22:04:23 +01:00
sfan5
8d6a0b917c
Fix potential security issue(s), documentation on minetest.deserialize() ()
Also adds an unittest
2020-03-05 22:03:04 +01:00
Jordach
946c03c69b set_sky improvements, set_sun, set_moon and set_stars 2020-03-05 20:12:19 +01:00
Wuzzy
580e7e8eb9 Fix pathfinder bugs: returning nil frequently, broken A*, jump through solid nodes ()
* Fix pathfinder fail when startpos is over air
* Note down pathfinder restrictions
* Implement real A* search
* Pathfinder: Implement buildPath non-recursively
* Update find_path documentation
* Pathfinder: Check if jump path is unobstructed
* Pathfinder: Fix drop check first checking upwards
* Pathfinder: Return nil if source or dest are solid
* Pathfinder: Use priority queue for open list
2020-03-05 12:09:44 +01:00
v-rob
7dffd08c1a
Add multiple element selection to style and style_type () 2020-03-01 14:39:57 +00:00
Gao Tiesuan
8ddb6718e3
Fix incorrect spelling in lua_api.txt () 2020-02-26 02:27:54 +00:00
sfan5
6be7150cd5 Documementation: Add advice on lifetime of ObjectRefs 2020-02-23 22:24:12 +01:00
sfan5
217f3a42f4 Documentation: More precise description of ObjectRef:remove() 2020-02-23 22:24:12 +01:00
Paramat
2df226bb41
Lua_api.txt: Add documentation of VoxelArea 'ystride', 'zstride' () 2020-02-22 01:11:33 +00:00
Hugues Ross
7ce21788f8
Add animated_image[] formspec element () 2020-02-15 15:33:18 +00:00
Wuzzy
ff769e7df5
Add missing paramtype2 documentation () 2020-02-13 23:27:20 +01:00
Paramat
b14aa1c847
Warn of biome ID re-allocation when unregistering or clearing biomes () 2020-02-03 00:31:00 +00:00
sfan5
ace3c76112 Improve core.sound_play with ephemeral sounds and player exclusion 2020-02-01 20:31:41 +01:00
HybridDog
ea5e231959
Add table.shuffle () 2020-02-01 16:09:45 +01:00
DS
1116918dbb
Formspec: Create a new class for inventorylists () 2020-02-01 13:55:13 +01:00
Hugues Ross
60544ac56f Add 9-slice background support to button formspec elements () 2020-01-26 19:35:26 +00:00
SmallJoker
cde2a7f6f2
Settings: Add get_flags API for mapgen flags (mg_flags, mgv6_spflags, ...) ()
Unified flags handling in C++ and Lua Settings API
     -> Reading only, for now. Writing can be implemented later, if needed.
API function to read the currently active flags
     -> was impossible from Lua

Co-authored-by: Wuzzy <wuzzy2@mail.ru>
2020-01-25 16:56:54 +01:00
Wuzzy
e05b7dbb3c Remove unused weight property from objects () 2020-01-22 10:19:27 +01:00
Wuzzy
0877587cce Resized torchlike sprite now attaches to surface () 2020-01-20 19:17:54 +00:00
ANAND
468eb4bf57 lua_api.txt: Improve privs_to_string and string_to_privs documentation () 2020-01-19 11:16:54 +01:00
Hugues Ross
680aaa1bd5 Make clipping of formspec elements more consistent () 2020-01-16 18:41:07 +00:00
Wuzzy
3189e4466b Add missing entity documentation () 2020-01-09 19:48:16 +01:00
Wuzzy
f4f7c7a11b Improve Lua API documentation on sounds () 2020-01-08 21:27:54 +00:00
HybridDog
f9c7e46a34 Add table.key_value_swap () 2020-01-04 15:44:48 +01:00
Wuzzy
3ad92baa9c Tweak default textures () 2020-01-04 15:44:31 +01:00
Wuzzy
7199dc7559 Document permissible group ratings () 2019-12-24 19:12:31 +01:00
Bluebird
80af58c8c5 Make core.item_place_node return position of placed node. () 2019-12-18 19:21:24 +01:00
sfan5
db7e59f472 Correct documentation around minetest.item_place
The code that calls minetest.item_place_object was removed
in 2013 in commit fc61c8809b9a1d47d9f117446764107a56cec956.
2019-12-16 21:24:34 +01:00
SmallJoker
41ff0f6679
Lua API: Document HP, breath and damage limits () 2019-12-15 18:55:01 +01:00
Hugues Ross
9284313d17 Refactor to centralize GUIButton styling/rendering code () 2019-12-09 20:06:51 +00:00