Hi,
and my terminal says:
Whats my fail?
function MyOnPlayerRightClick(Player, BlockX, BlockY, BlockZ, BlockFace, CursorX, CursorY, CursorZ) -- See API docs for parameters of all hooks local chunkx = math.floor(BlockX / 16) local chunkz = math.floor(BlockZ / 16) SourceWorld = cRoot:Get():GetWorld(Player:GetWorld():GetName() .. '_backup') DestWorld = Player:GetWorld() --print(backUpWorld:GetName()) local ba = cBlockArea() local startX = math.floor(chunkx * 16) local endX = math.floor(chunkx * 16) + 15 local startZ = math.floor(chunkz * 16) local endZ = math.floor(chunkz * 16) + 15 local cubo = cCuboid(startX,1,startZ,endX,255,endZ) SourceWorld:ChunkStay({{chunkx, chunkz}}, nil, function() ba:Read(SourceWorld, cubo) DestWorld:QueueTask( function() ba:Write(DestWorld, startX, 2, startZ) ba:Clear() end ) end ) end
and my terminal says:
Code:
[20:56:44] cChunk::WriteBlockArea(): unsupported datatype request, can write only types + metas (0x3), requested 0x0. Ignoring.
Whats my fail?