Commit Graph

1199 Commits

Author SHA1 Message Date
Matthew I 9a002ec0b7
Add "/mods" command to list mods to client 2022-05-21 16:07:43 +02:00
Perttu Ahola db3d37aaa8
Actually fix facedir-rotated nodes placed using minetest.env:place_node() 2022-05-21 16:07:42 +02:00
Perttu Ahola 05b928da0a
Check whether node is known before reading definition in __builtin:item:on_step() 2022-05-21 16:07:42 +02:00
Calinou 64a2c71b95
Message cleanups (consistency) and prevent /me when not allowed to shout 2022-05-21 16:07:41 +02:00
darkrose af6f80ba63
Handle nil placer as it might occur when using minetest.env:place_node. (Uberi) 2022-05-21 16:07:41 +02:00
Perttu Ahola 299ce58169
Fix /setpassword and /clearpassword 2022-05-21 16:07:41 +02:00
Perttu Ahola a8b475d195
Remove tiles and special_tiles from node definition prototype because otherwise the old names can't be used 2022-05-21 16:07:40 +02:00
Perttu Ahola 7f37a08eba
Update field names to non-deprecated ones in node definition prototype 2022-05-21 16:07:40 +02:00
Perttu Ahola 15213d8768
Node placement client-side prediction 2022-05-21 16:07:39 +02:00
Perttu Ahola 70b13374d6
Don't deprecate minetest.register_on_placenode and minetest.register_on_dignode 2022-05-21 16:07:39 +02:00
Perttu Ahola 361a4d575c
Add minetest.serialize() and minetest.deserialize() 2022-05-21 16:07:38 +02:00
Perttu Ahola 3519373773
place_node, dig_node and punch_node; an in-game tester tool; remove old code 2022-05-21 16:07:38 +02:00
darkrose 28d4194f24
Add can_dig callback 2022-05-21 16:07:38 +02:00
Perttu Ahola 7b4cdba449
Add ObjRef:is_player() and modify ObjRef:get_player_name() to always return a string to aid better inter-object compatibility of code that assumes objects to be players 2022-05-21 16:07:37 +02:00
Perttu Ahola 157b198e0f
Implement locked chest; add after_place_node and after_dig_node node callbacks 2022-05-21 16:07:37 +02:00
Perttu Ahola c8727f8c5a
on_metadata_inventory_{move,offer,take} 2022-05-21 16:07:36 +02:00
Perttu Ahola 1656cbdaa2
Random node metadata things 2022-05-21 16:07:36 +02:00
Perttu Ahola 1bd4c6b208
Attempt to begin to implement chests and furnace in Lua (with problems) 2022-05-21 16:07:35 +02:00
Perttu Ahola 235ac5dae5
Take out the "Privileges of foo are hidden from you." response of /privs 2022-05-21 16:07:34 +02:00
Perttu Ahola e50d7926d6
Fix executing register_chatcommand-defined commands even in the middle of a chat line 2022-05-21 16:07:33 +02:00
Perttu Ahola e7654568ed
basic_privs to allow granting/revoking interact_extra too 2022-05-21 16:07:33 +02:00
Perttu Ahola 2f0ed0382e
Support static_spawnpoint setting 2022-05-21 16:07:32 +02:00
Perttu Ahola 596cd078dd
Allow redefining minetest.item_place and the like 2022-05-21 16:07:32 +02:00
Perttu Ahola 3f3c06761a
Add basic_privs privilege 2022-05-21 16:07:32 +02:00
Perttu Ahola 3a248a56d3
Improve doc/lua_api.txt and add minetest.get_item_group(name, group) 2022-05-21 16:07:31 +02:00
Perttu Ahola 5c484429fe
Fix unable to join server first time with a password 2022-05-21 16:07:31 +02:00
Perttu Ahola ed35ccceb4
minetest.get_node_group(name, group) 2022-05-21 16:07:30 +02:00
Perttu Ahola 7d9d0bc397
Fix super-small size of regular item entities 2022-05-21 16:07:30 +02:00
Perttu Ahola 8e7ebf59d9
Fix dropped nodeitem visuals 2022-05-21 16:07:29 +02:00
Perttu Ahola 3b5d2c97d5
Implement dropped items as LuaEntities; leave the old ones as is for compatibility 2022-05-21 16:07:29 +02:00
Perttu Ahola e0acbf54dd
Remplement and improve /setting in Lua, now called /set 2022-05-21 16:07:29 +02:00
Perttu Ahola aefc412901
Don't allow /granting unknown privileges 2022-05-21 16:07:28 +02:00
Perttu Ahola 397bd5fc83
Split builtin.lua to multiple files 2022-05-21 16:07:28 +02:00
Perttu Ahola 6cd6c4c224
granting and revoking of all privileges at once 2022-05-21 16:07:27 +02:00
Perttu Ahola b54f7b1d3f
Fix authentication handler reporting failed password change while it isn't 2022-05-21 16:07:27 +02:00
Perttu Ahola bee8b5b5c9
Improve /grant and /revoke output, add /auth_reload 2022-05-21 16:07:26 +02:00
Perttu Ahola 79b596716f
Add 'fly' and 'fast' privileges and the underlying privileges-to-client system 2022-05-21 16:07:26 +02:00
Perttu Ahola b09dbe99c7
More documentation in doc/lua_api.txt 2022-05-21 16:07:26 +02:00
Perttu Ahola bcbfcfeb13
Allow group:groupname in ABM definition and implement minetest.hash_node_position() 2022-05-21 16:07:25 +02:00
Perttu Ahola f09a3a427e
Fix handling of missing auth.txt in the new handler 2022-05-21 16:07:25 +02:00
Perttu Ahola def7434226
Fix admin password handling in minetest.builtin_auth_handler.get_auth 2022-05-21 16:07:24 +02:00
Perttu Ahola 53ad7f2719
Improved teleport command 2022-05-21 16:07:24 +02:00
Perttu Ahola 79413a0d4e
Reimplement authentication handler in Lua; now we have 1) infinite privilege names, 2) minetest.register_authentication_handler() 2022-05-21 16:07:23 +02:00
Perttu Ahola 9045011c10
Add minetest.get_connected_players() 2022-05-21 16:07:23 +02:00
Perttu Ahola 54cc862b37
minetest.register_chatcommand(cmd, def) 2022-05-21 16:07:23 +02:00
Kahrl 0f0dec675b
on_joinplayer + on_leaveplayer + scriptapi_run_callbacks + bugfix
Add minetest.register_on_joinplayer and minetest.register_on_leaveplayer,
make adding new callbacks to scriptapi.cpp easier by adding
scriptapi_run_callbacks, also fix a minor bug with PlayerSAO <->
singleplayer mode interaction
2022-05-21 16:07:22 +02:00
Perttu Ahola 11a58333a1
Fix and extend minetest.after(time, func, param) 2022-05-21 16:07:22 +02:00
Perttu Ahola 71ea13a924
Add minetest.after(time, func) 2022-05-21 16:07:21 +02:00
Perttu Ahola 7db4d9d77e
Flatten share/ and user/ in the source and for the RUN_IN_PLACE build 2022-05-21 16:07:21 +02:00