add autotower

master
cora 2021-08-25 20:48:06 +02:00
parent 1be602d8aa
commit 585e755e23
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,8 @@
ws.rg('AutoTower','Scaffold','atower',function()
local it=minetest.localplayer:get_wielded_item():get_name()
local lp=ws.dircoord(0,0,0)
local nds=minetest.find_nodes_near_under_air(lp,4,{it},false)
for k,v in ipairs(nds) do
ws.place(vector.add(v,vector.new(0,1,0)),it)
end
end,function() end,function() end, {'autorefill'})

View File

@ -214,6 +214,7 @@ dofile(mpath .. "/autofarm.lua")
dofile(mpath .. "/railscaffold.lua")
dofile(mpath .. "/wallbot.lua")
dofile(mpath .. "/ow2bot.lua")
dofile(mpath .. "/atower.lua")
--dofile(mpath .. "/squarry.lua")
local snapdir="north"
ws.rg('DigHead','Player','dighead',function() ws.dig(ws.dircoord(0,1,0)) end)