23 Commits

Author SHA1 Message Date
MoNTE48
5be70a7441 Align text in death formspec 2021-09-12 16:28:01 +02:00
MoNTE48
54f5679db3 Builtin: Backport MT5 client 2020-02-04 20:02:25 +01:00
MoNTE48
32c44e00c4 Builtin: Clearing Functions and Variables 2019-10-16 20:08:12 +02:00
MoNTE48
f24fc3c1e1 Grant some privs in creative mode 2019-10-11 14:28:30 +02:00
MoNTE48
cf738ccdfa Backport minor builtin changes and fix shutdown delay command 2019-06-05 11:38:27 +02:00
Pierre-Adrien Langrognet
69f19f1af7 [CSM] Add send_chat_message and run_server_chatcommand API functions (#5747)
* [CSM] Add send_chat_message and run_server_chatcommand API functions

* Add client-side chat message rate limiting

* Limit out chat queue size

* [CSM] Add minetest.clear_out_chat_queue API function and .clear_chat_queue chatcommand

* Last fixes/cleanups before merge
2017-05-21 23:06:51 +02:00
red-001
67be889162 [CSM] add on_item_use (#5544) 2017-05-06 21:12:44 +02:00
Vincent Glize
aa2fb725a0 [CSM] Add event on_place_node API lua (#5548)
* [CSM] Add event on_place_node API lua
2017-04-29 12:08:16 +02:00
red-001
c06edc9df2 [CSM] Allow escaping chatcommands and add missing calls to gettext. (#5565) 2017-04-11 23:35:25 +02:00
red-001
c84ad776bb [CSM] Use more gettext (#5553) 2017-04-10 21:14:00 +02:00
red-001
96a2b6802e [CSM] Move .list_players and .disconnect to builtin. (#5550) 2017-04-10 21:13:20 +02:00
Vincent Glize
74a467af38 [CSM] Add event on_connect player API lua (#5540)
* Add event on_connect player API lua
2017-04-08 08:20:30 +02:00
Loic Blot
e349677850 Expose vector helpers to CSM 2017-04-06 07:57:49 +02:00
red-001
792d324efc Change command prefix to "." and add "help" command. 2017-03-26 05:51:14 +01:00
red-001
5760df63e7 [CSM] Add on_punchnode callback 2017-03-13 23:56:05 +01:00
red-001
eff52689a4 [CSM] Add on_dignode callback (#5140) 2017-03-13 23:56:05 +01:00
red-001
8fe57bcf35 [CSM] Improve security for client-sided mods (#5100) 2017-03-13 23:56:05 +01:00
Loïc Blot
be647e257f [CSM] implement client side mod loading (#5123)
* client side mods are located in clientmods/
* move builtin/preview.lua to clientmods/preview/init.lua as a preview mod
* refactor ModConfiguration class to work properly with client and server using child objects
* move some Server constructor mod load code to ModConfiguration to reduce code duplication between client and server
* remove mods.{cpp,h} unused functions
* use UNORDERED_SET instead of std::set in some modspec storages
2017-03-13 23:56:05 +01:00
red-001
2001a8c195 [CSM] Add local formspecs. (#5094) 2017-03-13 23:56:05 +01:00
Loïc Blot
04680f648a [CSM] sound_play & sound_stop support + client_lua_api doc (#5096)
* 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 23:56:05 +01:00
red-001
1c7fd8a35c [CSM] Add client-sided chat commands (#5092) 2017-03-13 23:56:05 +01:00
Loïc Blot
828a6149da [CSM] Add on_death, on_hp_modification & oh_damage_taken callbacks (#5093)
* Add on_death callback
* Add on_hp_modification & on_damage_taken callbacks
* move preview code to preview.lua
2017-03-13 23:56:05 +01:00
Loic Blot
045cc40d91 [CSM] Client side modding
* rename GameScripting to ServerScripting
* Make getBuiltinLuaPath static serverside
* Add on_shutdown callback
* Add on_receiving_chat_message & on_sending_chat_message callbacks
* ScriptApiBase: use IGameDef instead of Server
  This permits to share common attribute between client & server
* Enable mod security in client side modding without conditions
2017-03-13 23:56:05 +01:00