aboutsummaryrefslogtreecommitdiff
path: root/builtin/game
AgeCommit message (Collapse)Author
2021-08-09Remove statement semicolons from a lua scripthecks
2021-07-29Add a simple PNG image encoder with Lua API (#11485)hecks
* Add a simple PNG image encoder with Lua API Add ColorSpec to RGBA converter Make a safety wrapper for the encoder Create devtest examples Co-authored-by: hecktest <> Co-authored-by: sfan5 <sfan5@live.de>
2021-07-15Add wallmounted support for plantlike and plantlike_rooted nodes (#11379)Wuzzy
2021-07-09Add API for mods to hook liquid transformation events (#11405)Warr1024
Add API for mods to hook liquid transformation events Without this API, there is no reliable way for mods to be notified when liquid transform modifies nodes and mods are forced to poll for changes. This allows mods to detect changes to flowing liquid nodes and liquid renewal using event-driven logic.
2021-06-30Run on_grant and on_revoke callbacks after privs change (#11387)AFCMS
Callbacks were run too early. This changes the order to call after the privs are updated.
2021-06-24Require 'basic_debug' priv to view gameplay-relevant debug info, require ↵Wuzzy
'debug' priv to view wireframe (#9315) Fixes #7245.
2021-06-20Add min_y and max_y checks for Active Block Modifiers (ABM) (#11333)sfence
This check can be used by ABM to reduce CPU usage.
2021-06-12Message for empty list output in /haspriv & /mods (#11149)Wuzzy
2021-06-12falling.lua - Fix Meshnodes Being Too Big (#11307)benrob0329
2021-06-04Add metatables to lua vectors (#11039)DS
Add backwards-compatible metatable functions for vectors.
2021-05-30Use safe_file_write to save forceloaded blockssfan5
2021-05-29Fix misleading /shutdown command syntaxWuzzy
2021-04-28Fix rotation for falling mesh degrotate nodes (#11159)Wuzzy
2021-04-20Put torch/signlike node on floor if no paramtype2 (#11074)Wuzzy
2021-04-13Also return the ObjectRef from minetest.spawn_falling_node() (#11184)benrob0329
2021-03-30Add entry in features table for degrotate changessfan5
2021-03-30Degrotate support for mesh nodes (#7840)Vitaliy
2021-03-29Clean up various misleading and/or confusing messages and texts related to ↵Wuzzy
priv changes (#11126)
2021-03-26Translate chatcommand delay message and replace minetest with core (#11113)HybridDog
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