aboutsummaryrefslogtreecommitdiff
path: root/clientmods/maputil/commands.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-08-15 15:45:28 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-08-15 15:45:28 +0200
commit3bed0981d058b512bfb8aeeeeed235c9ee9385af (patch)
tree8f3b06e1ac849fecf684af1ba7bb2e72eaed4b5d /clientmods/maputil/commands.lua
parent622d547262ee6800810b228d9641edff63848e0c (diff)
downloaddragonfireclient-3bed0981d058b512bfb8aeeeeed235c9ee9385af.tar.xz
UI Update; Added AutoTool
Diffstat (limited to 'clientmods/maputil/commands.lua')
-rw-r--r--clientmods/maputil/commands.lua42
1 files changed, 0 insertions, 42 deletions
diff --git a/clientmods/maputil/commands.lua b/clientmods/maputil/commands.lua
deleted file mode 100644
index 4f88cd145..000000000
--- a/clientmods/maputil/commands.lua
+++ /dev/null
@@ -1,42 +0,0 @@
-minetest.register_chatcommand("findnodes", {
- description = "Scan for one or multible nodes in a radius around you",
- param = "<radius> <node1>[,<node2>...]",
- func = function(param)
- local radius = tonumber(param:split(" ")[1])
- local nodes = param:split(" ")[2]:split(",")
- local pos = core.localplayer:get_pos()
- local fpos = core.find_node_near(pos, radius, nodes, true)
- if fpos then
- return true, "Found " .. table.concat(nodes, " or ") .. " at " .. core.pos_to_string(fpos)
- end
- return false, "None of " .. table.concat(nodes, " or ") .. " found in a radius of " .. tostring(radius)
- end,
-})
-
-minetest.register_chatcommand("place", {
- params = "<X>,<Y>,<Z>",
- description = "Place wielded item",
- func = function(param)
- local success, pos = minetest.parse_relative_pos(param)
- if success then
- minetest.place_node(pos)
- return true, "Node placed at " .. minetest.pos_to_string(pos)
- end
- return false, pos
- end,
-})
-
-minetest.register_chatcommand("dig", {
- params = "<X>,<Y>,<Z>",
- description = "Dig node",
- func = function(param)
- local success, pos = minetest.parse_relative_pos(param)
- if success then
- minetest.dig_node(pos)
- return true, "Node at " .. minetest.pos_to_string(pos) .. " dug"
- end
- return false, pos
- end,
-})
-
-