03-26-2013, 06:18 AM
No, it's the same as ForEachPlayer()-style functions - you need to write a function to call.
Code:
local Item1 = ...;
local Item2 = ...;
local Add2Items = function (Chest)
-- Chest is of type cChestEntity, currently very under-API-ed
Chest:SetSlot(1, Item1);
Chest:SetSlot(2, Item2);
end
World:DoWithChestAt(BlockX, BlockY, BlockZ, Add2Items);