how does BlockArea:GetBlockMeta and BlockArea:GetBlockType work? i am now trying to make //replace work with BlockArea but GetBlockType gives or 0 or a high number like 178. I used this code:
BlockArea:Read( World, OneX, TwoX, OneY, TwoY, OneZ, TwoZ ) for X=1, BlockArea:GetSizeX() do for Y=1, BlockArea:GetSizeY() do for Z=1, BlockArea:GetSizeZ() do if BlockArea:GetBlockType( X, Y, Z )== ChangeBlock[1] then if BlockArea:GetBlockMeta( X, Y, Z )== ChangeBlock[2] then BlockArea:SetBlockType( X, Y, Z, ToChangeBlock[1] ) BlockArea:SetBlockMeta( X, Y, Z, ToChangeBlock[2] ) Blocks[Player:GetName()] = Blocks[Player:GetName()] + 1 end end end end end