aboutsummaryrefslogtreecommitdiff
path: root/builtin/game
AgeCommit message (Collapse)Author
2017-09-08Fix crash on revocation of removed privilegerubenwardy
2017-09-08Prevent /spawnentity from spawning unknown entity (#6388)Wuzzy
2017-09-04Implement minetest.register_can_bypass_userlimit (#6369)Loïc Blot
* Implement minetest.register_on_userlimit_check This new callback permits to bypass the max_users parameter with new mods condition, based on player name or IP Only one mod needs to permit it. Move core part for builtin privileges checks to builtin
2017-08-30Remove nodeupdate and nodeupdate_singleRui
2017-08-30Zoom: Move enabling zoom to a new player object propertyparamat
Default enabled for no change in default behaviour. Remove 'zoom' privilege.
2017-08-29Fix mistake when calling on_priv_grant/revoke, and document them (#6341)rubenwardy
2017-08-27Lua API: Add function to deregister single biomes (#5445)zeuner
2017-08-26Add on_grant and on_revoke callbacks (#4713)rubenwardy
* Add register_on_priv_grant/revoke, and on_grant/revoke to privs. Call from /grant and /revoke * Call on_grant and on_revoke callbacks from set_privs
2017-08-26Check item_drop amount clientside (#6242)rubenwardy
2017-08-24Builtin item: Tidy up (#4370)SmallJoker
New code structure Use setting movement_gravity Reset age on merge Set merge radius to 1.0m
2017-08-23Respect object property hp_max field for players (#6287)SmallJoker
* Respect object property hp_max field for players This allows modders to configure the maximal HP per player * Statbars: Downscale bar to full 20 HP when exceeding this value Add default max HP for players and breath constants to builtin Document the constants * Rename PLAYER_MAX_HP -> PLAYER_MAX_HP_DEFAULT
2017-08-14Make dropped items colorableDániel Juhász
2017-08-13Add slippery group for nodes (players/items slide)Wuzzy
2017-08-12Abort if static_spawnpoint is an invalid setting instead of just giving an ↵Hybrid Dog
error log
2017-06-30Create a filesystem abstraction layer for CSM and only allow accessing files ↵red-001
that are scanned into it. (#5965) * Load client-side mods into memory before executing them. This removes the remaining filesystem access that client-sided mods had and it will hopefully make then more secure. * Lua Virtual filesystem: don't load the files into memory just scan the filenames into memory. * Fix the issues with backtrace * fix most of the issues * fix code style. * add a comment
2017-06-24Helper methods for hardware colorization (#5870)Dániel Juhász
2017-06-20Automatic item and node colorization (#5640)Dániel Juhász
* Automatic item and node colorization Now nodes with a palette yield colored item stacks, and colored items place colored nodes by default. The client predicts the colorization. * Backwards compatibility * Use nil * Style fixes * Fix code style * Document changes
2017-06-15Improve chatcommand params consistency (#5985)Ezhh
* Fix and improve params consistency * Move parenthesis requirement to descriptions
2017-06-07[CSM] Add function to get player privileges (#5933)red-001
* [CSM] Add function to get player privileges + move related help functions to common * Added @Zeno- const
2017-06-02Remove “inf” argument from shutdown command help (#5880)Wuzzy
2017-05-20Add /clearinv chat command (#4994)Elijah Duffy
Allow players to clear their own inventory or that of another player with /clearinv command. server privilege is required to clear another player's inventory, no privileges are required to clear your own inventory.'
2017-05-06Use a settings object for the main settingsShadowNinja
This unifies the settings APIs. This also unifies the sync and async registration APIs, since the async registration API did not support adding non-functions to the API table.
2017-04-23Player data to Database (#5475)Loïc Blot
* Player data to Database Add player data into databases (SQLite3 & PG only) PostgreSQL & SQLite: better POO Design for databases Add --migrate-players argument to server + deprecation warning * Remove players directory if empty
2017-04-22Add /fixlight chat commandDániel Juhász
2017-04-15Implement delayed server shutdown with cancelation (#4664)Loïc Blot
2017-04-08Hardware coloring for itemstacksDániel Juhász
Adds the possibility to colorize item stacks based on their metadata. In the item/node definition you can specify palette (an image file) and color (fallback color if the item has no palette or metadata). Then you can add palette_index to the metadata. Dropped itemstacks with different colors do not merge.
2017-04-08Move chat command handling code from C++ to Lua (#5528)red-001
2017-03-27Map generation limit: Make per-worldparamat
The setting limits map generation but affects nothing else. Add 'mapgen_limit' to global mapgen parameters. Move 'blockpos_over_mapgen_limit()' to the only place it is called from: map.cpp. Allow teleportation to any part of the world even if over the set mapgen limit. Simplify the reading of this limit in mgvalleys. Remove the 'map_generation_limit' setting.
2017-03-26Change command prefix to "." and add "help" command.red-001
2017-03-17Give CSM access to use `core.colorize()` (#5113)red-001
2017-03-15Fix two nul deref if digging unknown nodes. (#5398)Auke Kok
Introduced by d785456b3fa35faf47cb972fde9e8668382c5e22 (#5162)
2017-03-13[CSM] sound_play & sound_stop support + client_lua_api doc (#5096)Loïc Blot
* squashed: CSM: Implement register_globalstep * Re-use fatal error mechanism from server to disconnect client on CSM error * Little client functions cleanups * squashed: CSM: add core.after function * core.after is shared code between client & server * ModApiUtil get_us_time feature enabled for client
2017-03-13[CSM] Add client-sided chat commands (#5092)red-001
2017-03-11Save metainfo for falling nodesVladislav Tsendrovskii
2017-03-10Optimize item.luatenplus1
Replace slow ItemStack get_definitions with registered_nodes one's and cached playername as it's used multiple times. Also removed local item = itemstack:peek_item() as it is never used.
2017-03-04Add minetest.spawn_falling_node(pos) (#5339)zaoqi
* Add minetest.spawn_falling_node(pos) * lua_api.txt: Add minetest.spawn_falling_node(pos) * Update minetest.spawn_falling_node(pos)
2017-02-25Fix crash that can be caused by the shutdown command. (#5292)red-001
2017-02-18Fixes for colorwallmounted and colorfacedir nodesDániel Juhász
Correct node placement prediction for attached colorwallmounted nodes. Correct placement direction for colorfacedir and colorwallmounted nodes. Correct detatch mechanism for attached colorwallmounted nodes.
2017-02-18Statbars.lua: Cache enable_damage settingtenplus1
2017-02-18Add support for the new arguments of `request_shutdown` to the `/shutdown` ↵red-001
chatcommand. (#5252)
2017-02-10Add textures for air and ignore items (#5196)Wuzzy
2017-01-31Make facedir_to_dir and wallmounted_to_dir work with coloured nodes as well. ↵Nathanaël Courant
(#5153)
2017-01-23core: Add dir_to_yaw and yaw_to_dir helpersAuke Kok
These are needed to go from things like entity yaw to a vector and vice versa.
2017-01-20Add chatcommand unregister and override API (#5076)Elijah Duffy
Introduces two functions to unregister and override chatcommands. minetest.unregister_chatcommand("<name>") and minetest.override_chatcommand("<name>", {<redifinition>})
2017-01-18Add minetest.player_exists() (#5064)rubenwardy
2017-01-17Improve priv descriptions (#5047)Ezhh
2017-01-17Remove client-side chat prediction. (#5055)red-001
Network lag isn't really a big issue with chat and chat prediction makes writing mods harder.
2017-01-09Add staticdata parameter to add_entity (#5009)Rui
* Add staticdata parameter to add_entity * Add add_entity_with_staticdata to core.features
2017-01-09builtin/.../falling.lua: Avoid crash when hitting unknown nodessfan5
2017-01-04Expose and document chatcommands as minetest.registered_chatcommandsrubenwardy