This commit is contained in:
Milan2018 2022-02-28 19:50:46 +01:00
parent 9462e0b79b
commit d214ee9d6b

View file

@ -9,6 +9,7 @@ local function get_node_force(pos)
end
local function tochest(fpos,tpos)
if v.equals(fpos,tpos) then return end
local finv=minetest.get_meta(fpos):get_inventory()
local tinv=minetest.get_meta(tpos):get_inventory()
for listn,items in pairs(finv:get_lists()) do
@ -33,6 +34,7 @@ end
minetest.register_chatcommand("/itemstochest",{
params="<blocks/seconds>",
privs={worldedit=true},
func=function(n,p)
local s=tonumber(p) or 250 -- 250 b/s
local p=minetest.get_player_by_name(n)