Paramat
42fcfb75e8
Allow more than 255 biomes, document new maximum ( #9855 )
...
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 ( #9852 )
...
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 ( #9814 )
...
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 ( #8592 )
2020-05-17 19:09:10 +01:00
ANAND
c1ce4be756
Make automatic_rotate relative, allow setting rotation ( #8468 )
...
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 #9857
2020-05-14 21:16:45 +02:00
Wuzzy
7ec76e530d
Add mapgen settings to world creation dialog ( #9254 )
2020-05-12 02:52:52 +01:00
Lars Müller
9ba24f89f5
Damage texture modifier ( #9833 )
...
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 ( #9462 )
...
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 *
( #9718 )
2020-05-06 19:36:02 +02:00
sfan5
b6b80f55c8
Expose collided objects in moveresult
...
closes #9787
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 ( #9813 )
2020-05-05 08:35:55 +02:00
Hugues Ross
cb9a44ef89
Add 'content_offset' and 'padding' style properties for buttons ( #9661 )
...
* 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 ( #9701 )
2020-05-02 13:12:02 +02:00
ANAND
e0ea87f1f3
set_fov: Add support for time-based transitions ( #9705 )
2020-05-02 12:52:11 +02:00
sfan5
ac368af4fe
Allow connection info to be missing from minetest.get_player_information() ( #9739 )
...
fixes #9352
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 ( #8691 )
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 ( #9733 )
...
* 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 ( #9693 )
2020-04-17 10:24:51 +02:00
Maksim
62ae7adab2
Android: add Android Studio support, completely redone java part ( #9066 )
2020-04-15 16:27:40 +02:00
DS
62c62f3829
Add all src folders to doxygen ( #9603 )
2020-04-14 21:22:49 +02:00
Hugues Ross
5cf6318117
Refactor texture overrides and add new features ( #9600 )
...
* 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 ( #8873 )
...
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) ( #9101 )
...
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 ( #9373 )
2020-04-12 00:50:40 +01:00
Lars Müller
af2e6a6a10
Improve waypoints and add image variant ( #9480 )
2020-04-11 22:09:46 +01:00
Hugues Ross
f780bae05c
Formspecs: Add state-selection to style elements ( #9378 )
2020-04-11 21:39:30 +01:00
Paul Ouellette
840b17ce63
Update API site build ( #9622 )
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() ( #9597 )
2020-04-06 16:54:27 +02:00
Wren Turkal
f91124a0c0
Add allowed_mapgens option in game.conf. ( #9263 )
...
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 ( #9461 )
...
See #5854
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 ( #9578 )
...
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 ( #9546 )
2020-03-25 11:44:20 +01:00
v-rob
13ad8e2a09
Formspecs: Add starting frame to animated_image
( #9411 )
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() ( #9369 )
...
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 ( #9339 )
...
* 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
( #9380 )
2020-03-01 14:39:57 +00:00
Gao Tiesuan
8ddb6718e3
Fix incorrect spelling in lua_api.txt ( #9431 )
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' ( #9415 )
2020-02-22 01:11:33 +00:00
Hugues Ross
7ce21788f8
Add animated_image[] formspec element ( #9258 )
2020-02-15 15:33:18 +00:00
Wuzzy
ff769e7df5
Add missing paramtype2 documentation ( #9397 )
2020-02-13 23:27:20 +01:00
Paramat
b14aa1c847
Warn of biome ID re-allocation when unregistering or clearing biomes ( #9359 )
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 ( #8299 )
2020-02-01 16:09:45 +01:00
DS
1116918dbb
Formspec: Create a new class for inventorylists ( #9287 )
2020-02-01 13:55:13 +01:00
Hugues Ross
60544ac56f
Add 9-slice background support to button formspec elements ( #9290 )
2020-01-26 19:35:26 +00:00
SmallJoker
cde2a7f6f2
Settings: Add get_flags API for mapgen flags (mg_flags, mgv6_spflags, ...) ( #9284 )
...
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 ( #9320 )
2020-01-22 10:19:27 +01:00
Wuzzy
0877587cce
Resized torchlike sprite now attaches to surface ( #9303 )
2020-01-20 19:17:54 +00:00
ANAND
468eb4bf57
lua_api.txt: Improve privs_to_string and string_to_privs documentation ( #9228 )
2020-01-19 11:16:54 +01:00
Hugues Ross
680aaa1bd5
Make clipping of formspec elements more consistent ( #9262 )
2020-01-16 18:41:07 +00:00
Wuzzy
3189e4466b
Add missing entity documentation ( #9297 )
2020-01-09 19:48:16 +01:00
Wuzzy
f4f7c7a11b
Improve Lua API documentation on sounds ( #9265 )
2020-01-08 21:27:54 +00:00
HybridDog
f9c7e46a34
Add table.key_value_swap ( #9248 )
2020-01-04 15:44:48 +01:00
Wuzzy
3ad92baa9c
Tweak default textures ( #9237 )
2020-01-04 15:44:31 +01:00
Wuzzy
7199dc7559
Document permissible group ratings ( #9236 )
2019-12-24 19:12:31 +01:00
Bluebird
80af58c8c5
Make core.item_place_node return position of placed node. ( #7713 )
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 ( #9080 )
2019-12-15 18:55:01 +01:00
Hugues Ross
9284313d17
Refactor to centralize GUIButton styling/rendering code ( #9090 )
2019-12-09 20:06:51 +00:00
DS
8f73ec6c6c
Formspec: make bgcolor element less confusing and allow setting fullscreen color ( #8996 )
2019-12-08 18:59:30 +01:00
Paul Ouellette
27ce6d0ecc
Clean up craft replacements docs
2019-12-07 23:46:24 +01:00
v-rob
4f45bfd08b
Add scrollbaroptions FormSpec element ( #8530 )
2019-12-06 20:51:10 +00:00
Pierre-Yves Rollo
cf7fda0083
Add z-index management to HUD
2019-12-06 20:31:26 +00:00
sfan5
c44318a253
[CSM] Fix and improve minetest.get_language()
...
Previously this method would accidentally reset the locale
and break everything.
2019-11-11 14:06:48 +01:00
sfan5
2c4cf508a9
[CSM] Implement minetest.get_csm_restrictions()
...
fixes #8068
2019-11-11 14:06:48 +01:00
sfan5
b57dc70769
[CSM] Expose more env functions
2019-11-11 14:06:48 +01:00
sfan5
4d668f32a6
Call on_secondary_use when object is right-clicked
2019-11-10 13:12:31 +01:00
sfan5
485b669840
[CSM] Remove non-functional minetest.get_day_count()
2019-11-09 16:08:38 +01:00
sfan5
7e649f985c
Corrections to client_lua_api.txt
2019-11-09 16:08:38 +01:00
sfan5
b1f2a69382
Introduce get_modpath() for CSM
2019-11-09 16:08:38 +01:00
DS
5506e97ed8
Formspec: draw order and clipping for all elements ( #8740 )
2019-11-07 20:11:01 +01:00
sfan5
15a030ec9f
Improve documentation around banning ( #9088 )
...
* Fix ban chatcommand description
* Correct ban API documentation
2019-11-05 19:24:51 +01:00
Pierre-Yves Rollo
72416a6a1f
Formspec: add hypertext element
2019-11-03 11:45:33 +01:00
random-geek
f2e62298a5
Change some usages of "deprecated" to "obsolete" ( #9062 )
...
"Deprecated" means that something is still in use, but is unsupported and needs to be removed.
"Obsolete" means it is already out of use.
2019-10-29 19:23:12 +01:00
random-geek
cd35949cd0
Remove legacy file format documentation
2019-10-23 20:53:24 +02:00
random-geek
2f3c96b38d
Remove legacy flat-file map code
2019-10-23 20:53:24 +02:00
Hugues Ross
69a2099c04
Add more visual feedback for button states ( #8916 )
...
- Add style properties for overriding the the hovered/pressed state
- By default, hovered buttons are a lighter version of the base color
- By default, pressed buttons are a darker version of the base color
- Add hovered bg image support for image buttons (style property)
2019-10-12 18:44:23 +02:00
sfan5
894008ce6f
Continue with 5.2.0-dev
2019-10-12 15:49:06 +02:00
SmallJoker
dee22104b7
Revert "Fix the bgcolor formspec element ( #8716 )" ( #9018 )
...
This reverts commit 1db3d252cff9e8d61fecf1052d7497813851da51.
Temporary solution until a compatible solution is found to define both - formspec and fullscreen backgrounds.
2019-10-06 14:50:45 +02:00
Paramat
653d7b8112
Document node drop tool filtering by string matching as deprecated ( #9009 )
2019-09-30 21:34:43 +01:00
rubenwardy
07bdd6049b
Fix error message caused by adding new parameter to background ( #8922 )
...
Adds background9[] element to keep backwards compatibility in formspec prepends.
2019-09-29 13:40:59 +02:00
sfan5
70f9e1aafa
Punchwear (improved) ( #8959 )
2019-09-22 22:12:21 +02:00
SmallJoker
fec30e37ac
Fix AreaStore's IDs persistence ( #8888 )
...
Improve documentation
Read old formats
Fix free ID function. Return first gap in map
2019-09-21 17:54:52 +02:00
SmallJoker
5fa614d97e
Wieldhand: Specify which ItemStack to use ( #8961 )
...
Makes 'get_wield_item' to return the "main" ItemStack
2019-09-21 11:44:24 +02:00
Anand S
47da640d77
Add support for per-player FOV overrides and multipliers
2019-09-19 20:14:16 +02:00
DS
1db3d252cf
Fix the bgcolor formspec element ( #8716 )
2019-09-15 17:14:31 +01:00
SmallJoker
9acd36bf99
Formspecs: Introduce formspec_version to mods
2019-09-14 19:43:08 +02:00
SmallJoker
e97cbcf34d
Lua API documentation: Various fixes ( #8914 )
...
Remove unusable 'minetest.setting_*' from client_lua_api.txt
lua_api.txt:
- Define the 'mod.conf' format
- More precise 'settingtypes.txt' format reference
- Document special sound files 'player_*damage'
- Group, sort and add 'not_in_creative_inventory' special group
- Define the 'Settings' format
- Warning about incorrect byte saving in 'StorageRef'
- Note about non-persistent player definitions fields
- Better 'leveldiff' and 'level' group description
2019-09-08 18:43:49 +02:00
ANAND
52e3b4bc72
lua_api.txt: Improve privilege definition ( #8912 )
2019-09-08 12:34:44 +02:00
Paul m. p. P
5c97eeabac
doc/client_lua_api: Clarify how client side api and mods start ( #8822 )
2019-09-05 13:06:22 +02:00
DS
0013f064ad
Various fixes to lua_api.txt ( #8878 )
2019-09-01 20:12:22 +02:00
DS
049256573b
Document world format version 28 (private nodemeta) ( #8857 )
2019-08-31 14:47:12 +02:00
DS
f3fd85aafb
Document luaentity pitch and roll in world format ( #8864 )
2019-08-30 19:40:32 +02:00
Beha
99ca72e9df
Clarify docs regarding pointed_thing and get_pointed_thing_position ( #8766 )
2019-08-30 19:40:08 +02:00
Paul Ouellette
008b80fe1c
Add ItemStack:get_description() to get tooltip ( #8847 )
2019-08-24 18:38:02 +02:00
ANAND
75d44ef1e8
lua_api.txt: Add link to Minetest Modding Book ( #8826 )
2019-08-20 21:15:12 +02:00
upsilon
b2065756cf
Add function minetest.read_schematic
2019-08-14 13:15:41 +02:00
rubenwardy
91114b562f
Add support for set_formspec_prepend in main menu ( #8611 )
2019-08-12 19:16:35 +02:00
sfan5
291e7730cf
Add player knockback on punch to builtin
2019-08-10 19:44:27 +02:00
sfan5
cf64054390
Implement adding velocity to player from Lua
...
The intended usecase is knockback, but there's potential for more.
2019-08-10 19:44:27 +02:00
ANAND
d1c27c7e80
Allow customizing chat message format ( #8529 )
2019-08-08 17:04:46 +01:00
rubenwardy
4f7fa8d417
Add formspec testing to test mod in minimal
2019-08-03 19:36:30 +01:00
rubenwardy
9541165752
Add styles to most elements
2019-08-03 19:36:30 +01:00
rubenwardy
ec3795a55c
Add style[] tag with button support
2019-08-03 19:36:30 +01:00
Wuzzy
ec3142af99
Group "immortal" also protects players from damage
...
Document new meaning of immortal=1 for players
Disable breathing if player is immortal
Hide builtin statbars if player immortal (delayed)
Co-authored-by: ClobberXD <ClobberXD@gmail.com>
2019-08-01 14:45:23 +02:00
Beha
50052fced5
lua_api.txt clarifications regarding mapgen object index IDs and handles. ( #8713 )
2019-07-29 14:09:29 +02:00
Alex
a8446d29e8
Document 'wield_item' entity property ( #8694 )
2019-07-26 19:43:54 +02:00
Paramat
9e00584730
Improve documentation of mapgen aliases ( #8693 )
2019-07-20 02:54:42 +01:00
HybridDog
71db715ba5
Add vector.dot and vector.cross
...
Mostly copied from MarkuBu's code
2019-07-16 21:44:42 +02:00
SmallJoker
47492386ec
Docs: Clarify where to check for 'protection_bypass' ( #8675 )
2019-07-14 13:23:38 +02:00
ANAND
3a8ac9b031
Document ObjectRef:remove under Lua entity ( #8659 )
...
This was previously documented under the general ObjectRef section with a note that this won't work on players. So I think this would fit better with Lua entity-only methods.
This PR also changes the title of the Lua entity-only section from `LuaEntitySAO-only` to `Lua entity only`.
2019-07-08 03:27:56 +01:00
Paramat
95371c16e9
Update biome definition dungeon node documentation ( #8650 )
2019-07-01 22:21:17 +01:00
Paramat
bb14b7e956
Dungeongen: Remove most hardcoded dungeon nodes ( #8594 )
...
Biome-defined dungeon nodes was added as a feature to MT 5.0.0.
So now remove most of the hardcoded dungeon node code that assumes a
game has stone, sandstone, desert stone, and no other stone types.
If biome-defined dungeon nodes are not found, dungeon nodes fall back
to the 'cobble' mapgen alias if present, if not present they fall back
to biome-defined 'stone'.
Remove now-unnecessary mapgen aliases from MapgenBasic. Non-mgv6 games
now only need to define 3 to 5 mapgen aliases.
Document dungeon parameters.
Make c_lava_source fallback to c_water_source as both are used as cave
liquids.
2019-06-30 22:55:20 +01:00
v-rob
5e7004e7af
Add compatible, consistent coordinate system to FormSpecs. ( #8524 )
2019-06-27 13:40:49 +01:00
rubenwardy
429a989648
Add support for 9-sliced backgrounds ( #8600 )
...
9-slice textures are commonly used in GUIs to allow scaling them to match any resolution without distortion.
https://en.wikipedia.org/wiki/9-slice_scaling
2019-06-22 16:03:54 +02:00
DS
2ba6785f09
Remove modstore leftovers. Fix core.show_path_select_dialog documentation ( #8572 )
...
This was forgotten in #5852 .
2019-06-07 22:12:20 +02:00
SmallJoker
cb00632e23
HTTP API: Allow binary downloads and headers ( #8573 )
...
Add minetest.features.httpfetch_binary_data
2019-06-06 19:13:29 +02:00
Paul Ouellette
920bd3b16f
Fix API site build ( #8551 )
2019-05-21 19:37:10 +02:00
Paramat
b1b40fef16
Allow multiple cave liquids in a biome definition ( #8481 )
...
This allows games to specify biome cave liquids and avoid the old
hardcoded behaviour, but preserves the ability to have multiple
cave liquids in one biome, such as lava and water.
When multiple cave liquids are defined by the biome definition,
make each entire cave use a randomly chosen liquid, instead of
every small cave segment using a randomly chosen liquid.
Plus an optimisation:
Don't place nodes if cave liquid is defined as 'air'
2019-05-18 21:13:14 +01:00
ANAND
e32a630937
Better document behavior of on_punchplayer
...
Esp. the fact that it's invoked even if the punched player is dead
2019-04-29 14:08:34 +02:00
sofar
b839a6dd54
Force send a mapblock to a player ( #8140 )
...
* Force send a mapblock to a player.
Send a single mapblock to a specific remote player.
This is badly needed for mods and games where players are teleported
into terrain which may be not generated, loaded, or modified
significantly since the last player visit.
In all these cases, the player currently ends up in void, air, or
inside blocks which not only looks bad, but has the effect that the
player might end up falling and then the server needs to correct for
the player position again later, which is a hack.
The best solution is to send at least the single mapblock that the
player will be teleported to. I've tested this with ITB which does this
all the time, and I can see it functioning as expected (it even shows
a half loaded entry hallway, as the further blocks aren't loaded yet).
The parameter is a blockpos (table of x, y, z), not a regular pos.
The function may return false if the call failed. This is most likely
due to the target position not being generated or emerged yet, or
another internal failure, such as the player not being initialized.
* Always send mapblock on teleport or respawn.
This avoids the need for mods to send a mapblock on teleport or
respawn, since any call to `player:set_pos()` will pass this code.
2019-04-28 00:42:13 +01:00
paramat
38b94f248a
Attend to review, re-arrange blank lines, update lua_api.txt
2019-04-14 22:21:51 +01:00
Paul Ouellette
bb7afd306a
Add Mkdocs API site ( #8133 )
...
* Add MkDocs API site
2019-04-12 14:29:29 +02:00
Paul Ouellette
22ad820aa4
Add node field to PlayerHPChangeReason table ( #8368 )
2019-04-11 20:45:39 +01:00
Paramat
1e5f2e0f13
Nodedef 'drop' documentation: Improve, add tool filtering ( #8458 )
2019-04-09 03:20:27 +01:00
Paramat
42e1a12714
Require 'waving = 3' in a nodedef to apply the liquid waving shader ( #8418 )
...
Makes the liquid waving shader per-nodedef like waving leaves/plants,
instead of being applied to all liquids.
Like the waving leaves/plants shaders, the liquid waving shader can
also be applied to meshes and nodeboxes.
Derived from a PR by t0ny2.
2019-03-27 00:18:43 +00:00
Paramat
5e7662ca16
Dungeons: Do not remove nodes that have 'is_ground_content = false' ( #8423 )
...
Like randomwalk caves, preserve nodes that have 'is_ground_content = false',
to avoid dungeons that generate out beyond the edge of a mapchunk destroying
nodes added by mods in 'register_on_generated()'.
Issue discovered by, and original PR by, argyle77.
2019-03-26 03:56:57 +00:00
ANAND
7f1c2b8a00
Builtin: Add vector.angle(). Returns the angle between 2 vectors ( #7738 )
2019-03-17 02:05:03 +00:00
Paramat
eadcbe474a
Lua_api.txt: Document blockpos, coordinate conversion, map terminology ( #8376 )
...
Also fix and improve LVM 'calc_lighting()' warning.
2019-03-16 05:04:11 +00:00
DS
77961aa73d
Document the float
special group ( #8306 )
2019-03-10 11:16:35 +01:00
HybridDog
a7c5dc50e5
Add math.factorial ( #8298 )
2019-03-05 10:11:21 +01:00
DS
60ab2d94f0
Add sounds for falling and attached nodes ( #7719 )
...
* Add sounds for falling and attached nodes
The sound specified in `node_definition.sounds.fall` is used.
When a falling node is spawned at a position or an attached node drops, the sound is played at this position.
* allow all sorts of soundspecs
2019-03-05 08:17:48 +01:00
sfan5
51662dabb4
Continue with 5.1.0-dev
2019-03-04 23:43:18 +01:00
Loïc Blot
111f1dc9c5
Revert "Revert CSM particles commit to fix particle spawner bug for 5.0.0 ( #8288 )"
...
This reverts commit 01cd63bd3bca0192dab2834faf414b022706a77e.
2019-02-26 08:53:53 +01:00
Paramat
01cd63bd3b
Revert CSM particles commit to fix particle spawner bug for 5.0.0 ( #8288 )
...
Reverts 5dab7426451842793b183fbd961ad2ae83c8acbd
"[CSM] Add functions to create particles and particlespawners."
2019-02-26 04:26:25 +00:00
Paramat
6e7ba366fc
lua_api.txt, settingtypes.txt: Various improvements ( #8252 )
2019-02-18 02:53:33 +00:00
Wuzzy
187519407b
Update many things in Lua API docs ( #8236 )
...
- minetest.get_hit_params
- minetest.get_dig_params
- table.indexof
- Scope of minetest.register_alias
- Vector function parameters
- More explanation of when `minetest.on_player_receive_fields` is called
- Syntax/semantics of the fields in `minetest.on_player_receive_fields`
2019-02-17 20:49:51 +00:00
Paramat
00a22ec76d
lua_api.txt: Various additions and improvements ( #8245 )
2019-02-17 02:52:53 +00:00
Paul Ouellette
d5456da69d
Use true pitch/yaw/roll rotations without loss of precision by pgimeno ( #8019 )
...
Store the rotation in the node as a 4x4 transformation matrix internally (through IDummyTransformationSceneNode), which allows more manipulations without losing precision or having gimbal lock issues.
Network rotation is still transmitted as Eulers, though, not as matrix. But it will stay this way in 5.0.
2019-02-07 21:26:06 +00:00
Paul Ouellette
3c2fe3229e
Update manpage ( #8169 )
2019-02-04 00:11:32 +01:00
Julien Palard
23ea02c79c
Protocol Docs: Python check bump to Python 3
2019-02-03 01:32:37 +00:00
rubenwardy
572ba83b30
Content store: Fix storage leak by storing screenshots in cache ( #8137 )
2019-01-31 16:35:55 +00:00
Paul Ouellette
11b550e024
Remove incorrect feature flag ( #8086 )
...
And document the versions that introduced the features.
2019-01-19 15:17:05 +01:00
rubenwardy
70bf3439ab
Deprecate modpack.txt and use modpack.conf instead ( #7892 )
...
* Deprecate modpack.txt and use modpack.conf instead
2019-01-06 10:23:35 +01:00
SmallJoker
bba4563d89
Proselytize the network. Use IEEE F32 ( #8030 )
...
* Proselytize the network. Use IEEE F32
* Remove unused V2F1000 functions
2019-01-03 17:04:26 +01:00
HybridDog
c6f784f43b
Add minetest.load_area ( #8023 )
2018-12-31 00:32:54 +00:00
stujones11
badecfa471
Update README.android with current build info ( #8026 )
2018-12-28 23:31:09 +01:00
Loïc Blot
a5197eaebc
CSM: add requested CSM_RF_READ_PLAYERINFO ( #8007 )
...
* CSM: add requested CSM_RF_READ_PLAYERINFO
This new CSM limit permit to limit PLAYERINFO read from server.
It affects get_player_names call
2018-12-24 10:51:10 +01:00
ClobberXD
a318bceb63
Lua_api.txt: Add documentation of missing field to 'on_punch' ( #8008 )
2018-12-22 00:32:27 +00:00
Kevin Abrams
b7eb81fed9
Add command line option to load password from file ( #7832 )
2018-12-18 20:15:14 +01:00
zeuner
7a4d4bc9e6
Lua_api.txt: Document inventory sending behaviour ( #7720 )
2018-12-18 00:38:39 +00:00
ClobberXD
08610aad7e
(client_)lua_api.txt: Rename func -> function ( #7960 )
2018-12-12 08:50:40 +00:00
Paul Ouellette
ce32a327ff
lua_api.txt: Various fixes and improvements ( #7945 )
...
* Add missing tables of registered things
* Eliminate some duplication
Registration functions in 'Registered definitions' section merged into
'Registration functions' section.
* Misc. fixes
* Add privilege definition table
* Remove not-special soil group from special groups
* Merge two registration functions sections
* Move 'added to' information to tables section
Also fix some capitalization and missing periods
* Minor fixes
* Split Registration functions into two subsections
And update Registered definition tables to match order
* Fixes
2018-12-11 17:37:06 +01:00
rubenwardy
f318366c20
Fix ContentDB packages timing out by using download_file instead ( #7891 )
2018-12-11 04:43:14 +00:00
Alex
a833bee9ed
Add object visual type 'item' ( #7870 )
2018-12-11 02:57:04 +00:00
Paul Ouellette
afaf7b901b
Fix wrong parameter order for inventory callbacks ( #7952 )
2018-12-10 19:18:03 +01:00
Wuzzy
5560ec8178
Add eat sound ( #7956 )
2018-12-10 09:25:47 +01:00
Vanessa Dannenberg
1b0fd195c6
Raise hotbar limit to 32 slots, add associated keybinding options ( #7916 )
...
add associated keybinding options
update docs and settingtypes
2018-12-02 23:34:29 +01:00
zeuner
42166fff74
Document which formspec fields are sent ( #7717 )
2018-12-02 16:05:56 +01:00
CoderForTheBetter
faa358e797
Add Lua methods 'set_rotation()' and 'get_rotation()' ( #7395 )
...
* Adds Lua methods 'set_rotation()' and 'get_rotation'. Also changed some method names to be more clear. Instead of an f32 being sent over network for yaw, now a v3f is sent for rotation on xyz axes. Perserved Lua method set_yaw/setyaw so that old mods still work, other wise to set yaw they would need to switch to set_rotation(0, yaw, 0).
2018-11-28 09:38:50 +01:00
Paramat
1c91cb8f8f
Lua_api.txt: Update glasslike_framed textures documentation ( #7884 )
2018-11-22 04:55:24 +00:00
Paramat
34a5960671
Framed glasslike: Fix and document top/base textures feature ( #7824 )
2018-10-30 06:41:15 +00:00
Paramat
622e2235ee
clear_craft: Return false if recipe not found, don't throw error ( #7804 )
2018-10-24 15:03:21 +01:00
Wuzzy
40ab3e011d
Add disable_repair group to prevent tool repair ( #7381 )
2018-10-16 05:25:34 +01:00
SmallJoker
0a5e77132a
Add core.remove_detached_inventory ( #7684 )
...
Breaks backwards compatibility for good
Bump protocol version
2018-10-10 20:48:58 +02:00
SmallJoker
d77f3b3fde
Player hand list: require init by mods
...
Mods will now have to initialize the list/slot in order to define the default player hand.
They may use the inventory callbacks to prevent abuse of this list.
2018-10-04 20:42:38 +02:00
Vitaliy
18a8fbf465
Software inventorycube ( #7651 )
...
Fixes missing/upside-down images on Android.
2018-09-29 19:40:17 +01:00
Paramat
766fb7b46e
Particles: Make collision with objects optional ( #7682 )
...
Also set it to false for node dig particles, as they are often created
and high in number.
Improve particle documentation.
2018-09-08 00:38:35 +01:00
Paramat
3cc25b700a
Lua_api.txt: Update mapgen alias docs, add Singlenode use ( #7659 )
2018-08-19 19:04:17 +01:00
Dániel Juhász
325bf68041
Raycast: export exact pointing location ( #6304 )
...
* Return intersection point in node coordinates.
* Clarify 'intersection_point' documentation
2018-08-16 20:10:08 +02:00
SmallJoker
798724efea
lua_api.txt: Refine 'Item types' for 4e2eeee ( #7648 )
2018-08-15 20:35:38 +01:00
pauloue
4e2eeee3cc
lua_api.txt: Various fixes and improvements ( #7638 )
...
Improve item types descriptions.
Add replacements field to fuel definition.
Shorten two headers.
Markdown fixes.
Remove extra example.
Add blank lines after headings.
Linkify section references.
Bracketed section names can be linked when compiled to HTML.
2018-08-15 16:05:11 +01:00
Paramat
03f89e8ffc
texture_packs.txt: Add information for leaves texturing ( #7637 )
...
Explain texture requirements due to the leaves rendering options.
2018-08-14 00:30:13 +01:00
ClobberXD
6bd4cb9f7e
Lua_api.txt: Move item def section nearby node def ( #7636 )
2018-08-12 22:36:16 +01:00
zeuner
ea26076bcb
Feature check for commit ac4884c3d677ef51bcce47f95ccd49d874022692 ( #7618 )
...
adds `entity_independent_selectionbox` to minetest.features
2018-08-12 13:37:17 +02:00
rubenwardy
88efebdf86
Formspecs: Add tooltip element for area
2018-08-05 15:50:02 +01:00
Ben Deutsch
153fb211ac
Replace auth.txt with SQLite auth database ( #7279 )
...
* Replace auth.txt with SQLite auth database
2018-08-05 13:13:38 +02:00
pauloue
3e6da81791
lua_api.txt: Improve code block format ( #7599 )
...
Remove ^ and --[[ ]] symbols.
Fix comment indentation level.
Separate fields with blank lines.
Remove period from single-sentence descriptions, add periods to
multi-sentence descriptions.
Separate inline comments from the code with two spaces.
2018-08-03 21:36:24 +01:00
ClobberXD
654f57333f
Lua_api.txt: Improve Player HUD flags documentation ( #7588 )
2018-07-31 13:00:02 +01:00
Paramat
bf45644041
Lua_api.txt: Clarify entity 'initial_properties' and related deprecation ( #7596 )
2018-07-29 22:07:55 +01:00
pauloue
0d55879a1a
Lua_api.txt: Various improvements ( #7582 )
...
Fixes and format improvements.
Shorten definition tables headers and clarify when they are used.
Add subheadings for craft recipes.
2018-07-26 03:56:11 +01:00
lhofhansl
7454deb1bf
Allow an optional readonly base database ( #7544 )
...
* Allow an optional readonly base database
* Added basic documentation
2018-07-25 17:54:23 +02:00
HybridDog
78a801e42d
Update mip mapping and textarea documentation ( #7315 )
...
* Fix textarea formspec documentation
The label is shown and the background isn't
* Document the missing gamma correction when generating mip maps
* Remove duplicate text (such as size parameter descriptions)
2018-07-19 18:28:26 +02:00
Paramat
1aaee5b30d
Lua_api.txt: Various minor improvements ( #7560 )
...
Add missing section title for 'Node paramtypes'.
Clarify documentation for schematic Y-slice table.
Document that schematic Y-slice behaviour does not invert for ceiling
schematic decorations.
2018-07-16 04:57:44 +01:00
pauloue
334d8c31ee
Lua_api.txt: Formatting and grammar fixes ( #7534 )
...
Use tree output for directory structure.
Remove 2 blank lines near document top.
Spelling and grammar fixes.
Markdown fixes.
Condense paths section.
Fix skipped heading levels.
2018-07-08 04:18:53 +01:00
Paramat
55b6bc085b
Lua_api.txt: Improve section titles, clarify sections ( #7533 )
2018-07-06 21:02:54 +01:00
SmallJoker
6f22d14206
Make the server status message customizable ( #7357 )
...
Remove now redundant setting show_statusline_on_connect
Improve documentation of `minetest.get_server_status`
2018-07-01 12:31:28 +02:00
Paramat
e4e95e47af
Lua_api.txt: Re-order some sections. Alphabeticise class reference ( #7487 )
2018-06-26 02:34:27 +01:00
Anand S
d565783bec
Lua_api.txt: Replace engine.*
with core.*
( #7474 )
2018-06-24 21:18:25 +01:00
Paramat
de621d5d4b
Decoration API: Add lightweight ability to have complete coverage ( #7456 )
...
When the noise value or fill_ratio >= 10.0 complete coverage is enabled.
This disables random placement to avoid redundant multiple placements
at one position. Instead, 1 decoration per surface node is placed by
looping across each division.
'10' was chosen as this is the fill_ratio that previously created
very near complete coverage. The complete coverage feature therefore
integrates smoothly when noise is used for variable decoration density.
'fill_ratio = 10' should be used by modders who want a decoration
placed on every surface node. Compared to before such a decoration
placement will be 10 times faster.
2018-06-24 17:14:18 +01:00
Anand S
2e95ebd181
Lua_api.txt: Fix incorrect vector section directive ( #7466 )
2018-06-20 13:05:56 +01:00
Anand S
e8b687d7ca
Remove deprecated functions from menu_lua_api.txt ( #7455 )
2018-06-17 10:41:21 +02:00
Loïc Blot
ac6e8e2914
Version scheme change: 0.5.0 -> 5.0.0 ( #7449 )
...
* Version scheme change: 0.5.0 -> 5.0.0
2018-06-15 09:16:48 +02:00
Paramat
9ca37d86a3
Lua_api.txt: Warn of errors possible with VoxelArea:index()/indexp() ( #7422 )
2018-06-08 00:46:10 +01:00
Loïc Blot
ccc3af128c
CSM/SSM: Add on_mods_loaded callback ( #7411 )
...
* CSM/SSM: Add on_mods_loaded callback
2018-06-06 12:53:59 +02:00
Paramat
5316b8fe4a
Lua_api.txt: Various improvements ( #7402 )
...
Node definition:
Clearly document custom selection box/collision box (collision box
documentation was missing).
Remove incorrect light attenuation statement and duplicated light
source statement.
Nodes:
Document which drawtypes require 'paramtype = "light"' to avoid
appearing black.
Remove incorrect light attenuation statement.
HUD: Remove 'HUD API is experimental' text.
Noise params: Spread of every octave must exceed 1.
Particles and spawners: Document glow values.
2018-06-03 04:41:03 +01:00
Loïc Blot
162ffd7fba
Fix isNan on setYaw Lua call ( #7380 )
...
* Fix isNan on setYaw Lua call
2018-05-31 22:52:08 +02:00
Wuzzy
04f79623a7
Say position of locale dir more clearly in docs ( #7338 )
2018-05-16 19:46:28 +02:00
SmallJoker
9dd432c29f
Run detach callbacks on player leave
...
Correct docs regarding non-nil detaching children
2018-05-12 11:50:04 +02:00
SmallJoker
ba91624d8c
Allow damage for attached objects, add attach/detach callbacks ( #6786 )
...
* Allow right-clicking on attached LuaEntities
2018-04-30 18:43:49 +02:00
rubenwardy
0b5b32b026
MetaDataRef: Add contains() and get() ( #7214 )
2018-04-30 18:42:51 +02:00
Thomas--S
9577a4396a
Formspecs: Allow setting alpha value for the box[] element
2018-04-23 18:50:50 +01:00
rubenwardy
87ad4d8e7f
Add online content repository
...
Replaces mods and texture pack tabs with a single content tab
2018-04-19 20:14:53 +01:00
Paramat
746ca41f58
Biome API / dungeons: Add biome-defined dungeon nodes
...
Add new biome fields 'node_dungeon', 'node_dungeon_alt', 'node_dungeon_stair'.
If 'node_dungeon' is not defined dungeons fall back to classic behaviour.
Remove messy and imprecise dungeon material code from 'generateBiomes()'.
Code deciding dungeon materials is now in 'generateDungeons()' and uses the
biome at mapchunk centre for more precision.
Remove hardcoded 'MG_STONE' types as long intended.
2018-04-07 22:09:54 +01:00
rubenwardy
91615f9588
Add player:get_meta(), deprecate player attributes ( #7202 )
...
* Add player:get_meta(), deprecate player attributes
2018-04-06 10:52:29 +02:00
Paramat
32d456bd2d
Biome API / cavegen: Add definable cave liquid for a biome ( #7192 )
...
Add 'node_cave_liquid' as a new field in biome registration.
If field is absent cave liquids fall back to classic behaviour.
2018-04-05 17:21:41 +01:00
SmallJoker
f6eff57f7c
Add player inventory callbacks
2018-04-02 17:18:48 +02:00
you
93eb0794d6
ObjectRef: Add add_velocity() ( #3208 )
...
Allow changing the velocity of objects relatively to their current velocity
2018-03-31 14:50:17 +02:00
SmallJoker
8f827ee680
core.rotate_node: Do not trigger after_place_node ( #6900 )
2018-03-29 21:44:13 +02:00
stujones11
821e3f7072
Optional alpha channel support for entities
2018-03-29 14:53:12 +01:00
Andrew Ward
71b2570f09
Load dependencies and description from mod.conf
2018-03-28 22:14:16 +01:00
Andrew Ward
dfc8198349
Add reasons to on_dieplayer and on_hpchange
2018-03-28 16:05:18 +01:00
Andrew Ward
2323842dd3
Add formspec theming using prepended strings
2018-03-28 16:04:41 +01:00
Paramat
5e2096e396
Lua_api.txt: Improve noise documentation
2018-03-22 02:36:52 +00:00
paramat
68c6494af0
Lua_api.txt: Fix hardware colouring documentation
...
More 'draw type' -> 'paramtype2' changes, missing from a previous commit.
2018-03-20 03:41:31 +00:00
paramat
fdc02a59ba
Lua_api.txt: Split long lines part 6
2018-03-17 05:26:53 +00:00
paramat
0d8cb8433a
Lua_api.txt: Split long lines part 5, fix hardware colouring docs
2018-03-16 02:59:48 +00:00
paramat
06f67646d8
Lua_api.txt: Split long lines part 4
2018-03-14 04:28:03 +00:00
paramat
92ca9dda54
Rename 'subgame' to 'game'
2018-03-13 03:54:52 +00:00
paramat
d57024b7c9
Lua_api.txt: Improve and complete drawtype documentation
...
Move documentation of mesh and plantlike_rooted drawtypes into main section.
2018-03-13 01:12:28 +00:00
paramat
1d385caa06
Lua_api.txt: Split long lines part 3
2018-03-11 23:52:12 +00:00
paramat
7ad6cdd09b
Biome API: Add 'get_biome_name(biome_id)' API
...
Change name of default biome to a more suitable lowercase 'default'.
2018-03-11 23:06:17 +00:00
paramat
5a1884c21d
Lua_api.txt: Split long lines part 2
2018-03-10 04:35:40 +00:00
paramat
644d0ab2bb
Spawn level: Add 'get_spawn_level(x, z)' API
...
Returns a suitable player spawn y co-ordinate for unmodified terrain.
2018-03-10 03:38:27 +00:00
paramat
b592c52f1c
Lua_api.txt: Split long lines part 1
2018-03-09 04:34:41 +00:00
paramat
1137f469e2
Gennotify docs: Clarify returned positions for decorations
2018-03-09 03:16:34 +00:00
paramat
f091de9a2f
Biomes: Document xyz biome limits
2018-03-09 03:16:25 +00:00
pauloue
6cfd699b9f
Fix bad markdown in lua_api.txt
2018-03-05 15:14:19 +00:00
paramat
48493a979b
Gennotify: Add 'minetest.get_decoration_id' API
...
Returns the decoration ID for the provided decoration name string.
For use with gennotify, to know the decoration IDs for use in
'minetest.set_gen_notify'.
2018-03-03 23:00:08 +00:00
paramat
c610643c4c
Place schematic (on vmanip): Enable use of 'place center' flags
...
For 'place schematic' and 'place schematic on vmanip' APIs.
Fix 'place center' code to properly centre schematics.
Fix some comments.
2018-02-27 19:39:05 +00:00
SmallJoker
66372e75d9
is_area_protected: Rename from intersects_protection ( #7073 )
...
* is_area_protected: Rename from intersects_protection
Return first protected position
Clarify docs: Mods may overwrite the function
2018-02-25 12:25:39 +01:00
paramat
673f7196a2
Find nodes in area (under air): Raise volume limit and document it
2018-02-21 15:54:06 +00:00
pauloue
63bcd33036
Lua API documentation: Fix spelling ( #7046 )
2018-02-18 10:41:22 +01:00
red-001
338d645fcf
Add on_auth_fail
callback ( #7039 )
...
Called when a client fails to supply the correct password for the account it's attempting to login as.
2018-02-15 21:18:54 +01:00
you
87e08b1b3a
Add minetest.is_player ( #7013 )
...
* Add minetest.is_player
* First use for is_player
2018-02-05 15:17:10 +01:00
paramat
b7ff40eea2
Lua_api.txt: Document 'wielditem' visual in object properties
2018-02-05 05:07:36 +00:00
Loïc Blot
584d00a01c
Add minetest.bulk_set_node call + optimize Environment::set_node call ( #6958 )
...
* Add minetest.bulk_set_node call + experimental mod unittest
* Optimize set_node function to prevent triple lookup on contentfeatures
Do only one lookup for old, and try to merge old and new lookup if node is same than previous node
* Add benchmark function + optimize vector population to have real results
2018-01-30 00:30:02 +01:00