Commit Graph

1418 Commits

Author SHA1 Message Date
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