aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods/experimental/commands.lua
diff options
context:
space:
mode:
authorWuzzy <Wuzzy@disroot.org>2022-10-08 19:49:28 +0200
committersfan5 <sfan5@live.de>2022-10-23 21:58:56 +0200
commita23701b5e654139158ba934155ecd99c8f4b8fd7 (patch)
tree94e387f3e363661b79f3e9c0e5ec7492a7ca0565 /games/devtest/mods/experimental/commands.lua
parentc1e732448ca3cfc1c7e2b1a8c19b8f80ac06bd06 (diff)
downloadminetest-a23701b5e654139158ba934155ecd99c8f4b8fd7.tar.xz
DevTest: Move detached inv tests to chest mod
Diffstat (limited to 'games/devtest/mods/experimental/commands.lua')
-rw-r--r--games/devtest/mods/experimental/commands.lua21
1 files changed, 0 insertions, 21 deletions
diff --git a/games/devtest/mods/experimental/commands.lua b/games/devtest/mods/experimental/commands.lua
index 5badff7e3..3b00bd9e3 100644
--- a/games/devtest/mods/experimental/commands.lua
+++ b/games/devtest/mods/experimental/commands.lua
@@ -1,24 +1,3 @@
-minetest.register_chatcommand("test_inv", {
- params = "",
- description = "Test: Modify player's inventory formspec",
- func = function(name, param)
- local player = minetest.get_player_by_name(name)
- if not player then
- return false, "No player."
- end
- player:set_inventory_formspec(
- "size[13,7.5]"..
- "image[6,0.6;1,2;player.png]"..
- "list[current_player;main;5,3.5;8,4;]"..
- "list[current_player;craft;8,0;3,3;]"..
- "list[current_player;craftpreview;12,1;1,1;]"..
- "list[detached:test_inventory;main;0,0;4,6;0]"..
- "button[0.5,7;2,1;button1;Button 1]"..
- "button_exit[2.5,7;2,1;button2;Exit Button]")
- return true, "Done."
- end,
-})
-
minetest.register_chatcommand("test_bulk_set_node", {
params = "",
description = "Test: Bulk-set 9×9×9 stone nodes",