aboutsummaryrefslogtreecommitdiff
path: root/builtin/game
AgeCommit message (Collapse)Author
2021-03-19Builtin: Translatable join, leave, profiler msgs (#11064)Wuzzy
2021-03-13Chatcommands: Show the execution time if the command takes a long time (#10472)HybridDog
2021-03-08Fix misleading chat messages of /clearobjects (#10690)Wuzzy
2021-03-07Predict failing placement of ignore nodesWuzzy
2021-03-05Translate builtin (#10693)Wuzzy
This PR is the second attempt to translate builtin. Server-sent translation files can be added to `builtin/locale/`, whereas client-side translations depend on gettext.
2021-02-24Restructure teleport command code (#9706)HybridDog
2021-02-18Replace deprecated call to add_player_velocity in builtin (#10968)Elias Fleckenstein
2021-02-17Fix short_description fallback order (#10943)rubenwardy
2021-02-11Replace 'minetest.' with 'core.' in builtinrubenwardy
2021-02-01Revise dynamic_add_media API to better accomodate future changessfan5
2021-01-31Fix minetest.dig_node returning true when node isn't diggable (#10890)rubenwardy
2021-01-29Rework use_texture_alpha to provide three opaque/clip/blend modessfan5
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-29Drop never documented 'alpha' property from nodedefsfan5
Includes minimal support code for practical reasons. We'll need it for a slightly different purpose next commit.
2021-01-21Removed some obsolete code (#10562)Zughy
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2021-01-11Implement on_rightclickplayer callback (#10775)JDiaz
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2020-12-22Fix fallnode rotation of wallmounted nodebox/mesh (#10643)Wuzzy
2020-12-04Fix certain connected nodeboxes crashing when fallingsfan5
fixes #10695
2020-11-15Fix falling image of torchlike if paramtype2="none" (#10612)Wuzzy
2020-11-12Copy position for can_digsfan5
fixes #10514
2020-11-10Do not set a default for description in itemdef table (#10559)DS
* Do not set a default for description in itemdef table * improve documentation
2020-10-09Add a short_description to be used by mods (#8980)DS
2020-10-06Add minetest.get_artificial_light and minetest.get_natural_light (#5680)HybridDog
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-04Deprecate get_player_velocity and add_player_velocity (#10173)rubenwardy
2020-10-03Lua API: Add register_on_chatcommand to SSM and CSM (#7862)Elijah Duffy
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-03Chatcommand: Show help message if func returns false without messageHybridDog
#9440
2020-08-30Fix #10349 game crashing if dropped an item with undefined light_source (#10351)Pierre-Yves Rollo
2020-08-30Fix dropped craftitems/tools not using light_source values (#9438)LoneWolfHT
2020-08-06Change `last-login` command to show player name in output (#10263)Emojigit
2020-07-30Falling: Fix error caused by missing param2SmallJoker
Falling nodes that were spawned prior the recent falling node changes did not require param2. Default to param2 = 0 when none is found in the node data.
2020-05-29Add minetest.is_creative_enabledWuzzy
2020-05-27Change item entity collisionbox so that they don't sink into the groundsfan5
2020-05-27Fix falling entity not falling through playerssfan5
2020-05-23Add on_authplayer callback and 'last_login' to on_joinplayer (#9574)sorcerykid
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-19Rework functionality of leveled nodes (#9852)Wuzzy
Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2020-05-16Error msg if trying to teleport attached player (#9824)Wuzzy
2020-05-14Item Entity: Add message to moveresult assertion (#9797)rubenwardy
2020-05-13Document inf value in rollback commands (#9789)Zughy
2020-05-11Add support for statbar “off state” icons (#9462)Wuzzy
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-06Enable collide_with_objects for falling entitiessfan5
falling nodes intentionally still fall through players fixes #5313
2020-05-06Rewrite falling entity to make use of collision infosfan5
fixes #4781, fixes #9293
2020-04-28Fix breath_bar scaling; delay breath_bar hiding by one second (#8271)ANAND
PLAYER_MAX_BREATH_DEFAULT was earlier set to 11, so that 10 bubbles are shown before the breath bar disappears. Now, PLAYER_MAX_BREATH_DEFAULT is set to 10, and the breath_bar scaling code in builtin has been tweaked to show all 10 bubbles before hiding the breath_bar
2020-04-27Rewrite builtin item entity to use collision infosfan5
fixes #8967
2020-04-27Expose collision information to LuaEntity on_stepsfan5
2020-04-27builtin: Correctly indicate failure in /spawnentitysfan5
2020-04-26Add new command /revokeme <priv> (#9584)David Leal
2020-04-13Add default stack size setting (#8873)SmallJoker
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-04Builtin: Make item entities glow less (#9594)sfan5
minor adjustment to #9200
2020-03-14Fix some chatcommands not returning a value (#9503)Wuzzy
2020-03-05Fix pathfinder bugs: returning nil frequently, broken A*, jump through solid ↵Wuzzy
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-02-23Move core.get_connected_players() implementation to C++sfan5
Keeping the ObjectRefs around in a table isn't ideal and this allows removing the somewhat nonsensical is_player_connected() added in 86ef7147.