aboutsummaryrefslogtreecommitdiff
path: root/advtrains/debugitems.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-01-04 19:10:03 +0100
committerorwell96 <mono96.mml@gmail.com>2017-01-04 19:10:03 +0100
commit2d0b51b8970abb16c166708988e46fe4df668d47 (patch)
treeacd850e00f2c25f3a38f97b670e185d58697b777 /advtrains/debugitems.lua
parent853a9e690eeeb48aa1a13faa66db0a91d5b49390 (diff)
downloadadvtrains-2d0b51b8970abb16c166708988e46fe4df668d47.tar.gz
advtrains-2d0b51b8970abb16c166708988e46fe4df668d47.tar.bz2
advtrains-2d0b51b8970abb16c166708988e46fe4df668d47.zip
Restructure mod directory
Diffstat (limited to 'advtrains/debugitems.lua')
-rw-r--r--advtrains/debugitems.lua36
1 files changed, 0 insertions, 36 deletions
diff --git a/advtrains/debugitems.lua b/advtrains/debugitems.lua
deleted file mode 100644
index b3164ff..0000000
--- a/advtrains/debugitems.lua
+++ /dev/null
@@ -1,36 +0,0 @@
-minetest.register_tool("advtrains:tunnelborer",
-{
- description = "tunnelborer",
- groups = {cracky=1}, -- key=name, value=rating; rating=1..3.
- inventory_image = "drwho_screwdriver.png",
- wield_image = "drwho_screwdriver.png",
- stack_max = 1,
- range = 7.0,
-
- on_place = function(itemstack, placer, pointed_thing)
-
- end,
- --[[
- ^ Shall place item and return the leftover itemstack
- ^ default: minetest.item_place ]]
- on_use = function(itemstack, user, pointed_thing)
- if pointed_thing.type=="node" then
- for x=-1,1 do
- for y=-1,1 do
- for z=-1,1 do
- minetest.remove_node(vector.add(pointed_thing.under, {x=x, y=y, z=z}))
- end
- end
- end
- end
- end,
---[[
-^ default: nil
-^ Function must return either nil if no item shall be removed from
-inventory, or an itemstack to replace the original itemstack.
-e.g. itemstack:take_item(); return itemstack
-^ Otherwise, the function is free to do what it wants.
-^ The default functions handle regular use cases.
-]]
-}
-)