cBlockArea
#8
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
Reply
Thanks given by:


Messages In This Thread
cBlockArea - by xoft - 10-07-2012, 03:06 AM
RE: cBlockArea - by FakeTruth - 10-07-2012, 06:13 AM
RE: cBlockArea - by xoft - 10-07-2012, 06:55 AM
RE: cBlockArea - by NiLSPACE - 04-06-2013, 11:56 PM
RE: cBlockArea - by xoft - 04-07-2013, 01:05 AM
RE: cBlockArea - by NiLSPACE - 05-02-2013, 03:52 AM
RE: cBlockArea - by xoft - 05-02-2013, 04:51 AM
RE: cBlockArea - by NiLSPACE - 05-02-2013, 07:40 PM
RE: cBlockArea - by xoft - 05-02-2013, 07:45 PM
RE: cBlockArea - by NiLSPACE - 05-02-2013, 07:58 PM
RE: cBlockArea - by NiLSPACE - 08-14-2013, 09:03 PM
RE: cBlockArea - by xoft - 08-14-2013, 09:38 PM
RE: cBlockArea - by NiLSPACE - 02-09-2014, 08:53 PM
RE: cBlockArea - by xoft - 02-10-2014, 12:18 AM
RE: cBlockArea - by NiLSPACE - 08-18-2014, 07:30 PM
RE: cBlockArea - by xoft - 08-19-2014, 06:37 AM



Users browsing this thread: 10 Guest(s)