aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
AgeCommit message (Collapse)Author
2019-08-12Add support for set_formspec_prepend in main menu (#8611)rubenwardy
2019-08-10Fix some issues with minetest.clear_craft (#8712)Paul Ouellette
* Fix some issues with minetest.clear_craft - Fix memory leak - Fix crafts with an output count not being cleared when clearing by input. - Fix recipe list being reversed when clearing by input. * Add CraftInput::empty()
2019-08-10Merge pull request #8776 from osjc/FixGetNodeJozef Behran
Finish getNode cleanup
2019-08-10Implement adding velocity to player from Luasfan5
The intended usecase is knockback, but there's potential for more.
2019-08-07Unify wield item handling (#8677)SmallJoker
This moves the wield item functions to Player and the tool utils for range calculation Also 'local_inventory' was removed due to redundancy in Client
2019-07-30Move the clamping of hp/breath when their maximums change to ↵Beha
read_object_properties(). (#8689) This prevents set_properties() calls that have nothing to do with hp_max or breath_max overriding the saved hp before another mod has the chance to set a player's intended hp_max (such as in on_joinplayer).
2019-06-06HTTP API: Allow binary downloads and headers (#8573)SmallJoker
Add minetest.features.httpfetch_binary_data
2019-05-21Fix forgotten PlayerSAO cast in a90f2efSmallJoker
2019-05-21Check for out-of-bounds breath when setting breath_max (#8493)ANAND ツ
2019-05-21l_mapgen.cpp: Fix LINT broken since b1b40feSmallJoker
2019-05-18Allow multiple cave liquids in a biome definition (#8481)Paramat
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-12Move HTTP request logging to infostream (#8526)ANAND ︻气デ═一
2019-04-28Force send a mapblock to a player (#8140)sofar
* 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-11Add node field to PlayerHPChangeReason table (#8368)Paul Ouellette
2019-04-07Add deprecation warnings for ObjectRef:get/set_attribute (#8443)ANAND
2019-03-12HPChange Reason: Fix push after free, and type being overwritten (#8359)rubenwardy
* HPChange Reason: Fix push after free, and type being overwritten Fixes #8227 and #8344
2019-03-05Hide uninstall package button on unmodifiable paths (#8255)rubenwardy
2019-03-01Fix particle spawners not visible since CSM spawner implementation (#8289)Loïc Blot
* Drop the ID mapper, use a big u64 instead. This will permit to resync server ids properly with the manager code * Modernize some code parts (std::unordered_map, auto) * generate id on client part on U32_MAX + 1 ids, lower are for server ids
2019-02-26Revert "Revert CSM particles commit to fix particle spawner bug for 5.0.0 ↵Loïc Blot
(#8288)" This reverts commit 01cd63bd3bca0192dab2834faf414b022706a77e.
2019-02-26Revert CSM particles commit to fix particle spawner bug for 5.0.0 (#8288)Paramat
Reverts 5dab7426451842793b183fbd961ad2ae83c8acbd "[CSM] Add functions to create particles and particlespawners."
2019-02-14Fix extract zip writing lowercase files (#8221)rubenwardy
2019-02-10Consistent HP and damage types (#8167)SmallJoker
Remove deprecated HUDs and chat message handling. Remove unused m_damage variable (compat break). HP: s32 for setter/calculations, u16 for getter.
2019-01-31Content store: Fix storage leak by storing screenshots in cache (#8137)rubenwardy
2019-01-26Fix pkgmgr game install with RUN_IN_PLACE=0 (#8113)Paul Ouellette
2019-01-06Fix various bugs (Anticheat, Lua helpers) (#8013)SmallJoker
* Fix various bugs (Anticheat, Lua helpers) Anticheat: Use camera position instead of player position for shoot line calculations Lua helpers: Increase 'i' to not overwrite earlier added table values * Remove lag compensation * * 1.5 for larger selection boxes
2018-12-31Add minetest.load_area (#8023)HybridDog
2018-12-24CSM: add requested CSM_RF_READ_PLAYERINFO (#8007)Loïc Blot
* 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-21reportMetadataChange; Silence clang warningsSmallJoker
2018-12-11Fix ContentDB packages timing out by using download_file instead (#7891)rubenwardy
2018-12-04Send only changed node metadata to clients instead of whole mapblock (#5268)SmallJoker
Includes newer style changes and fixes by est31 Improve the block position de-serialization Add type NodeMetadataMap
2018-11-28Move client-specific files to 'src/client' (#7902)Quentin Bazin
Update Android.mk Remove 'src/client' from include_directories
2018-11-28Add Lua methods 'set_rotation()' and 'get_rotation()' (#7395)CoderForTheBetter
* 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-08Content store: Add setting to filter non-free packages (#7766)rubenwardy
Defaulting to hiding in order to help with Debian/etc distribution. This could be changed at a later date.
2018-10-24clear_craft: Return false if recipe not found, don't throw error (#7804)Paramat
2018-10-10 Add core.remove_detached_inventory (#7684)SmallJoker
Breaks backwards compatibility for good Bump protocol version
2018-09-11markAliasDeprecated: Fix MSVC buildSmallJoker
2018-09-08Particles: Make collision with objects optional (#7682)Paramat
Also set it to false for node dig particles, as they are often created and high in number. Improve particle documentation.
2018-08-16Raycast: export exact pointing location (#6304)Dániel Juhász
* Return intersection point in node coordinates. * Clarify 'intersection_point' documentation
2018-08-05Replace auth.txt with SQLite auth database (#7279)Ben Deutsch
* Replace auth.txt with SQLite auth database
2018-08-02LuaVoxelManip: Throw warning or error instead of silently doing nothing (#7567)HybridDog
Error on missing parameter. Warning when using a method on the incorrect type of LuaVoxelManip.
2018-07-29Add protocol_version and supported package types to ContentDB urlsrubenwardy
2018-07-08Lua templating reading (part 4): s16, v2s16, v2f (#7512)Loïc Blot
2018-07-01Log deprecated Lua function calls (#7491)SmallJoker
2018-06-30Modernize lua read (part 2 & 3): C++ templating assurance (#7410)Loïc Blot
* Modernize lua read (part 2 & 3): C++ templating assurance Implement the boolean reader Implement the string reader Also remove unused & unimplemented script_error_handler Add a reader with default value
2018-06-30Fix memory leaks in mod storage (#7500)red-001
2018-06-30Fix world deletion (#7494)Vitaliy
* Fix world deletion
2018-06-30Fix a memleak before assertion in l_get_mod_storageLoic Blot
2018-06-27Fix mod channels crash (#7481)red-001
2018-06-26Rename CSM flavours to restrictionsSmallJoker
& Satisfy LINT
2018-06-18Update to new ContentDB APIrubenwardy